]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common.bkl
fixed dependencies
[wxWidgets.git] / build / bakefiles / common.bkl
CommitLineData
ddf98968
VS
1<?xml version="1.0" ?>
2<makefile>
3
4 <!-- bakefile modules we need: -->
5 <using module="datafiles"/>
6
7 <!-- load python module with wxwindows helpers: -->
8 <using module="wxwin"/>
9
10 <include file="config.bkl"/>
11
12
13 <!-- ================================================================== -->
14 <!-- wxWindows version numbers: -->
15 <!-- ================================================================== -->
16
17 <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set>
18 <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set>
19 <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set>
20 <set var="WX_VERSION">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)</set>
21
22 <set var="WXSOVERSION">0.0.0</set>
23 <set var="WXMACVERSION">$(WX_VERSION)</set>
24
25
26 <!-- ================================================================== -->
27 <!-- Names of libraries and DLLs: -->
28 <!-- ================================================================== -->
29
30 <set var="PORTNAME">
31 <if cond="USE_GUI=='0'">base</if>
32 <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if>
33 </set>
34
35 <set var="COMPILERORGCC">
36 <if cond="isdefined('COMPILER')">$(COMPILER)</if>
37 <if cond="not isdefined('COMPILER')">gcc</if>
38 </set>
39 <set var="WXCOMPILER">
40 <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if>
41 </set>
42
43 <set var="WXDEBUGFLAG">
44 <if cond="BUILD=='debug'">d</if>
45 </set>
46 <set var="WXUNICODEFLAG">
47 <if cond="UNICODE=='1'">u</if>
48 </set>
49 <set var="WXNAMESUFFIX">
50 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
51 </set>
52
53 <set var="WXUNIVNAME">
54 <if cond="WXUNIV=='1'">univ</if>
55 </set>
56 <set var="WXUNIV_DEFINE">
57 <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if>
58 </set>
59
60 <set var="WXNAMEPREFIX">wx</set>
61 <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
62 <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set>
63
64 <set var="TOOLCHAIN_NAME">
65 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR)
66 </set>
67
68
69 <!-- =============================================================== -->
70 <!-- Names of component libraries: -->
71 <!-- =============================================================== -->
72
73 <set var="WXLIB_CORE">
74 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
75 </set>
76
77 <set var="WXLIB_MONO">
78 <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
79 </set>
80
81
82 <!-- =============================================================== -->
83 <!-- Where to store built libraries: -->
84 <!-- =============================================================== -->
85
86 <set var="LIBDIRNAME">
87 <if cond="FORMAT=='autoconf'">$(top_builddir)/lib</if>
88 </set>
89
90 <!-- =============================================================== -->
91 <!-- 3rd party libs: -->
92 <!-- =============================================================== -->
93
94 <!-- 3rd party libraries: -->
95 <include file="regex.bkl"/>
96 <include file="zlib.bkl"/>
97 <include file="png.bkl"/>
98 <include file="jpeg.bkl"/>
99 <include file="tiff.bkl"/>
100 <include file="odbc.bkl"/>
101
102
103 <!-- =============================================================== -->
104 <!-- Templates for wxWindows libs: -->
105 <!-- =============================================================== -->
106
107 <set var="WXTOPDIR"></set>
108
109 <template id="wx">
110 <set var="wxid">$(wxwin.mk_wxid(id))</set>
111 <define>__WX$(TOOLKIT)__</define>
112 <define>$(WXUNIV_DEFINE)</define>
113 <include>$(SRCDIR)$(WXTOPDIR)/include</include>
114 <lib-path>$(LIBDIRNAME)</lib-path>
115 </template>
116
117 <template id="wx_append">
118 <ldflags>$(EXTRALIBS)</ldflags>
119 <!-- link against builtin 3rd party libs, if needed: -->
120 <sys-lib>$(LIB_JPEG)</sys-lib>
121 <sys-lib>$(LIB_PNG)</sys-lib>
122 <sys-lib>$(LIB_ZLIB)</sys-lib>
123 <sys-lib>$(LIB_TIFF)</sys-lib>
124 <sys-lib>$(LIB_ODBC)</sys-lib>
125 <sys-lib>$(LIB_REGEX)</sys-lib>
126 </template>
127
128 <template id="wx_lib" template="wx" template_append="wx_append">
129 <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
130 <dirname>$(LIBDIRNAME)</dirname>
131 <libname>$(WXLIBNAME)</libname>
132 <install-to>$(LIBDIR)</install-to>
133 </template>
134
135 <template id="wx_dll" template="wx_lib">
136 <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set>
137 <dllname>$(WXDLLNAME)</dllname>
138 <version>$(WX_VERSION)</version>
139 <so_version>$(WXSOVERSION)</so_version>
140 <mac_version>$(WXMACVERSION)</mac_version>
141 </template>
142
143
144 <!-- =============================================================== -->
145 <!-- Support for wxWindows samples and contrib: -->
146 <!-- =============================================================== -->
147
148 <!-- Link against one wxWin library. Value must be literal! -->
149 <define-tag name="wx-lib" rules="exe,dll">
150 <sys-lib>$(wxwin.libToLink(value))</sys-lib>
151 </define-tag>
152
153</makefile>