]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
481290e2 VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 | 4 | <makefile> |
b6dc1b90 | 5 | |
a63d2334 | 6 | <requires version="0.1.4"/> |
c0608865 | 7 | |
ddf98968 VS |
8 | <!-- bakefile modules we need: --> |
9 | <using module="datafiles"/> | |
10 | ||
11 | <!-- load python module with wxwindows helpers: --> | |
12 | <using module="wxwin"/> | |
13 | ||
14 | <include file="config.bkl"/> | |
c79241a2 VS |
15 | |
16 | <include file="plugins_deps.bkl"/> | |
ddf98968 VS |
17 | |
18 | <!-- ================================================================== --> | |
19 | <!-- wxWindows version numbers: --> | |
20 | <!-- ================================================================== --> | |
21 | ||
22 | <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set> | |
23 | <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set> | |
24 | <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set> | |
ca58c9bb VS |
25 | <set var="WX_VERSION" make_var="1"> |
26 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) | |
27 | </set> | |
ddf98968 | 28 | |
bdc408c4 VS |
29 | <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set> |
30 | ||
31 | <set var="WXSOVERSION"> | |
32 | <if cond="WX_STABLE_BRANCH=='1'">0.0.0</if> | |
33 | <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE).0.0</if> | |
34 | </set> | |
ddf98968 | 35 | <set var="WXMACVERSION">$(WX_VERSION)</set> |
bdc408c4 VS |
36 | <set var="WXWIN32DLLVERSION"> |
37 | <if cond="WX_STABLE_BRANCH=='1'">$(WXVER_MAJOR)$(WXVER_MINOR)</if> | |
38 | <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)</if> | |
39 | </set> | |
ddf98968 VS |
40 | |
41 | ||
42 | <!-- ================================================================== --> | |
43 | <!-- Names of libraries and DLLs: --> | |
44 | <!-- ================================================================== --> | |
45 | ||
46 | <set var="PORTNAME"> | |
47 | <if cond="USE_GUI=='0'">base</if> | |
48 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
49 | </set> | |
64a2a46f VS |
50 | |
51 | <set var="WXBASEPORT"> | |
52 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
53 | </set> | |
ddf98968 VS |
54 | |
55 | <set var="COMPILERORGCC"> | |
56 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
57 | <if cond="not isdefined('COMPILER')">gcc</if> | |
58 | </set> | |
59 | <set var="WXCOMPILER"> | |
60 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
61 | </set> | |
4fc5f509 VS |
62 | |
63 | <set var="VENDORTAG"> | |
cff5df9f VS |
64 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> |
65 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
4fc5f509 VS |
66 | </set> |
67 | ||
ddf98968 | 68 | <set var="WXDEBUGFLAG"> |
4f6e1dac VS |
69 | <if cond="BUILD=='debug' and DEBUG_FLAG=='default'">d</if> |
70 | <if cond="DEBUG_FLAG=='1'">d</if> | |
ddf98968 VS |
71 | </set> |
72 | <set var="WXUNICODEFLAG"> | |
af594eca VS |
73 | <!-- WinCE is Unicode-only platform: --> |
74 | <if cond="UNICODE=='1' and FORMAT!='msevc4prj'">u</if> | |
ddf98968 VS |
75 | </set> |
76 | <set var="WXNAMESUFFIX"> | |
77 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
78 | </set> | |
79 | ||
80 | <set var="WXUNIVNAME"> | |
81 | <if cond="WXUNIV=='1'">univ</if> | |
82 | </set> | |
83 | <set var="WXUNIV_DEFINE"> | |
84 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
85 | </set> | |
86 | ||
cdc0282e | 87 | <if cond="FORMAT=='autoconf'"> |
64a2a46f | 88 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> |
cdc0282e VS |
89 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> |
90 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
91 | </if> | |
92 | <if cond="FORMAT!='autoconf'"> | |
64a2a46f VS |
93 | <set var="WXNAMEPREFIX"> |
94 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
95 | </set> | |
96 | <set var="WXNAMEPREFIXGUI"> | |
97 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set> | |
cdc0282e VS |
98 | <set var="WXVERSIONTAG"></set> |
99 | </if> | |
4fc5f509 | 100 | <set var="WXDLLNAMEPREFIX"> |
64a2a46f | 101 | <if cond="PLATFORM_WIN32=='1'"> |
bdc408c4 | 102 | wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION) |
64a2a46f | 103 | </if> |
4fc5f509 VS |
104 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> |
105 | </set> | |
106 | <set var="WXDLLNAMEPREFIXGUI"> | |
107 | <if cond="PLATFORM_WIN32=='1'"> | |
bdc408c4 | 108 | wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION) |
4fc5f509 VS |
109 | </if> |
110 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if> | |
111 | </set> | |
112 | <set var="WXDLLVERSIONTAG"> | |
113 | <if cond="PLATFORM_WIN32=='1'"></if> | |
114 | <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if> | |
115 | </set> | |
ddf98968 | 116 | |
ddf98968 VS |
117 | |
118 | <!-- =============================================================== --> | |
119 | <!-- Names of component libraries: --> | |
120 | <!-- =============================================================== --> | |
121 | ||
e86e1522 VS |
122 | <set var="WXLIB_BASE"> |
123 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
124 | </set> | |
7c4728f6 VS |
125 | <set var="WXLIB_NET"> |
126 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if> | |
127 | </set> | |
ddf98968 VS |
128 | <set var="WXLIB_CORE"> |
129 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
130 | </set> | |
13cb46e0 VS |
131 | <set var="WXLIB_ADV"> |
132 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if> | |
133 | </set> | |
fab9850d | 134 | <set var="WXLIB_HTML"> |
e86e1522 | 135 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> |
fab9850d | 136 | </set> |
a69544bf VS |
137 | <set var="WXLIB_XML"> |
138 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if> | |
139 | </set> | |
bb41dcbe | 140 | <set var="WXLIB_ODBC"> |
395a1c56 VS |
141 | <if cond="MONOLITHIC=='0' and USE_ODBC=='1'"> |
142 | $(mk.evalExpr(wxwin.mkLibName('odbc'))) | |
143 | </if> | |
bb41dcbe | 144 | </set> |
45293562 VS |
145 | <set var="WXLIB_DBGRID"> |
146 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))</if> | |
147 | </set> | |
ddf98968 VS |
148 | |
149 | <set var="WXLIB_MONO"> | |
150 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
151 | </set> | |
152 | ||
153 | ||
154 | <!-- =============================================================== --> | |
cff5df9f | 155 | <!-- Where to store built libraries and objects: --> |
ddf98968 | 156 | <!-- =============================================================== --> |
4843dc4c | 157 | |
af594eca VS |
158 | <set var="DIR_SUFFIX_CPU"> |
159 | <if cond="FORMAT=='msevc4prj'">_$(CPU)</if> | |
160 | </set> | |
cff5df9f VS |
161 | |
162 | <if cond="FORMAT!='autoconf'"> | |
163 | <set var="WXDLLFLAG"> | |
164 | <if cond="SHARED=='1'">dll</if> | |
165 | </set> | |
166 | <set var="CFG_NAME_PART"> | |
167 | $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
168 | </set> | |
328f5196 | 169 | <set var="OBJS" make_var="1"> |
af594eca VS |
170 | <if cond="FORMAT!='cbuilderx'"> |
171 | $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU) | |
172 | </if> | |
328f5196 VS |
173 | <!-- FIXME: waiting for removal after CBX has better ../ dirs |
174 | support --> | |
175 | <if cond="FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)</if> | |
176 | </set> | |
177 | ||
cff5df9f VS |
178 | <set var="BUILDDIR">$(OBJS)</set> |
179 | </if> | |
cff5df9f | 180 | |
390c0cfb | 181 | <set var="LIBDIRNAME" make_var="1"> |
481290e2 | 182 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> |
ee929bcf | 183 | <if cond="FORMAT!='autoconf' and SHARED=='0'"> |
af594eca | 184 | $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_lib$(CFG) |
ee929bcf VS |
185 | </if> |
186 | <if cond="FORMAT!='autoconf' and SHARED=='1'"> | |
af594eca | 187 | $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_dll$(CFG) |
cff5df9f | 188 | </if> |
ddf98968 | 189 | </set> |
ee929bcf VS |
190 | |
191 | <if cond="FORMAT!='autoconf'"> | |
192 | <set var="SETUPHDIR" make_var="1"> | |
193 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
194 | </set> | |
195 | </if> | |
196 | ||
cff5df9f | 197 | |
4843dc4c VS |
198 | |
199 | <!-- =============================================================== --> | |
200 | <!-- Templates for libs: --> | |
201 | <!-- =============================================================== --> | |
cdc0282e | 202 | |
4f6e1dac VS |
203 | <set var="DEBUGINFO"> |
204 | <if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if> | |
205 | <if cond="DEBUG_INFO=='1'">on</if> | |
206 | <if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if> | |
207 | <if cond="DEBUG_INFO=='0'">off</if> | |
208 | </set> | |
209 | <set var="DEBUGRUNTIME"> | |
210 | <if cond="DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)</if> | |
211 | <if cond="DEBUG_RUNTIME_LIBS=='0'">off</if> | |
212 | <if cond="DEBUG_RUNTIME_LIBS=='1'">on</if> | |
cdc0282e VS |
213 | </set> |
214 | <set var="OPTIMIZEFLAG"> | |
546a7e42 VS |
215 | <if cond="BUILD=='debug'">off</if> |
216 | <if cond="BUILD=='release'">speed</if> | |
cdc0282e | 217 | </set> |
9833a21a VS |
218 | <set var="EXCEPTIONSFLAG"> |
219 | <if cond="USE_EXCEPTIONS=='1'">on</if> | |
220 | <if cond="USE_EXCEPTIONS=='0'">off</if> | |
221 | </set> | |
15b44c69 VS |
222 | |
223 | <set var="DEBUG_DEFINE"> | |
4f6e1dac VS |
224 | <if cond="FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__</if> |
225 | <if cond="FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__</if> | |
15b44c69 | 226 | </set> |
4435bd42 MB |
227 | <!-- does not cover all cases, but better than nothing --> |
228 | <set var="NO_VC_CRTDBG"> | |
229 | <if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if> | |
230 | <if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if> | |
231 | </set> | |
15b44c69 | 232 | <set var="UNICODE_DEFINE"> |
ed4ccecd | 233 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if> |
15b44c69 | 234 | </set> |
416f5bc8 VS |
235 | |
236 | <set var="UNICOWS_LIB"> | |
237 | <if cond="MSLU=='1'">unicows</if> | |
238 | </set> | |
5e3746dc | 239 | |
149cc218 | 240 | <template id="common_settings"> |
4f6e1dac VS |
241 | <debug-info>$(DEBUGINFO)</debug-info> |
242 | <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> | |
5e3746dc VS |
243 | <optimize>$(OPTIMIZEFLAG)</optimize> |
244 | <threading>multi</threading> | |
4b44ea2b | 245 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> |
9833a21a VS |
246 | <cxx-rtti>$(EXCEPTIONSFLAG)</cxx-rtti> |
247 | <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions> | |
5e3746dc VS |
248 | <if cond="FORMAT!='autoconf'"> |
249 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
250 | </if> | |
4435bd42 | 251 | <define>$(NO_VC_CRTDBG)</define> |
5e3746dc | 252 | </template> |
4843dc4c VS |
253 | |
254 | <template id="anylib"> | |
4843dc4c VS |
255 | <dirname>$(LIBDIRNAME)</dirname> |
256 | <install-to>$(LIBDIR)</install-to> | |
257 | </template> | |
258 | ||
149cc218 | 259 | <template id="3rdparty_lib" template="common_settings,anylib"> |
ea66c762 | 260 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> |
52a5a009 VS |
261 | <!-- |
262 | we want to install 3rd party libs system-wide only with static | |
263 | version of wxWindows; otherwise they are embedded in shared libs: | |
264 | --> | |
265 | <install-if>SHARED=='0'</install-if> | |
af594eca | 266 | <pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic> |
82cb0280 | 267 | </template> |
cb9548d9 VS |
268 | |
269 | ||
270 | <!-- deal with the need to copy setup.h here: --> | |
82cb0280 | 271 | |
af594eca VS |
272 | <set var="IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])</set> |
273 | ||
cb9548d9 | 274 | <define-tag name="msvc-headers" rules="dll,lib"> |
af594eca | 275 | <if cond="IS_MSVC_PRJ"> |
cb9548d9 VS |
276 | <msvc-project-files> |
277 | $(addPrefixToList('include\', wxwin.headersOnly(value))) | |
278 | </msvc-project-files> | |
279 | </if> | |
280 | </define-tag> | |
281 | ||
282 | <define-tag name="msvc-copy-setup-h" rules="dll,lib"> | |
af594eca VS |
283 | <if cond="FORMAT=='msevc4prj'"> |
284 | <msvc-headers>wx/msw/wince/setup.h</msvc-headers> | |
285 | <set var="vc_setup_h">wince\setup.h</set> | |
286 | <set var="vc_setup_h_rule">wince_setup_h</set> | |
287 | </if> | |
288 | <if cond="FORMAT!='msevc4prj'"> | |
cb9548d9 | 289 | <msvc-headers>wx/msw/setup.h</msvc-headers> |
af594eca VS |
290 | <set var="vc_setup_h">setup.h</set> |
291 | <set var="vc_setup_h_rule">setup_h</set> | |
292 | </if> | |
293 | <if cond="IS_MSVC_PRJ"> | |
294 | <set var="_custom_build_files" append="1"> | |
295 | include\wx\msw\$(vc_setup_h) | |
cb9548d9 | 296 | </set> |
af594eca | 297 | <set var="_custom_build_include_wx_msw_$(vc_setup_h_rule)"> |
cb9548d9 | 298 | Creating $(SETUPHDIR)\wx\setup.h |
af594eca | 299 | InputPath=..\include\wx\msw\$(vc_setup_h) |
cb9548d9 VS |
300 | |
301 | "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)" | |
302 | $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h | |
303 | </set> | |
304 | </if> | |
305 | </define-tag> | |
306 | ||
307 | <template id="msvc_setup_h"> | |
308 | <msvc-copy-setup-h/> | |
309 | </template> | |
ddf98968 VS |
310 | |
311 | <!-- =============================================================== --> | |
312 | <!-- 3rd party libs: --> | |
313 | <!-- =============================================================== --> | |
314 | ||
315 | <!-- 3rd party libraries: --> | |
316 | <include file="regex.bkl"/> | |
317 | <include file="zlib.bkl"/> | |
318 | <include file="png.bkl"/> | |
319 | <include file="jpeg.bkl"/> | |
320 | <include file="tiff.bkl"/> | |
321 | <include file="odbc.bkl"/> | |
a69544bf | 322 | <include file="expat.bkl"/> |
ddf98968 VS |
323 | |
324 | ||
325 | <!-- =============================================================== --> | |
326 | <!-- Templates for wxWindows libs: --> | |
327 | <!-- =============================================================== --> | |
cdc0282e | 328 | |
149cc218 | 329 | <template id="wx" template="common_settings"> |
ddf98968 VS |
330 | <set var="wxid">$(wxwin.mk_wxid(id))</set> |
331 | <define>__WX$(TOOLKIT)__</define> | |
332 | <define>$(WXUNIV_DEFINE)</define> | |
15b44c69 VS |
333 | <define>$(DEBUG_DEFINE)</define> |
334 | <define>$(UNICODE_DEFINE)</define> | |
85ebb95c VS |
335 | <!-- this include is added by configure, we need to put other |
336 | includes before it: --> | |
337 | <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include> | |
cdc0282e | 338 | <lib-path>$(LIBDIRNAME)</lib-path> |
ee929bcf | 339 | <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include> |
432afc17 | 340 | <warnings>max</warnings> |
ddf98968 VS |
341 | </template> |
342 | ||
c74dc163 | 343 | <!-- for both GUI and wxBase libs/samples: --> |
e83a52a2 | 344 | <template id="wx_append_base_nomono"> |
ddf98968 | 345 | <!-- link against builtin 3rd party libs, if needed: --> |
4843dc4c | 346 | <sys-lib>$(LIB_TIFF)</sys-lib> |
ddf98968 VS |
347 | <sys-lib>$(LIB_JPEG)</sys-lib> |
348 | <sys-lib>$(LIB_PNG)</sys-lib> | |
349 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
ddf98968 VS |
350 | <sys-lib>$(LIB_ODBC)</sys-lib> |
351 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
a69544bf | 352 | <sys-lib>$(LIB_EXPAT)</sys-lib> |
15b44c69 VS |
353 | |
354 | <ldlibs>$(EXTRALIBS)</ldlibs> | |
355 | ||
356 | <!-- system libraries on windows: --> | |
357 | <if cond="FORMAT!='autoconf'"> | |
416f5bc8 | 358 | <sys-lib>$(UNICOWS_LIB)</sys-lib> |
328f5196 | 359 | <if cond="FORMAT=='borland'"> |
cb8bbc13 VS |
360 | <sys-lib>ole2w32</sys-lib> |
361 | </if> | |
f9c4805a VS |
362 | <if cond="FORMAT=='msevc4prj'"> |
363 | <sys-lib>ole32</sys-lib> | |
364 | <sys-lib>oleaut32</sys-lib> | |
365 | <sys-lib>uuid</sys-lib> | |
366 | <sys-lib>commctrl</sys-lib> | |
367 | <sys-lib>commdlg</sys-lib> | |
368 | <sys-lib>ceshell</sys-lib> | |
369 | <sys-lib>aygshell</sys-lib> | |
370 | <sys-lib>winsock</sys-lib> | |
371 | <sys-lib>wininet</sys-lib> | |
372 | </if> | |
373 | <if cond="FORMAT!='borland' and FORMAT!='msevc4prj'"> | |
cb8bbc13 VS |
374 | <sys-lib>kernel32</sys-lib> |
375 | <sys-lib>user32</sys-lib> | |
376 | <sys-lib>gdi32</sys-lib> | |
377 | <sys-lib>comdlg32</sys-lib> | |
378 | <sys-lib>winspool</sys-lib> | |
379 | <sys-lib>winmm</sys-lib> | |
380 | <sys-lib>shell32</sys-lib> | |
cb8bbc13 | 381 | <sys-lib>comctl32</sys-lib> |
cb8bbc13 VS |
382 | <sys-lib>ole32</sys-lib> |
383 | <sys-lib>oleaut32</sys-lib> | |
384 | <sys-lib>uuid</sys-lib> | |
385 | <sys-lib>rpcrt4</sys-lib> | |
386 | <sys-lib>advapi32</sys-lib> | |
387 | <sys-lib>wsock32</sys-lib> | |
15b44c69 | 388 | </if> |
57670219 | 389 | <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'"> |
3682ea7d VS |
390 | <sys-lib>oleacc</sys-lib> |
391 | </if> | |
f9c4805a VS |
392 | <if cond="FORMAT!='msevc4prj'"> |
393 | <sys-lib>odbc32</sys-lib> | |
394 | </if> | |
57670219 | 395 | </if> |
ddf98968 VS |
396 | </template> |
397 | ||
82ca3afe | 398 | |
c74dc163 | 399 | <!-- for GUI libs/samples: --> |
e83a52a2 | 400 | <template id="wx_append_nomono" template="wx_append_base_nomono"> |
c74dc163 VS |
401 | <ldlibs>$(EXTRALIBS_GUI)</ldlibs> |
402 | </template> | |
403 | ||
e83a52a2 VS |
404 | |
405 | <template id="wx_append_base" template_append="wx_append_base_nomono"> | |
406 | <!-- Always link against the wxWin library in monolithic build: --> | |
407 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
408 | </template> | |
409 | <template id="wx_append" template_append="wx_append_nomono"> | |
410 | <!-- Always link against the wxWin library in monolithic build: --> | |
411 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
412 | </template> | |
413 | ||
414 | ||
0469579d VS |
415 | <set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set> |
416 | ||
4843dc4c | 417 | <template id="wx_lib_b" template="wx,anylib"> |
ddf98968 | 418 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> |
ddf98968 | 419 | <libname>$(WXLIBNAME)</libname> |
cb8bbc13 | 420 | |
0469579d VS |
421 | <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'"> |
422 | <if cond="FORMAT!='autoconf'"> | |
423 | <sources>$(WXTOPDIR)src/msw/dummy.cpp</sources> | |
424 | <precomp-headers-gen> | |
425 | $(WXTOPDIR)src/msw/dummy.cpp | |
426 | </precomp-headers-gen> | |
427 | </if> | |
428 | <precomp-headers-header>wx/wxprec.h</precomp-headers-header> | |
429 | <precomp-headers>on</precomp-headers> | |
430 | <precomp-headers-file>wxprec_$(id)</precomp-headers-file> | |
3fe70739 VS |
431 | <precomp-headers-exclude> |
432 | src/common/unzip.c | |
433 | src/common/extended.c | |
434 | src/msw/gsocket.c | |
435 | src/msw/gsockmsw.c | |
436 | </precomp-headers-exclude> | |
cb8bbc13 | 437 | </if> |
82ca3afe | 438 | |
af594eca | 439 | <if cond="IS_MSVC_PRJ and BUILDING_LIB=='1'"> |
82ca3afe VS |
440 | <msvc-file-group>Common Sources:src/common/*</msvc-file-group> |
441 | <msvc-file-group>MSW Sources:src/msw/*</msvc-file-group> | |
442 | <msvc-file-group>Generic Sources:src/generic/*</msvc-file-group> | |
443 | <msvc-file-group>wxUniv Sources:src/univ/*</msvc-file-group> | |
444 | <msvc-file-group>wxHTML Sources:src/html/*</msvc-file-group> | |
445 | <msvc-file-group>Setup Headers:*/setup.h</msvc-file-group> | |
82ca3afe VS |
446 | <msvc-file-group>MSW Headers:*wx/msw/*.h</msvc-file-group> |
447 | <msvc-file-group>Generic Headers:*wx/generic/*.h</msvc-file-group> | |
448 | <msvc-file-group>wxUniv Headers:*wx/univ/*.h</msvc-file-group> | |
449 | <msvc-file-group>wxHTML Headers:*wx/html/*.h</msvc-file-group> | |
cbba971f | 450 | <msvc-file-group>Common Headers:*wx/*.h</msvc-file-group> |
82ca3afe | 451 | </if> |
ddf98968 | 452 | </template> |
cb8bbc13 | 453 | |
fab9850d | 454 | <template id="wx_dll_b" template="wx_lib_b"> |
ddf98968 VS |
455 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> |
456 | <dllname>$(WXDLLNAME)</dllname> | |
457 | <version>$(WX_VERSION)</version> | |
458 | <so_version>$(WXSOVERSION)</so_version> | |
459 | <mac_version>$(WXMACVERSION)</mac_version> | |
460 | </template> | |
c0608865 | 461 | |
5c802b3d | 462 | <template id="wx_3rdparty_dependencies"> |
3fe70739 VS |
463 | <depends>wxtiff</depends> |
464 | <depends>wxjpeg</depends> | |
465 | <depends>wxpng</depends> | |
390c0cfb | 466 | <depends>wxexpat</depends> |
c74dc163 | 467 | <depends>wxzlib</depends> |
3fe70739 | 468 | <depends cond="FORMAT=='autoconf'">wxodbc</depends> |
c74dc163 VS |
469 | <depends>wxregex</depends> |
470 | </template> | |
ee929bcf VS |
471 | |
472 | <template id="wx_3rdparty_includes"> | |
473 | <include>$(INC_TIFF)</include> | |
474 | <include>$(INC_JPEG)</include> | |
475 | <include>$(INC_PNG)</include> | |
476 | <include>$(INC_ZLIB)</include> | |
477 | <include>$(INC_ODBC)</include> | |
478 | <include>$(INC_REGEX)</include> | |
479 | <include>$(INC_EXPAT)</include> | |
480 | </template> | |
c0608865 | 481 | |
9698d244 VS |
482 | <template id="wx_lib" |
483 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/> | |
484 | <template id="wx_base_lib" | |
485 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"> | |
15d93f1e VS |
486 | <define>wxUSE_GUI=0</define> |
487 | </template> | |
488 | ||
ee929bcf VS |
489 | <template id="wx_dll" |
490 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 491 | template_append="msvc_setup_h,wx_append_nomono"/> |
ee929bcf VS |
492 | <template id="wx_base_dll" |
493 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 494 | template_append="msvc_setup_h,wx_append_base_nomono"> |
15d93f1e VS |
495 | <define>wxUSE_GUI=0</define> |
496 | </template> | |
ae4ae157 VS |
497 | |
498 | <!-- =============================================================== --> | |
499 | <!-- Templates for building wxWindows plugins: --> | |
500 | <!-- =============================================================== --> | |
501 | ||
ae4ae157 | 502 | <if cond="WX_STABLE_BRANCH=='1'"> |
c79241a2 | 503 | <set var="PLUGIN_VERSION0"> |
ae4ae157 | 504 | <if cond="PLATFORM_UNIX=='1'"> |
c79241a2 | 505 | $(WXVER_MAJOR).$(WXVER_MINOR) |
ae4ae157 VS |
506 | </if> |
507 | <if cond="PLATFORM_UNIX=='0'"> | |
508 | $(WXVER_MAJOR)$(WXVER_MINOR) | |
509 | </if> | |
510 | </set> | |
511 | </if> | |
512 | <if cond="WX_STABLE_BRANCH=='0'"> | |
c79241a2 | 513 | <set var="PLUGIN_VERSION0"> |
ae4ae157 | 514 | <if cond="PLATFORM_UNIX=='1'"> |
c79241a2 | 515 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) |
ae4ae157 VS |
516 | </if> |
517 | <if cond="PLATFORM_UNIX=='0'"> | |
518 | $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE) | |
519 | </if> | |
520 | </set> | |
521 | </if> | |
c79241a2 VS |
522 | <set var="PLUGVERDELIM"> |
523 | <if cond="PLATFORM_UNIX=='1'">-</if> | |
524 | <if cond="PLATFORM_UNIX=='0'"></if> | |
525 | </set> | |
526 | <set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set> | |
527 | ||
528 | <set var="PLUGINSUFFIX"> | |
529 | <if cond="UNICODE=='0' and BUILD=='release'"></if> | |
530 | <if cond="UNICODE=='0' and BUILD=='debug'">_d</if> | |
531 | <if cond="UNICODE=='1' and BUILD=='release'">_u</if> | |
532 | <if cond="UNICODE=='1' and BUILD=='debug'">_ud</if> | |
533 | </set> | |
534 | ||
535 | <set var="PLUGINS_INST_DIR" make_var="1"> | |
536 | $(LIBDIR)/wx/$(PLUGIN_VERSION0) | |
537 | </set> | |
ae4ae157 VS |
538 | |
539 | <define-rule name="wx-base-plugin" extends="module"> | |
540 | <template> | |
541 | <dllname> | |
c79241a2 | 542 | $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
543 | </dllname> |
544 | <define>WXUSINGDLL</define> | |
15d93f1e | 545 | <define>wxUSE_GUI=0</define> |
c79241a2 | 546 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
547 | </template> |
548 | </define-rule> | |
549 | ||
550 | <define-rule name="wx-gui-plugin" extends="module"> | |
551 | <template template="wx"> | |
552 | <dllname> | |
c79241a2 | 553 | $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
554 | </dllname> |
555 | <define>WXUSINGDLL</define> | |
c79241a2 | 556 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
557 | </template> |
558 | </define-rule> | |
5c802b3d | 559 | |
ddf98968 VS |
560 | <!-- =============================================================== --> |
561 | <!-- Support for wxWindows samples and contrib: --> | |
562 | <!-- =============================================================== --> | |
563 | ||
564 | <!-- Link against one wxWin library. Value must be literal! --> | |
485a205e | 565 | <define-tag name="wx-lib" rules="exe,dll,module"> |
ddf98968 | 566 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> |
22cef566 | 567 | <ldlibs>$(wxwin.extraLdflags(value))</ldlibs> |
af594eca | 568 | <if cond="IS_MSVC_PRJ and MONOLITHIC=='0'"> |
dce0742b | 569 | <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp> |
7bd54b68 | 570 | </if> |
ddf98968 VS |
571 | </define-tag> |
572 | ||
4bae0a94 VS |
573 | |
574 | <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain | |
575 | {top_srcdir} from configure, poor bakefile can't know that | |
576 | and won't output top_srcdir = @top_srcdir@ line): --> | |
577 | <set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set> | |
578 | ||
579 | ||
ddf98968 | 580 | </makefile> |