michael@0: # FreeType 2 JamRules. michael@0: # michael@0: # Copyright 2001, 2002, 2003 by michael@0: # David Turner, Robert Wilhelm, and Werner Lemberg. michael@0: # michael@0: # This file is part of the FreeType project, and may only be used, modified, michael@0: # and distributed under the terms of the FreeType project license, michael@0: # LICENSE.TXT. By continuing to use, modify, or distribute this file you michael@0: # indicate that you have read the license and understand and accept it michael@0: # fully. michael@0: michael@0: michael@0: # This file contains the Jam rules needed to build the FreeType 2 library. michael@0: # It is shared by all Jamfiles and is included only once in the build michael@0: # process. michael@0: # michael@0: michael@0: michael@0: # Call SubDirHdrs on a list of directories. michael@0: # michael@0: rule AddSubDirHdrs michael@0: { michael@0: local x ; michael@0: michael@0: for x in $(<) michael@0: { michael@0: SubDirHdrs $(x) ; michael@0: } michael@0: } michael@0: michael@0: michael@0: # Determine prefix of library file. We must use "libxxxxx" on Unix systems, michael@0: # while all other simply use the real name. michael@0: # michael@0: if $(UNIX) michael@0: { michael@0: LIBPREFIX ?= lib ; michael@0: } michael@0: else michael@0: { michael@0: LIBPREFIX ?= "" ; michael@0: } michael@0: michael@0: # FT2_TOP contains the location of the FreeType source directory. You can michael@0: # set it to a specific value if you want to compile the library as part of a michael@0: # larger project. michael@0: # michael@0: FT2_TOP ?= $(DOT) ; michael@0: michael@0: # Define a new rule used to declare a sub directory of the Nirvana source michael@0: # tree. michael@0: # michael@0: rule FT2_SubDir michael@0: { michael@0: if $(FT2_TOP) = $(DOT) michael@0: { michael@0: return [ FDirName $(<) ] ; michael@0: } michael@0: else michael@0: { michael@0: return [ FDirName $(FT2_TOP) $(<) ] ; michael@0: } michael@0: } michael@0: michael@0: # We also set ALL_LOCATE_TARGET in order to place all object and library michael@0: # files in "objs". michael@0: # michael@0: ALL_LOCATE_TARGET ?= [ FT2_SubDir objs ] ; michael@0: michael@0: michael@0: # end of Jamrules