summaryrefslogtreecommitdiff
path: root/Jamfile
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2005-10-16 08:29:12 +0000
committerDavid Turner <david@freetype.org>2005-10-16 08:29:12 +0000
commit6c5299e44fec1984883525560c6d42291517f0a4 (patch)
treeb292071b44f00465fe2761911c6bd8e43cd166d0 /Jamfile
parentd7e08f7745c2cdfb445fca05cbc60299f3bd18fe (diff)
downloadfreetype2-6c5299e44fec1984883525560c6d42291517f0a4.tar.gz
* src/tools/apinames.c: adding new tool to extract public API
function names from header files
Diffstat (limited to 'Jamfile')
-rw-r--r--Jamfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Jamfile b/Jamfile
index 40622a34f..d0e67f2cd 100644
--- a/Jamfile
+++ b/Jamfile
@@ -148,6 +148,27 @@ HDRMACRO [ FT2_SubDir include freetype internal internal.h ] ;
#
SubInclude FT2_TOP $(FT2_SRC_DIR) ;
+# handle the generation of the "ftexport.sym" file which contain the list
+# of exported symbols. This can be used on Unix by libtool
+#
+SubInclude FT2_TOP $(FT2_SRC_DIR) tools ;
+
+rule GenExportSymbols
+{
+ local headers = [ Glob $(2) : *.h ] ;
+
+ APINAMES on $(1) = apinames$(SUFEXE) ;
+
+ Depends $(1) : $(headers) ;
+ GenExportSymbols1 $(1) : $(headers) ;
+}
+
+actions GenExportSymbols1 bind APINAMES
+{
+ $(APINAMES) $(2) > $(1)
+}
+
+GenExportSymbols ftexport.sym : include/freetype include/freetype/cache ;
# Test files (hinter debugging). Only used by FreeType developers.
#