]> git.wh0rd.org Git - fontconfig.git/commitdiff
Update fontconfig and libxml2 to get them working with in-tree build dri-20020129-merge
authorKeith Packard <keithp@keithp.com>
Fri, 15 Feb 2002 00:49:44 +0000 (00:49 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 15 Feb 2002 00:49:44 +0000 (00:49 +0000)
    process

fc-cache/Imakefile
fc-list/Imakefile
src/Imakefile

index 12216e78c9d78c36a02bdf9adeea16d966888606..1950b3ceea60334526500d51b393667d0da455be 100644 (file)
@@ -1,13 +1,7 @@
-#include "../../libxml2/config.h"
-#if HAVE_ZLIB_H
-ZLIB=-lz
-#endif
+INCLUDES=$(FREETYPE2INCLUDES) $(LIBXML2INCLUDES) -I..
 
-INCLUDES=-I../../freetype2 -I/usr/include/libxml2 -I..
-FREETYPE2REQLIB = ../../freetype2/libfreetype.a
-XML2REQLIB=../../libxml2/.libs/libxml2.a $(ZLIB) -lm
-
-LOCAL_LIBRARIES=-L../src -lfontconfig $(FREETYPE2REQLIB) $(XML2REQLIB)
+LOCAL_LIBRARIES=FontconfigClientLibs
+        DEPLIBS=FontconfigDepLibs
 
 SRCS=fc-cache.c
 OBJS=fc-cache.o
index a773b4519b59fa9fb491f6b0a12bd47d4ca167f3..cff22bbe9ddb6e96b6bcc10501c9657e492c82ab 100644 (file)
@@ -1,14 +1,7 @@
-#include "../../libxml2/config.h"
-#if HAVE_ZLIB_H
-ZLIB=-lz
-#endif
+INCLUDES=$(FREETYPE2INCLUDES) $(LIBXML2INCLUDES) -I..
 
-INCLUDES=-I../../freetype2 -I/usr/include/libxml2 -I..
-FREETYPE2REQLIB = ../../freetype2/libfreetype.a
-XML2REQLIB=../../libxml2/.libs/libxml2.a $(ZLIB) -lm
-
-LOCAL_LIBRARIES=-L../src -lfontconfig $(FREETYPE2REQLIB) $(XML2REQLIB)
-DEPLIBS=../src/libfontconfig.a
+LOCAL_LIBRARIES=FontconfigClientLibs
+        DEPLIBS=FontconfigDepLibs
 
 SRCS=fc-list.c
 OBJS=fc-list.o
index 1ba4cb562b7ca82b0128ff7cc5913cd1eb5aecb3..baf27ebac579e674635b5e14681c202027452239 100644 (file)
@@ -1,26 +1,6 @@
-#include "../../libxml2/config.h"
-#if HAVE_ZLIB_H
-ZLIB=-lz
-#endif
-
-#if 0
-#define SharedLibFontconfig YES
-#endif
-
-#ifndef SharedLibFontconfig
-#define SharedLibFontconfig NO
-#endif
-
-#ifndef NormalLibFontconfig
-#define NormalLibFontconfig (!SharedLibFontConfig | ForceNormalLib)
-#endif
-
-#ifndef DebugLibFontconfig
-#define DebugLibFontconfig             NO
-#endif
-
-#ifndef ProfileLibFontconfig
-#define ProfileLibFontconfig           NO
+#ifdef UseInstalled
+/* building outside the tree, use private defines */
+#include "../local.def"
 #endif
 
 #define LibHeaders NO
@@ -29,15 +9,6 @@ FONTCONFIGSRC=.
 
 FALLBACK_FONTS=$(FONTDIR)/Type1
 
-#if SharedLibFontconfig
-#ifndef SharedFontconfigRev
-#define SharedFontconfigRev 1.0
-#endif
-SharedLibReferences(FONTCONFIG,Fontconfig,$(FONTCONFIGSRC),SOXLIBREV,SharedFontconfigRev)
-#else
-ProjectUnsharedLibReferences(FONTCONFIG,Fontconfig,$(FONTCONFIGSRC),BuildLibDir)
-#endif
-
 #define DoNormalLib NormalLibFontconfig
 #define DoSharedLib SharedLibFontconfig
 #define DoExtraLib SharedLibFontconfig
@@ -50,18 +21,11 @@ SOFONTCONFIGREV=1.0
 
 #include <Threads.tmpl>
 
-#if SharedLibFontconfig
-INCLUDES=-I/usr/local/include/freetype2 -I/usr/include/libxml2 -I..
-FREETYPE2REQLIB = -L/usr/local/lib -lfreetype
-XML2REQLIB=-lxml2
-#else
-INCLUDES=-I../../freetype2 -I../../libxml2/include -I..
-FREETYPE2REQLIB = ../../freetype2/libfreetype.a
-XML2REQLIB=../../libxml2/.libs/libxml2.a $(ZLIB) -lm
-#endif
+INCLUDES=$(FREETYPE2INCLUDES) $(LIBXML2INCLUDES) -I..
+
 DEFINES=-DFC_FALLBACK_FONTS='"$(FALLBACK_FONTS)"'
 
-REQUIREDLIBS=$(LDPRELIBS) $(FREETYPE2REQLIB) $(XML2REQLIB)
+REQUIREDLIBS=$(LDPRELIBS) $(FREETYPE2LIB) $(LIBXML2LIB)
 
 SRCS=fcblanks.c fccache.c fccfg.c fccharset.c fcdbg.c fcdefault.c fcdir.c \
      fcfreetype.c fcfs.c fcinit.c fclist.c fcmatch.c fcmatrix.c fcname.c \
@@ -71,13 +35,6 @@ OBJS=fcblanks.o fccache.o fccfg.o fccharset.o fcdbg.o fcdefault.o fcdir.o \
      fcfreetype.o fcfs.o fcinit.o fclist.o fcmatch.o fcmatrix.o fcname.o \
      fcpat.o fcstr.o fcxml.o
 
-#define LibInstallBuild YES
-#undef LinkBuildLibrary
-#define LinkBuildLibrary(lib) MakeDir($(BUILDLIBDIR))                  @@\
-       RemoveFile($(BUILDLIBDIR)/lib)                                  @@\
-       cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .
-
-
 #include <Library.tmpl>
 
 #if DoSharedLib && SharedDataSeparation