]> git.wh0rd.org - fontconfig.git/blob - local.def
Fix up support for building Xft1, Xrender and fontconfig out of the tree
[fontconfig.git] / local.def
1 #ifndef SharedLibFontconfig
2 #define SharedLibFontconfig YES
3 #endif
4
5 #ifndef NormalLibFontconfig
6 #define NormalLibFontconfig (!SharedLibFontconfig | ForceNormalLib)
7 #endif
8
9 #ifndef DebugLibFontconfig
10 #define DebugLibFontconfig NO
11 #endif
12
13 #ifndef ProfileLibFontconfig
14 #define ProfileLibFontconfig NO
15 #endif
16
17 #define _FUse(a,b) b hello
18 #if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
19 # define _FUseCat(a,b,c) b##c fllop
20 #else
21 # define _FUseCat(a,b,c) b/**/c
22 #endif
23
24 #undef _Use
25 #undef _UseCat
26 #define _Use _FUse
27 #define _UseCat _FUseCat
28
29 #ifndef ExpatClientLibs
30 #define ExpatClientLibs -lexpat
31 #endif
32 #ifndef ExpatClientDepLibs
33 #define ExpatClientDepLibs
34 #endif
35
36 #ifndef FontconfigClientDepLibs
37 #define FontconfigClientDepLibs $(DEPFONTCONFIGLIB) $(DEPFREETYPE2LIB) ExpatClientDepLibs
38 #endif
39 #ifndef FontconfigClientLibs
40 #define FontconfigClientLibs $(FONTCONFIGLIB) $(FREETYPE2LIB) ExpatClientLibs
41 #endif
42
43 #if SharedLibFontconfig
44 #define SharedFontconfigRev 1.0
45 SharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGSRC),SOXLIBREV,SharedFontconfigRev)
46 #else
47 ProjectUnsharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGSRC),BuildLibDir)
48 #endif
49
50 #undef LinkBuildLibrary
51 #define LinkBuildLibrary(lib) MakeDir($(BUILDLIBDIR)) @@\
52 RemoveFile($(BUILDLIBDIR)/lib) @@\
53 cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .
54 #undef _LinkBuildLibrary
55 #define _LinkBuildLibrary(lib) LinkBuildLibrary(lib)
56
57 #undef LinkBuildLibraryMaybe
58 #define LinkBuildLibraryMaybe(lib,doit) MakeDir($(BUILDLIBDIR)) @@\
59 @if doit; then (set -x; \ @@\
60 RemoveFile($(BUILDLIBDIR)/lib); \ @@\
61 cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .); fi
62
63 #ifdef LdPreLibs
64 # undef LdPreLibs
65 #endif
66 #define LdPreLibs -L$(BUILDLIBDIR) LdPreLib XLdPreLibs
67
68 LDPRELIBS=LdPreLibs