shithub: freetype+ttf2subf

Download patch

ref: cce3c80c1f32b5ce6db3956ec9f5bc1a281b75d5
parent: 20e33158da0a2078b85eb102e93b0f9772462c14
author: David Turner <[email protected]>
date: Wed Jan 8 04:10:53 EST 2003

* 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)

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-08  David Turner  <[email protected]>
+
+        * 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  <[email protected]>
 
         * src/base/ftstroker.c: probably the last bug-fixes to the stroker,
--- a/Jamfile
+++ b/Jamfile
@@ -100,7 +100,10 @@
 # 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.
--- 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.
 #
@@ -38,11 +51,6 @@
     return [ FDirName  $(FT2_TOP) $(<) ] ;
   }
 }
-
-# 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".
--- a/src/base/Jamfile
+++ b/src/base/Jamfile
@@ -3,6 +3,7 @@
 
 SubDir  FT2_TOP $(FT2_SRC_DIR) base ;
 
+
 {
   local  _sources ;