blob: aa2ef5be46e89d6235405be8b1d5ad46acafeb06 [file] [log] [blame]
Werner Lemberg60a04df2005-06-04 23:04:30 +00001# FreeType 2 JamRules.
David Turner5bf0a392001-03-24 17:10:09 +00002#
Werner Lemberg75859972019-02-23 10:07:09 +01003# Copyright (C) 2001-2019 by
Werner Lemberg60a04df2005-06-04 23:04:30 +00004# 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
Werner Lemberga1844e02001-04-03 21:07:36 +000013# 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.
David Turner5bf0a392001-03-24 17:10:09 +000016#
17
18
Werner Lemberga16c4a72003-04-21 13:30:27 +000019# Call SubDirHdrs on a list of directories.
David Turnercce3c802003-01-08 09:10:53 +000020#
21rule AddSubDirHdrs
22{
23 local x ;
24
25 for x in $(<)
26 {
27 SubDirHdrs $(x) ;
28 }
29}
30
31
Werner Lemberga1844e02001-04-03 21:07:36 +000032# Determine prefix of library file. We must use "libxxxxx" on Unix systems,
33# while all other simply use the real name.
David Turner5bf0a392001-03-24 17:10:09 +000034#
35if $(UNIX)
36{
37 LIBPREFIX ?= lib ;
38}
39else
40{
41 LIBPREFIX ?= "" ;
42}
43
Werner Lembergcbc99382001-04-06 07:05:50 +000044# FT2_TOP contains the location of the FreeType source directory. You can
Werner Lemberga1844e02001-04-03 21:07:36 +000045# set it to a specific value if you want to compile the library as part of a
46# larger project.
David Turner5bf0a392001-03-24 17:10:09 +000047#
Werner Lemberga1844e02001-04-03 21:07:36 +000048FT2_TOP ?= $(DOT) ;
David Turner5bf0a392001-03-24 17:10:09 +000049
Werner Lemberga1844e02001-04-03 21:07:36 +000050# Define a new rule used to declare a sub directory of the Nirvana source
51# tree.
David Turner5bf0a392001-03-24 17:10:09 +000052#
53rule FT2_SubDir
54{
55 if $(FT2_TOP) = $(DOT)
56 {
Werner Lemberga1844e02001-04-03 21:07:36 +000057 return [ FDirName $(<) ] ;
David Turner5bf0a392001-03-24 17:10:09 +000058 }
59 else
60 {
Werner Lemberga1844e02001-04-03 21:07:36 +000061 return [ FDirName $(FT2_TOP) $(<) ] ;
David Turner5bf0a392001-03-24 17:10:09 +000062 }
63}
64
Werner Lemberga1844e02001-04-03 21:07:36 +000065# We also set ALL_LOCATE_TARGET in order to place all object and library
66# files in "objs".
David Turner5bf0a392001-03-24 17:10:09 +000067#
Werner Lemberga1844e02001-04-03 21:07:36 +000068ALL_LOCATE_TARGET ?= [ FT2_SubDir objs ] ;
David Turner5bf0a392001-03-24 17:10:09 +000069
70
Werner Lemberga1844e02001-04-03 21:07:36 +000071# end of Jamrules