misc/libfreetype/Jamrules
author mikade
Mon, 27 Jun 2011 02:41:45 +0200
changeset 5334 ce404661aac6
parent 5172 88f2e05288ba
permissions -rw-r--r--
Fix some quirky syntax.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
# FreeType 2 JamRules.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
# Copyright 2001, 2002, 2003 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
# David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
# This file is part of the FreeType project, and may only be used, modified,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
# and distributed under the terms of the FreeType project license,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
# indicate that you have read the license and understand and accept it
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
# fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
# This file contains the Jam rules needed to build the FreeType 2 library.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
# It is shared by all Jamfiles and is included only once in the build
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
# process.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
# Call SubDirHdrs on a list of directories.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
rule AddSubDirHdrs
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
  local x ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
  for x in $(<)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
    SubDirHdrs $(x) ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
  }
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
# Determine prefix of library file.  We must use "libxxxxx" on Unix systems,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
# while all other simply use the real name.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
if $(UNIX)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
  LIBPREFIX ?= lib ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
  LIBPREFIX ?= "" ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
# FT2_TOP contains the location of the FreeType source directory.  You can
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
# set it to a specific value if you want to compile the library as part of a
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
# larger project.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
FT2_TOP ?= $(DOT) ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
# Define a new rule used to declare a sub directory of the Nirvana source
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
# tree.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
rule FT2_SubDir
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
  if $(FT2_TOP) = $(DOT)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
    return [ FDirName  $(<) ] ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
  }
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
    return [ FDirName  $(FT2_TOP) $(<) ] ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
  }
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
# We also set ALL_LOCATE_TARGET in order to place all object and library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
# files in "objs".
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
ALL_LOCATE_TARGET ?= [ FT2_SubDir  objs ] ;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
# end of Jamrules