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