blob: 724b71265fbed68c15a133f5799f42df87acee00 [file] [log] [blame]
Werner Lemberga1844e02001-04-03 21:07:36 +00001# FreeType 2 top Jamfile (c) 2001 David Turner
David Turner5bf0a392001-03-24 17:10:09 +00002#
3
Werner Lemberga1844e02001-04-03 21:07:36 +00004# We need to invoke a SubDir rule if the FT2 source directory top is not the
5# current directory. This allows us to build FreeType 2 as part of a larger
6# project easily.
David Turner5bf0a392001-03-24 17:10:09 +00007#
8if $(FT2_TOP) != $(DOT)
9{
Werner Lemberga1844e02001-04-03 21:07:36 +000010 SubDir FT2_TOP ;
David Turner5bf0a392001-03-24 17:10:09 +000011}
12
13FT2_INCLUDE = [ FT2_SubDir include ] ;
14FT2_SRC = [ FT2_SubDir src ] ;
15
16FT2_LIB = $(LIBPREFIX)freetype ;
17
David Turnerc9349c92001-10-18 11:59:08 +000018if $(DEBUG_HINTER)
19{
20 CCFLAGS += -DDEBUG_HINTER ;
21}
22
23
Werner Lemberga1844e02001-04-03 21:07:36 +000024# We need "freetype2/include" in the current include path in order to
25# compile any part of FreeType 2.
David Turner5bf0a392001-03-24 17:10:09 +000026#
Werner Lemberga1844e02001-04-03 21:07:36 +000027SubDirHdr += $(FT2_INCLUDE) ;
David Turner5bf0a392001-03-24 17:10:09 +000028
Werner Lemberga1844e02001-04-03 21:07:36 +000029# Uncomment the following line if you want to build individual source files
David Turner5bf0a392001-03-24 17:10:09 +000030# for each FreeType 2 module.
31#
Werner Lemberg1429db62001-04-02 23:54:01 +000032# FT2_MULTI = true ;
David Turner5bf0a392001-03-24 17:10:09 +000033
David Turner6059b032001-05-14 14:01:00 +000034# The file <freetype/config/ftheader.h> is used to define macros that are
Werner Lemberga1844e02001-04-03 21:07:36 +000035# later used in #include statements. It needs to be parsed in order to
36# record these definitions.
David Turner5bf0a392001-03-24 17:10:09 +000037#
David Turnerb3de8172001-05-11 14:25:02 +000038HDRMACRO [ FT2_SubDir include freetype config ftheader.h ] ;
David Turnerc9349c92001-10-18 11:59:08 +000039HDRMACRO [ FT2_SubDir include freetype internal internal.h ] ;
David Turner5bf0a392001-03-24 17:10:09 +000040
Werner Lemberga1844e02001-04-03 21:07:36 +000041# Now include the Jamfile in "freetype2/src", used to drive the compilation
42# of each FreeType 2 component and/or module.
David Turner5bf0a392001-03-24 17:10:09 +000043#
44SubInclude FT2_TOP src ;
45
46
David Turnerc9349c92001-10-18 11:59:08 +000047# tests files (hinter debugging)
48#
49if $(DEBUG_HINTER)
50{
51 SubInclude FT2_TOP tests ;
52}
53
Werner Lemberga1844e02001-04-03 21:07:36 +000054# end of top Jamfile