2003-04-21 17:30:27 +04:00
|
|
|
# FreeType 2 top Jamfile (c) 2001, 2002, 2003 David Turner
|
2002-04-11 18:21:16 +04:00
|
|
|
#
|
|
|
|
|
2003-01-08 01:54:02 +03:00
|
|
|
# The HDRMACRO is already defined in FTJam and is used to add
|
|
|
|
# the content of certain macros to the list of included header
|
|
|
|
# files.
|
|
|
|
#
|
2003-04-21 17:30:27 +04:00
|
|
|
# We can compile FreeType 2 with classic Jam however thanks to
|
2003-01-08 01:54:02 +03:00
|
|
|
# the following code
|
|
|
|
#
|
|
|
|
if ! $(JAM_TOOLSET)
|
|
|
|
{
|
|
|
|
rule HDRMACRO
|
|
|
|
{
|
2003-04-21 17:30:27 +04:00
|
|
|
# nothing
|
2003-01-08 01:54:02 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
|
2002-04-11 18:21:16 +04:00
|
|
|
# We need to invoke a SubDir rule if the FT2 source directory top is not the
|
|
|
|
# current directory. This allows us to build FreeType 2 as part of a larger
|
|
|
|
# project easily.
|
|
|
|
#
|
|
|
|
if $(FT2_TOP) != $(DOT)
|
|
|
|
{
|
|
|
|
SubDir FT2_TOP ;
|
|
|
|
}
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
|
|
|
|
# The following macros define the include directory, the source directory,
|
|
|
|
# and the final library name (without library extensions). They can be
|
2003-01-08 01:54:02 +03:00
|
|
|
# replaced by other definitions when the library is compiled as part of
|
|
|
|
# a larger project.
|
|
|
|
#
|
2002-04-11 18:21:16 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Name of FreeType include directory during compilation.
|
|
|
|
# This is relative to FT2_TOP.
|
2003-01-08 01:54:02 +03:00
|
|
|
#
|
|
|
|
FT2_INCLUDE_DIR ?= include ;
|
2002-04-11 18:21:16 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Name of FreeType source directory during compilation.
|
|
|
|
# This is relative to FT2_TOP.
|
2003-01-08 01:54:02 +03:00
|
|
|
#
|
|
|
|
FT2_SRC_DIR ?= src ;
|
2002-04-11 18:21:16 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Name of final library, without extension.
|
2002-04-11 18:21:16 +04:00
|
|
|
#
|
2003-01-08 01:54:02 +03:00
|
|
|
FT2_LIB ?= $(LIBPREFIX)freetype ;
|
|
|
|
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Define FT2_BUILD_INCLUDE to point to your build-specific directory.
|
|
|
|
# This is prepended to FT2_INCLUDE_DIR. It can be used to specify
|
2003-01-08 01:54:02 +03:00
|
|
|
# the location of a custom <ft2build.h> which will point to custom
|
2003-04-21 17:30:27 +04:00
|
|
|
# versions of "ftmodule.h" and "ftoption.h", for example.
|
2003-01-08 01:54:02 +03:00
|
|
|
#
|
|
|
|
FT2_BUILD_INCLUDE ?= ;
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# The list of modules to compile on any given build of the library.
|
|
|
|
# By default, this will contain _all_ modules defined in FT2_SRC_DIR.
|
2003-01-08 01:54:02 +03:00
|
|
|
#
|
|
|
|
# IMPORTANT: You'll need to change the content of "ftmodule.h" as well
|
|
|
|
# if you modify this list or provide your own.
|
|
|
|
#
|
2003-04-21 17:30:27 +04:00
|
|
|
FT2_COMPONENTS ?= gzip # support for gzip-compressed files
|
2003-01-08 01:54:02 +03:00
|
|
|
autohint # auto-hinter
|
|
|
|
base # base component (public APIs)
|
|
|
|
bdf # BDF font driver
|
|
|
|
cache # cache sub-system
|
|
|
|
cff # CFF/CEF font driver
|
2003-04-21 17:30:27 +04:00
|
|
|
cid # PostScript CID-keyed font driver
|
2003-01-08 01:54:02 +03:00
|
|
|
pcf # PCF font driver
|
|
|
|
pfr # PFR/TrueDoc font driver
|
2003-04-21 17:30:27 +04:00
|
|
|
psaux # common PostScript routines module
|
|
|
|
pshinter # PostScript hinter module
|
|
|
|
psnames # PostScript names handling
|
|
|
|
raster # monochrome rasterizer
|
|
|
|
smooth # anti-aliased rasterizer
|
2003-01-08 01:54:02 +03:00
|
|
|
sfnt # SFNT-based format support routines
|
|
|
|
truetype # TrueType font driver
|
2003-04-21 17:30:27 +04:00
|
|
|
type1 # PostScript Type 1 font driver
|
|
|
|
type42 # PostScript Type 42 (embedded TrueType) driver
|
2003-01-08 01:54:02 +03:00
|
|
|
winfonts # Windows FON/FNT font driver
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Don't touch.
|
2003-01-08 01:54:02 +03:00
|
|
|
#
|
|
|
|
FT2_INCLUDE = $(FT2_BUILD_INCLUDE)
|
|
|
|
[ FT2_SubDir $(FT2_INCLUDE_DIR) ] ;
|
|
|
|
|
|
|
|
FT2_SRC = [ FT2_SubDir $(FT2_SRC_DIR) ] ;
|
2002-04-11 18:21:16 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Only used by FreeType developers.
|
2002-04-11 18:21:16 +04:00
|
|
|
#
|
|
|
|
if $(DEBUG_HINTER)
|
|
|
|
{
|
|
|
|
CCFLAGS += -DDEBUG_HINTER ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# We need "freetype2/include" in the current include path in order to
|
|
|
|
# compile any part of FreeType 2.
|
|
|
|
#
|
2003-01-31 02:24:18 +03:00
|
|
|
HDRS += $(FT2_INCLUDE) ;
|
|
|
|
|
|
|
|
|
2002-04-11 18:21:16 +04:00
|
|
|
# Uncomment the following line if you want to build individual source files
|
2003-04-21 17:30:27 +04:00
|
|
|
# for each FreeType 2 module. This is only useful during development, and
|
|
|
|
# is better defined as an environment variable anyway!
|
2002-04-11 18:21:16 +04:00
|
|
|
#
|
|
|
|
# FT2_MULTI = true ;
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
|
2002-04-11 18:21:16 +04:00
|
|
|
# The file <freetype/config/ftheader.h> is used to define macros that are
|
|
|
|
# later used in #include statements. It needs to be parsed in order to
|
|
|
|
# record these definitions.
|
|
|
|
#
|
|
|
|
HDRMACRO [ FT2_SubDir include freetype config ftheader.h ] ;
|
|
|
|
HDRMACRO [ FT2_SubDir include freetype internal internal.h ] ;
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
|
2002-04-11 18:21:16 +04:00
|
|
|
# Now include the Jamfile in "freetype2/src", used to drive the compilation
|
|
|
|
# of each FreeType 2 component and/or module.
|
|
|
|
#
|
2002-11-07 01:32:54 +03:00
|
|
|
SubInclude FT2_TOP $(FT2_SRC_DIR) ;
|
2002-04-11 18:21:16 +04:00
|
|
|
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
# Test files (hinter debugging). Only used by FreeType developers.
|
2002-04-11 18:21:16 +04:00
|
|
|
#
|
|
|
|
if $(DEBUG_HINTER)
|
|
|
|
{
|
|
|
|
SubInclude FT2_TOP tests ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# end of top Jamfile
|