]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
481290e2 VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 | 4 | <makefile> |
c0608865 | 5 | |
ddf98968 VS |
6 | <!-- bakefile modules we need: --> |
7 | <using module="datafiles"/> | |
8 | ||
9 | <!-- load python module with wxwindows helpers: --> | |
10 | <using module="wxwin"/> | |
11 | ||
12 | <include file="config.bkl"/> | |
13 | ||
14 | ||
15 | <!-- ================================================================== --> | |
16 | <!-- wxWindows version numbers: --> | |
17 | <!-- ================================================================== --> | |
18 | ||
19 | <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set> | |
20 | <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set> | |
21 | <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set> | |
22 | <set var="WX_VERSION">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)</set> | |
23 | ||
24 | <set var="WXSOVERSION">0.0.0</set> | |
25 | <set var="WXMACVERSION">$(WX_VERSION)</set> | |
26 | ||
27 | ||
28 | <!-- ================================================================== --> | |
29 | <!-- Names of libraries and DLLs: --> | |
30 | <!-- ================================================================== --> | |
31 | ||
32 | <set var="PORTNAME"> | |
33 | <if cond="USE_GUI=='0'">base</if> | |
34 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
35 | </set> | |
64a2a46f VS |
36 | |
37 | <set var="WXBASEPORT"> | |
38 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
39 | </set> | |
ddf98968 VS |
40 | |
41 | <set var="COMPILERORGCC"> | |
42 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
43 | <if cond="not isdefined('COMPILER')">gcc</if> | |
44 | </set> | |
45 | <set var="WXCOMPILER"> | |
46 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
47 | </set> | |
4fc5f509 VS |
48 | |
49 | <set var="VENDORTAG"> | |
cff5df9f VS |
50 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> |
51 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
4fc5f509 VS |
52 | </set> |
53 | ||
ddf98968 VS |
54 | <set var="WXDEBUGFLAG"> |
55 | <if cond="BUILD=='debug'">d</if> | |
56 | </set> | |
57 | <set var="WXUNICODEFLAG"> | |
58 | <if cond="UNICODE=='1'">u</if> | |
59 | </set> | |
60 | <set var="WXNAMESUFFIX"> | |
61 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
62 | </set> | |
63 | ||
64 | <set var="WXUNIVNAME"> | |
65 | <if cond="WXUNIV=='1'">univ</if> | |
66 | </set> | |
67 | <set var="WXUNIV_DEFINE"> | |
68 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
69 | </set> | |
70 | ||
cdc0282e | 71 | <if cond="FORMAT=='autoconf'"> |
64a2a46f | 72 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> |
cdc0282e VS |
73 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> |
74 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
75 | </if> | |
76 | <if cond="FORMAT!='autoconf'"> | |
64a2a46f VS |
77 | <set var="WXNAMEPREFIX"> |
78 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
79 | </set> | |
80 | <set var="WXNAMEPREFIXGUI"> | |
81 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set> | |
cdc0282e VS |
82 | <set var="WXVERSIONTAG"></set> |
83 | </if> | |
4fc5f509 | 84 | <set var="WXDLLNAMEPREFIX"> |
64a2a46f VS |
85 | <if cond="PLATFORM_WIN32=='1'"> |
86 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
87 | </if> | |
4fc5f509 VS |
88 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> |
89 | </set> | |
90 | <set var="WXDLLNAMEPREFIXGUI"> | |
91 | <if cond="PLATFORM_WIN32=='1'"> | |
92 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR) | |
93 | </if> | |
94 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if> | |
95 | </set> | |
96 | <set var="WXDLLVERSIONTAG"> | |
97 | <if cond="PLATFORM_WIN32=='1'"></if> | |
98 | <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if> | |
99 | </set> | |
ddf98968 | 100 | |
ddf98968 VS |
101 | |
102 | <!-- =============================================================== --> | |
103 | <!-- Names of component libraries: --> | |
104 | <!-- =============================================================== --> | |
105 | ||
e86e1522 VS |
106 | <set var="WXLIB_BASE"> |
107 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
108 | </set> | |
ddf98968 VS |
109 | <set var="WXLIB_CORE"> |
110 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
111 | </set> | |
fab9850d | 112 | <set var="WXLIB_HTML"> |
e86e1522 | 113 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> |
fab9850d | 114 | </set> |
a69544bf VS |
115 | <set var="WXLIB_XML"> |
116 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if> | |
117 | </set> | |
ddf98968 VS |
118 | |
119 | <set var="WXLIB_MONO"> | |
120 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
121 | </set> | |
122 | ||
123 | ||
124 | <!-- =============================================================== --> | |
cff5df9f | 125 | <!-- Where to store built libraries and objects: --> |
ddf98968 | 126 | <!-- =============================================================== --> |
4843dc4c | 127 | |
cff5df9f VS |
128 | |
129 | <if cond="FORMAT!='autoconf'"> | |
130 | <set var="WXDLLFLAG"> | |
131 | <if cond="SHARED=='1'">dll</if> | |
132 | </set> | |
133 | <set var="CFG_NAME_PART"> | |
134 | $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
135 | </set> | |
bdb03aa9 | 136 | <set var="OBJS" make_var="1">$(COMPILER)_$(CFG_NAME_PART)</set> |
cff5df9f VS |
137 | <set var="BUILDDIR">$(OBJS)</set> |
138 | </if> | |
cff5df9f | 139 | |
ddf98968 | 140 | <set var="LIBDIRNAME"> |
481290e2 | 141 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> |
cff5df9f VS |
142 | <if cond="FORMAT!='autoconf'"> |
143 | $(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART) | |
144 | </if> | |
ddf98968 | 145 | </set> |
cff5df9f | 146 | |
4843dc4c VS |
147 | |
148 | <!-- =============================================================== --> | |
149 | <!-- Templates for libs: --> | |
150 | <!-- =============================================================== --> | |
cdc0282e VS |
151 | |
152 | <set var="DEBUGFLAG"> | |
153 | <if cond="BUILD=='debug'">on</if> | |
154 | <if cond="BUILD=='release'">off</if> | |
155 | </set> | |
156 | <set var="OPTIMIZEFLAG"> | |
546a7e42 VS |
157 | <if cond="BUILD=='debug'">off</if> |
158 | <if cond="BUILD=='release'">speed</if> | |
cdc0282e | 159 | </set> |
15b44c69 VS |
160 | |
161 | <set var="DEBUG_DEFINE"> | |
162 | <if cond="FORMAT!='autoconf' and BUILD=='debug'">__WXDEBUG__</if> | |
163 | </set> | |
164 | <set var="UNICODE_DEFINE"> | |
165 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">wxUSE_UNICODE=1</if> | |
166 | </set> | |
5e3746dc | 167 | |
149cc218 | 168 | <template id="common_settings"> |
5e3746dc VS |
169 | <debug-info>$(DEBUGFLAG)</debug-info> |
170 | <optimize>$(OPTIMIZEFLAG)</optimize> | |
171 | <threading>multi</threading> | |
4b44ea2b | 172 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> |
5e3746dc VS |
173 | <if cond="FORMAT!='autoconf'"> |
174 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
175 | </if> | |
176 | </template> | |
4843dc4c VS |
177 | |
178 | <template id="anylib"> | |
4843dc4c VS |
179 | <dirname>$(LIBDIRNAME)</dirname> |
180 | <install-to>$(LIBDIR)</install-to> | |
181 | </template> | |
182 | ||
149cc218 | 183 | <template id="3rdparty_lib" template="common_settings,anylib"> |
ea66c762 | 184 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> |
82cb0280 VS |
185 | </template> |
186 | ||
ddf98968 VS |
187 | |
188 | <!-- =============================================================== --> | |
189 | <!-- 3rd party libs: --> | |
190 | <!-- =============================================================== --> | |
191 | ||
192 | <!-- 3rd party libraries: --> | |
193 | <include file="regex.bkl"/> | |
194 | <include file="zlib.bkl"/> | |
195 | <include file="png.bkl"/> | |
196 | <include file="jpeg.bkl"/> | |
197 | <include file="tiff.bkl"/> | |
198 | <include file="odbc.bkl"/> | |
a69544bf | 199 | <include file="expat.bkl"/> |
ddf98968 VS |
200 | |
201 | ||
202 | <!-- =============================================================== --> | |
203 | <!-- Templates for wxWindows libs: --> | |
204 | <!-- =============================================================== --> | |
cdc0282e | 205 | |
149cc218 | 206 | <template id="wx" template="common_settings"> |
ddf98968 VS |
207 | <set var="wxid">$(wxwin.mk_wxid(id))</set> |
208 | <define>__WX$(TOOLKIT)__</define> | |
209 | <define>$(WXUNIV_DEFINE)</define> | |
15b44c69 VS |
210 | <define>$(DEBUG_DEFINE)</define> |
211 | <define>$(UNICODE_DEFINE)</define> | |
4843dc4c | 212 | <include>$(TOP_SRCDIR)include</include> |
cdc0282e | 213 | <lib-path>$(LIBDIRNAME)</lib-path> |
4843dc4c VS |
214 | <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include> |
215 | <include>$(INC_TIFF)</include> | |
216 | <include>$(INC_JPEG)</include> | |
217 | <include>$(INC_PNG)</include> | |
218 | <include>$(INC_ZLIB)</include> | |
219 | <include>$(INC_ODBC)</include> | |
220 | <include>$(INC_REGEX)</include> | |
e3b108b8 | 221 | <include>$(INC_EXPAT)</include> |
ddf98968 VS |
222 | </template> |
223 | ||
c74dc163 | 224 | <!-- for both GUI and wxBase libs/samples: --> |
e83a52a2 | 225 | <template id="wx_append_base_nomono"> |
ddf98968 | 226 | <!-- link against builtin 3rd party libs, if needed: --> |
4843dc4c | 227 | <sys-lib>$(LIB_TIFF)</sys-lib> |
ddf98968 VS |
228 | <sys-lib>$(LIB_JPEG)</sys-lib> |
229 | <sys-lib>$(LIB_PNG)</sys-lib> | |
230 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
ddf98968 VS |
231 | <sys-lib>$(LIB_ODBC)</sys-lib> |
232 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
a69544bf | 233 | <sys-lib>$(LIB_EXPAT)</sys-lib> |
15b44c69 VS |
234 | |
235 | <ldlibs>$(EXTRALIBS)</ldlibs> | |
236 | ||
237 | <!-- system libraries on windows: --> | |
238 | <if cond="FORMAT!='autoconf'"> | |
239 | <if cond="COMPILER=='bcc'"> | |
240 | <sys-lib>import32</sys-lib> | |
cb8bbc13 VS |
241 | <sys-lib>ole2w32</sys-lib> |
242 | </if> | |
243 | <if cond="COMPILER!='bcc'"> | |
244 | <sys-lib>kernel32</sys-lib> | |
245 | <sys-lib>user32</sys-lib> | |
246 | <sys-lib>gdi32</sys-lib> | |
247 | <sys-lib>comdlg32</sys-lib> | |
248 | <sys-lib>winspool</sys-lib> | |
249 | <sys-lib>winmm</sys-lib> | |
250 | <sys-lib>shell32</sys-lib> | |
cb8bbc13 VS |
251 | <sys-lib>comctl32</sys-lib> |
252 | <sys-lib>odbc32</sys-lib> | |
253 | <sys-lib>ole32</sys-lib> | |
254 | <sys-lib>oleaut32</sys-lib> | |
255 | <sys-lib>uuid</sys-lib> | |
256 | <sys-lib>rpcrt4</sys-lib> | |
257 | <sys-lib>advapi32</sys-lib> | |
258 | <sys-lib>wsock32</sys-lib> | |
15b44c69 VS |
259 | </if> |
260 | </if> | |
ddf98968 VS |
261 | </template> |
262 | ||
c74dc163 | 263 | <!-- for GUI libs/samples: --> |
e83a52a2 | 264 | <template id="wx_append_nomono" template="wx_append_base_nomono"> |
c74dc163 VS |
265 | <ldlibs>$(EXTRALIBS_GUI)</ldlibs> |
266 | </template> | |
267 | ||
e83a52a2 VS |
268 | |
269 | <template id="wx_append_base" template_append="wx_append_base_nomono"> | |
270 | <!-- Always link against the wxWin library in monolithic build: --> | |
271 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
272 | </template> | |
273 | <template id="wx_append" template_append="wx_append_nomono"> | |
274 | <!-- Always link against the wxWin library in monolithic build: --> | |
275 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
276 | </template> | |
277 | ||
278 | ||
4843dc4c | 279 | <template id="wx_lib_b" template="wx,anylib"> |
ddf98968 | 280 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> |
ddf98968 | 281 | <libname>$(WXLIBNAME)</libname> |
cb8bbc13 VS |
282 | |
283 | <if cond="FORMAT!='autoconf'"> | |
c3b14ba4 VS |
284 | <sources>$(WXTOPDIR)src/msw/dummy.cpp</sources> |
285 | <precomp-headers-gen> | |
286 | $(WXTOPDIR)src/msw/dummy.cpp | |
287 | </precomp-headers-gen> | |
cb8bbc13 VS |
288 | </if> |
289 | <precomp-headers-header>wx/wxprec.h</precomp-headers-header> | |
cdc0282e | 290 | <precomp-headers>on</precomp-headers> |
cb8bbc13 | 291 | <precomp-headers-file>wxprec_$(id)</precomp-headers-file> |
ddf98968 | 292 | </template> |
cb8bbc13 | 293 | |
fab9850d | 294 | <template id="wx_dll_b" template="wx_lib_b"> |
ddf98968 VS |
295 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> |
296 | <dllname>$(WXDLLNAME)</dllname> | |
297 | <version>$(WX_VERSION)</version> | |
298 | <so_version>$(WXSOVERSION)</so_version> | |
299 | <mac_version>$(WXMACVERSION)</mac_version> | |
300 | </template> | |
c0608865 | 301 | |
fab9850d | 302 | <template id="wx_lib" template="wx_lib_b"/> |
c74dc163 | 303 | <template id="wx_base_lib" template="wx_lib_b"/> |
e83a52a2 VS |
304 | <template id="wx_dll" template="wx_dll_b" |
305 | template_append="wx_append_nomono"> | |
15b44c69 VS |
306 | <depends>wxtiff</depends> |
307 | <depends>wxjpeg</depends> | |
308 | <depends>wxpng</depends> | |
a69544bf | 309 | <depends>wxexpat</depends> |
15b44c69 VS |
310 | <depends>wxzlib</depends> |
311 | <depends cond="FORMAT=='autoconf'">wxodbc</depends> | |
312 | <depends>wxregex</depends> | |
313 | </template> | |
c74dc163 | 314 | <template id="wx_base_dll" template="wx_dll_b" |
e83a52a2 | 315 | template_append="wx_append_base_nomono"> |
c74dc163 VS |
316 | <depends>wxzlib</depends> |
317 | <depends>wxregex</depends> | |
318 | </template> | |
c0608865 | 319 | |
ddf98968 VS |
320 | <!-- =============================================================== --> |
321 | <!-- Support for wxWindows samples and contrib: --> | |
322 | <!-- =============================================================== --> | |
323 | ||
324 | <!-- Link against one wxWin library. Value must be literal! --> | |
325 | <define-tag name="wx-lib" rules="exe,dll"> | |
326 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> | |
327 | </define-tag> | |
328 | ||
329 | </makefile> |