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