summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2002-03-08 12:12:12 +0000
committerDavid Turner <david@freetype.org>2002-03-08 12:12:12 +0000
commitf1aca31f59d50f7a494c4207ada6143d3e061833 (patch)
tree2b0a02d9ad9d62e387c6bd320fd83393e0fd473f
parent94c92745305cb9157da19da75850401964f7e24c (diff)
downloadfreetype2-f1aca31f59d50f7a494c4207ada6143d3e061833.tar.gz
* Jamfile.in: adding template file to support libtool with Jam on
Unix..
-rw-r--r--ChangeLog6
-rw-r--r--Jamfile.in76
2 files changed, 82 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6195af456..629f30cbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-09 David Turner <david@freetype.org>
+
+ * Jamfile.in: adding template file to support libtool with Jam on
+ Unix..
+
+
2002-03-08 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Realloc): Use MEM_Set instead of memset.
diff --git a/Jamfile.in b/Jamfile.in
new file mode 100644
index 000000000..70a9402c3
--- /dev/null
+++ b/Jamfile.in
@@ -0,0 +1,76 @@
+# FreeType 2 top Jamfile (c) 2001 David Turner
+#
+
+# We need to invoke a SubDir rule if the FT2 source directory top is not the
+# current directory. This allows us to build FreeType 2 as part of a larger
+# project easily.
+#
+if $(FT2_TOP) != $(DOT)
+{
+ SubDir FT2_TOP ;
+}
+
+FT2_INCLUDE = [ FT2_SubDir include ] ;
+FT2_SRC = [ FT2_SubDir src ] ;
+
+FT2_LIB = $(LIBPREFIX)freetype ;
+
+
+# Libtool support, this is actually generated from a template in Jamfile.in !!
+# we may move this code into 'builds/unix' someday to make the top-level
+# Jamfile cleaner..
+#
+if $(UNIX) && ! $(FT2_DEVEL)
+{
+ LIBTOOL = [ FT2_SubDir builds unix libtool ] ;
+
+ CCFLAGS = @XX_CFLAGS@ @XX_ANSIFLAGS@ @CFLAGS@ ;
+
+ CC = $(LIBTOOL) --mode=compile $(CC) ;
+
+ LINK = $(LIBTOOL) --mode=link $(LINK) -rpath @libdir@
+ -version_info @version_info@ ;
+
+ LINKFLAGS = @LDFLAGS@ ;
+}
+
+
+# used only when trying to debug the hinter(s)
+#
+if $(DEBUG_HINTER)
+{
+ CCFLAGS += -DDEBUG_HINTER ;
+}
+
+
+# We need "freetype2/include" in the current include path in order to
+# compile any part of FreeType 2.
+#
+SubDirHdr += $(FT2_INCLUDE) ;
+
+# Uncomment the following line if you want to build individual source files
+# for each FreeType 2 module.
+#
+# FT2_MULTI = true ;
+
+# The file <freetype/config/ftheader.h> is used to define macros that are
+# later used in #include statements. It needs to be parsed in order to
+# record these definitions.
+#
+HDRMACRO [ FT2_SubDir include freetype config ftheader.h ] ;
+HDRMACRO [ FT2_SubDir include freetype internal internal.h ] ;
+
+# Now include the Jamfile in "freetype2/src", used to drive the compilation
+# of each FreeType 2 component and/or module.
+#
+SubInclude FT2_TOP src ;
+
+
+# tests files (hinter debugging)
+#
+if $(DEBUG_HINTER)
+{
+ SubInclude FT2_TOP tests ;
+}
+
+# end of top Jamfile