• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# FreeType 2 JamRules.
2#
3# Copyright 2001-2018 by
4# David Turner, Robert Wilhelm, and Werner Lemberg.
5#
6# This file is part of the FreeType project, and may only be used, modified,
7# and distributed under the terms of the FreeType project license,
8# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
9# indicate that you have read the license and understand and accept it
10# fully.
11
12
13# This file contains the Jam rules needed to build the FreeType 2 library.
14# It is shared by all Jamfiles and is included only once in the build
15# process.
16#
17
18
19# Call SubDirHdrs on a list of directories.
20#
21rule AddSubDirHdrs
22{
23  local x ;
24
25  for x in $(<)
26  {
27    SubDirHdrs $(x) ;
28  }
29}
30
31
32# Determine prefix of library file.  We must use "libxxxxx" on Unix systems,
33# while all other simply use the real name.
34#
35if $(UNIX)
36{
37  LIBPREFIX ?= lib ;
38}
39else
40{
41  LIBPREFIX ?= "" ;
42}
43
44# FT2_TOP contains the location of the FreeType source directory.  You can
45# set it to a specific value if you want to compile the library as part of a
46# larger project.
47#
48FT2_TOP ?= $(DOT) ;
49
50# Define a new rule used to declare a sub directory of the Nirvana source
51# tree.
52#
53rule FT2_SubDir
54{
55  if $(FT2_TOP) = $(DOT)
56  {
57    return [ FDirName  $(<) ] ;
58  }
59  else
60  {
61    return [ FDirName  $(FT2_TOP) $(<) ] ;
62  }
63}
64
65# We also set ALL_LOCATE_TARGET in order to place all object and library
66# files in "objs".
67#
68ALL_LOCATE_TARGET ?= [ FT2_SubDir  objs ] ;
69
70
71# end of Jamrules
72