Commit cce3c80c1f32b5ce6db3956ec9f5bc1a281b75d5

David Turner 2003-01-08T09:10:53

* Jamrules, Jamfile, Jamfile.in, src/*/Jamfile: small changes to support the compilation of FreeType 2 as part of larger projects with their own configuration options (only with Jam)

diff --git a/ChangeLog b/ChangeLog
index 03fbc02..ef671cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-08  David Turner  <david@freetype.org>
+
+        * Jamrules, Jamfile, Jamfile.in, src/*/Jamfile: small changes to
+        support the compilation of FreeType 2 as part of larger projects with
+        their own configuration options (only with Jam)
+
 2003-01-07  David Turner  <david@freetype.org>
 
         * src/base/ftstroker.c: probably the last bug-fixes to the stroker,
diff --git a/Jamfile b/Jamfile
index b6d4af0..2ba53bd 100644
--- a/Jamfile
+++ b/Jamfile
@@ -100,7 +100,10 @@ if $(DEBUG_HINTER)
 # We need "freetype2/include" in the current include path in order to
 # compile any part of FreeType 2.
 #
-SubDirHdr += $(FT2_INCLUDE) ;
+HDRS += $(FT2_INCLUDE) ;
+
+
+#SubDirHdr += $(FT2_INCLUDE) ;
 
 # Uncomment the following line if you want to build individual source files
 # for each FreeType 2 module.
diff --git a/Jamrules b/Jamrules
index eb65f92..c05e508 100644
--- a/Jamrules
+++ b/Jamrules
@@ -6,6 +6,19 @@
 #
 
 
+# call SubDirHdrs on a list of directories
+#
+rule AddSubDirHdrs
+{
+  local x ;
+
+  for x in $(<)
+  {
+    SubDirHdrs $(x) ;
+  }
+}
+
+
 # Determine prefix of library file.  We must use "libxxxxx" on Unix systems,
 # while all other simply use the real name.
 #
@@ -39,11 +52,6 @@ rule FT2_SubDir
   }
 }
 
-# The directory "include" must be in the current include path when compiling
-# any part of FreeType.  We thus update the HDRS variable there.
-#
-HDRS += [ FT2_SubDir  include ] ;
-
 # We also set ALL_LOCATE_TARGET in order to place all object and library
 # files in "objs".
 #
diff --git a/src/base/Jamfile b/src/base/Jamfile
index bc4c71d..55e5e6a 100644
--- a/src/base/Jamfile
+++ b/src/base/Jamfile
@@ -3,6 +3,7 @@
 
 SubDir  FT2_TOP $(FT2_SRC_DIR) base ;
 
+
 {
   local  _sources ;