Werner Lemberg | 60a04df | 2005-06-04 23:04:30 +0000 | [diff] [blame] | 1 | # FreeType 2 JamRules. |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 2 | # |
Werner Lemberg | 563ae78 | 2017-01-04 20:16:34 +0100 | [diff] [blame] | 3 | # Copyright 2001-2017 by |
Werner Lemberg | 60a04df | 2005-06-04 23:04:30 +0000 | [diff] [blame] | 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 | |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 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. |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 16 | # |
| 17 | |
| 18 | |
Werner Lemberg | a16c4a7 | 2003-04-21 13:30:27 +0000 | [diff] [blame] | 19 | # Call SubDirHdrs on a list of directories. |
David Turner | cce3c80 | 2003-01-08 09:10:53 +0000 | [diff] [blame] | 20 | # |
| 21 | rule AddSubDirHdrs |
| 22 | { |
| 23 | local x ; |
| 24 | |
| 25 | for x in $(<) |
| 26 | { |
| 27 | SubDirHdrs $(x) ; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 32 | # Determine prefix of library file. We must use "libxxxxx" on Unix systems, |
| 33 | # while all other simply use the real name. |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 34 | # |
| 35 | if $(UNIX) |
| 36 | { |
| 37 | LIBPREFIX ?= lib ; |
| 38 | } |
| 39 | else |
| 40 | { |
| 41 | LIBPREFIX ?= "" ; |
| 42 | } |
| 43 | |
Werner Lemberg | cbc9938 | 2001-04-06 07:05:50 +0000 | [diff] [blame] | 44 | # FT2_TOP contains the location of the FreeType source directory. You can |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 45 | # set it to a specific value if you want to compile the library as part of a |
| 46 | # larger project. |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 47 | # |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 48 | FT2_TOP ?= $(DOT) ; |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 49 | |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 50 | # Define a new rule used to declare a sub directory of the Nirvana source |
| 51 | # tree. |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 52 | # |
| 53 | rule FT2_SubDir |
| 54 | { |
| 55 | if $(FT2_TOP) = $(DOT) |
| 56 | { |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 57 | return [ FDirName $(<) ] ; |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 58 | } |
| 59 | else |
| 60 | { |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 61 | return [ FDirName $(FT2_TOP) $(<) ] ; |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 62 | } |
| 63 | } |
| 64 | |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 65 | # We also set ALL_LOCATE_TARGET in order to place all object and library |
| 66 | # files in "objs". |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 67 | # |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 68 | ALL_LOCATE_TARGET ?= [ FT2_SubDir objs ] ; |
David Turner | 5bf0a39 | 2001-03-24 17:10:09 +0000 | [diff] [blame] | 69 | |
| 70 | |
Werner Lemberg | a1844e0 | 2001-04-03 21:07:36 +0000 | [diff] [blame] | 71 | # end of Jamrules |