blob: 8fc419bc05fdc067f5b0c58ea6d63e47b875a917 [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
24
Werner Lemberga1844e02001-04-03 21:07:36 +000025# We need "freetype2/include" in the current include path in order to
26# compile any part of FreeType 2.
David Turner5bf0a392001-03-24 17:10:09 +000027#
Werner Lemberga1844e02001-04-03 21:07:36 +000028SubDirHdr += $(FT2_INCLUDE) ;
David Turner5bf0a392001-03-24 17:10:09 +000029
Werner Lemberga1844e02001-04-03 21:07:36 +000030# Uncomment the following line if you want to build individual source files
David Turner5bf0a392001-03-24 17:10:09 +000031# for each FreeType 2 module.
32#
Werner Lemberg1429db62001-04-02 23:54:01 +000033# FT2_MULTI = true ;
David Turner5bf0a392001-03-24 17:10:09 +000034
David Turner6059b032001-05-14 14:01:00 +000035# The file <freetype/config/ftheader.h> is used to define macros that are
Werner Lemberga1844e02001-04-03 21:07:36 +000036# later used in #include statements. It needs to be parsed in order to
37# record these definitions.
David Turner5bf0a392001-03-24 17:10:09 +000038#
David Turnerb3de8172001-05-11 14:25:02 +000039HDRMACRO [ FT2_SubDir include freetype config ftheader.h ] ;
David Turnerc9349c92001-10-18 11:59:08 +000040HDRMACRO [ FT2_SubDir include freetype internal internal.h ] ;
David Turner5bf0a392001-03-24 17:10:09 +000041
Werner Lemberga1844e02001-04-03 21:07:36 +000042# Now include the Jamfile in "freetype2/src", used to drive the compilation
43# of each FreeType 2 component and/or module.
David Turner5bf0a392001-03-24 17:10:09 +000044#
45SubInclude FT2_TOP src ;
46
47
David Turnerc9349c92001-10-18 11:59:08 +000048# tests files (hinter debugging)
49#
50if $(DEBUG_HINTER)
51{
52 SubInclude FT2_TOP tests ;
53}
54
Werner Lemberga1844e02001-04-03 21:07:36 +000055# end of top Jamfile