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