6 <requires version=
"0.1.6"/>
8 <!-- bakefile modules we need: -->
9 <using module=
"datafiles"/>
11 <!-- load python module with wxwindows helpers: -->
12 <using module=
"wxwin"/>
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"/>
21 <if cond=
"FORMAT!='autoconf'">
22 <set var=
"PLATFORM_MACOS">0</set>
25 <include file=
"config.bkl"/>
27 <include file=
"plugins_deps.bkl"/>
29 <!-- ================================================================== -->
30 <!-- wxWidgets version numbers: -->
31 <!-- ================================================================== -->
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)
39 <set var=
"WX_RELEASE_NODOT" make_var=
"1">
40 $(WXVER_MAJOR)$(WXVER_MINOR)
42 <set var=
"WX_VERSION" make_var=
"1">
43 $(WX_RELEASE).$(WXVER_RELEASE)
45 <set var=
"WX_VERSION_NODOT" make_var=
"1">
46 $(WX_RELEASE_NODOT)$(WXVER_RELEASE)
49 <set var=
"WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) %
2 ==
0))
</set>
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>
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>
62 <!-- ================================================================== -->
63 <!-- Names of libraries and DLLs: -->
64 <!-- ================================================================== -->
67 <if cond=
"USE_GUI=='0'">base
</if>
68 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
71 <set var=
"WXBASEPORT">
72 <if cond=
"TOOLKIT=='MAC'">_carbon
</if>
75 <set var=
"COMPILERORGCC">
76 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
77 <if cond=
"not isdefined('COMPILER')">gcc
</if>
79 <set var=
"WXCOMPILER">
80 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
84 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
85 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
88 <set var=
"WXDEBUGFLAG">
89 <if cond=
"BUILD=='debug' and DEBUG_FLAG=='default'">d
</if>
90 <if cond=
"DEBUG_FLAG=='1'">d
</if>
92 <set var=
"WXUNICODEFLAG">
93 <!-- WinCE is Unicode-only platform: -->
94 <if cond=
"UNICODE=='1' and FORMAT!='msevc4prj'">u
</if>
96 <set var=
"WXNAMESUFFIX">
97 $(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
100 <set var=
"WXUNIVNAME">
101 <if cond=
"WXUNIV=='1'">univ
</if>
103 <set var=
"WXUNIV_DEFINE">
104 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
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>
112 <if cond=
"FORMAT!='autoconf'">
113 <set var=
"WXNAMEPREFIX">
114 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
116 <set var=
"WXNAMEPREFIXGUI">
117 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)
</set>
118 <set var=
"WXVERSIONTAG"></set>
120 <set var=
"WXDLLNAMEPREFIX">
121 <if cond=
"PLATFORM_WIN32=='1'">
122 wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
124 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)
</if>
126 <set var=
"WXDLLNAMEPREFIXGUI">
127 <if cond=
"PLATFORM_WIN32=='1'">
128 wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
130 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)
</if>
132 <set var=
"WXDLLVERSIONTAG">
133 <if cond=
"PLATFORM_WIN32=='1'"></if>
134 <if cond=
"PLATFORM_WIN32=='0'">$(WXVERSIONTAG)
</if>
138 <!-- =============================================================== -->
139 <!-- Names of component libraries: -->
140 <!-- =============================================================== -->
142 <set var=
"WXLIB_BASE">
143 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))
</if>
145 <set var=
"WXLIB_NET">
146 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))
</if>
148 <set var=
"WXLIB_CORE">
149 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
151 <set var=
"WXLIB_ADV">
152 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))
</if>
154 <set var=
"WXLIB_MEDIA">
155 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('media')))
</if>
157 <set var=
"WXLIB_HTML">
158 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
160 <set var=
"WXLIB_XML">
161 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))
</if>
163 <set var=
"WXLIB_XRC">
164 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))
</if>
166 <set var=
"WXLIB_ODBC">
167 <if cond=
"MONOLITHIC=='0' and USE_ODBC=='1'">
168 $(mk.evalExpr(wxwin.mkLibName('odbc')))
171 <set var=
"WXLIB_DBGRID">
172 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))
</if>
175 <set var=
"WXLIB_MONO">
176 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
180 <!-- =============================================================== -->
181 <!-- Where to store built libraries and objects: -->
182 <!-- =============================================================== -->
184 <set var=
"DIR_SUFFIX_CPU">
185 <if cond=
"FORMAT=='msevc4prj'">_$(CPU)
</if>
188 <if cond=
"FORMAT!='autoconf'">
189 <set var=
"WXDLLFLAG">
190 <if cond=
"SHARED=='1'">dll
</if>
192 <set var=
"CFG_NAME_PART">
193 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
195 <set var=
"OBJS" make_var=
"1">
196 <if cond=
"FORMAT!='cbuilderx'">
197 $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
199 <!-- FIXME: waiting for removal after CBX has better ../ dirs
201 <if cond=
"FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)
</if>
204 <set var=
"BUILDDIR">$(OBJS)
</set>
207 <set var=
"LIBTYPE_SUFFIX" make_var=
"1">
208 <if cond=
"FORMAT!='autoconf' and SHARED=='0'">lib
</if>
209 <if cond=
"FORMAT!='autoconf' and SHARED=='1'">dll
</if>
212 <set var=
"LIBDIRNAME" make_var=
"1">
213 <if cond=
"FORMAT=='autoconf'">$(top_builddir)lib
</if>
214 <if cond=
"FORMAT!='autoconf'">
215 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
219 <if cond=
"FORMAT!='autoconf'">
220 <set var=
"SETUPHDIR" make_var=
"1">
221 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
227 <!-- =============================================================== -->
228 <!-- Templates for libs: -->
229 <!-- =============================================================== -->
231 <set var=
"DEBUGINFO">
232 <if cond=
"BUILD=='debug' and DEBUG_INFO=='default'">on
</if>
233 <if cond=
"DEBUG_INFO=='1'">on
</if>
234 <if cond=
"BUILD=='release' and DEBUG_INFO=='default'">off
</if>
235 <if cond=
"DEBUG_INFO=='0'">off
</if>
237 <set var=
"DEBUGRUNTIME">
238 <if cond=
"DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)
</if>
239 <if cond=
"DEBUG_RUNTIME_LIBS=='0'">off
</if>
240 <if cond=
"DEBUG_RUNTIME_LIBS=='1'">on
</if>
242 <set var=
"OPTIMIZEFLAG">
243 <if cond=
"BUILD=='debug'">off
</if>
244 <if cond=
"BUILD=='release'">speed
</if>
246 <set var=
"EXCEPTIONSFLAG">
247 <if cond=
"USE_EXCEPTIONS=='1'">on
</if>
248 <if cond=
"USE_EXCEPTIONS=='0'">off
</if>
251 <set var=
"DEBUG_DEFINE">
252 <if cond=
"FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__
</if>
253 <if cond=
"FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__
</if>
255 <!-- does not cover all cases, but better than nothing -->
256 <set var=
"NO_VC_CRTDBG">
257 <if cond=
"FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__
</if>
258 <if cond=
"FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__
</if>
260 <set var=
"UNICODE_DEFINE">
261 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">_UNICODE
</if>
264 <!-- fill for the specific case of the format/compiler -->
265 <set var=
"WIN32_WINNT">
266 <if cond=
"FORMAT=='dmars' or FORMAT=='dmars_smake'">_WIN32_WINNT=
0x0400</if>
269 <set var=
"UNICOWS_LIB">
270 <if cond=
"MSLU=='1'">unicows
</if>
273 <template id=
"common_settings">
274 <debug-info>$(DEBUGINFO)
</debug-info>
275 <debug-runtime-libs>$(DEBUGRUNTIME)
</debug-runtime-libs>
276 <optimize>$(OPTIMIZEFLAG)
</optimize>
277 <threading>multi
</threading>
278 <runtime-libs>$(RUNTIME_LIBS)
</runtime-libs>
279 <cxx-rtti>$(EXCEPTIONSFLAG)
</cxx-rtti>
280 <cxx-exceptions>$(EXCEPTIONSFLAG)
</cxx-exceptions>
281 <if cond=
"FORMAT!='autoconf'">
282 <cppflags>$(EXTRACFLAGS)
</cppflags>
284 <define>$(NO_VC_CRTDBG)
</define>
285 <define>$(WIN32_WINNT)
</define>
288 <template id=
"anylib">
289 <dirname>$(LIBDIRNAME)
</dirname>
290 <install-to>$(LIBDIR)
</install-to>
293 <template id=
"3rdparty_lib" template=
"common_settings,anylib">
294 <if cond=
"FORMAT=='autoconf'">
295 <libname>$(id)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
</libname>
297 <if cond=
"FORMAT!='autoconf'">
298 <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)
</libname>
301 we want to install 3rd party libs system-wide only with static
302 version of wxWidgets; otherwise they are embedded in shared libs:
304 <install-if>SHARED=='
0'
</install-if>
305 <pic>$(substituteFromDict(SHARED, {'
0':'off', '
1':'on'}))
</pic>
309 <!-- deal with the need to copy setup.h here: -->
311 <set var=
"IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])
</set>
313 <define-tag name=
"msvc-headers" rules=
"dll,lib">
314 <if cond=
"IS_MSVC_PRJ">
316 $(addPrefixToList('include\', wxwin.headersOnly(value)))
317 </msvc-project-files>
321 <define-tag name=
"msvc-copy-setup-h" rules=
"dll,lib">
322 <if cond=
"FORMAT=='msevc4prj'">
323 <msvc-headers>wx/msw/wince/setup.h
</msvc-headers>
324 <set var=
"vc_setup_h">wince\setup.h
</set>
325 <set var=
"vc_setup_h_rule">wince_setup_h
</set>
327 <if cond=
"FORMAT!='msevc4prj'">
328 <msvc-headers>wx/msw/setup.h
</msvc-headers>
329 <set var=
"vc_setup_h">setup.h
</set>
330 <set var=
"vc_setup_h_rule">setup_h
</set>
332 <if cond=
"IS_MSVC_PRJ">
333 <set var=
"_custom_build_files" append=
"1">
334 include\wx\msw\$(vc_setup_h)
336 <set var=
"_custom_build_include_wx_msw_$(vc_setup_h_rule)">
337 Creating $(SETUPHDIR)\wx\setup.h
338 InputPath=..\include\wx\msw\$(vc_setup_h)
340 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
341 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
346 <template id=
"msvc_setup_h">
350 <!-- =============================================================== -->
351 <!-- 3rd party libs: -->
352 <!-- =============================================================== -->
354 <!-- 3rd party libraries: -->
355 <include file=
"regex.bkl"/>
356 <include file=
"zlib.bkl"/>
357 <include file=
"png.bkl"/>
358 <include file=
"jpeg.bkl"/>
359 <include file=
"tiff.bkl"/>
360 <include file=
"odbc.bkl"/>
361 <include file=
"expat.bkl"/>
364 <!-- =============================================================== -->
365 <!-- Templates for wxWidgets libs: -->
366 <!-- =============================================================== -->
368 <!-- NB: in monolithic build, even wxBase-only must be linked against
369 GUI extralibs, otherwise there would be unresolved references.
370 The variables below are defined so that all libs are used
371 in monolithic build, but not in multilib one. -->
372 <set var=
"EXTRALIBS_FOR_BASE">
373 <if cond=
"MONOLITHIC=='1'">$(EXTRALIBS) $(EXTRALIBS_GUI)
</if>
374 <if cond=
"MONOLITHIC=='0'">$(EXTRALIBS)
</if>
376 <set var=
"EXTRALIBS_FOR_GUI">
377 <if cond=
"MONOLITHIC=='1'"></if>
378 <if cond=
"MONOLITHIC=='0'">$(EXTRALIBS_GUI)
</if>
381 <template id=
"wx" template=
"common_settings">
382 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
383 <define>__WX$(TOOLKIT)__
</define>
384 <define>$(WXUNIV_DEFINE)
</define>
385 <define>$(DEBUG_DEFINE)
</define>
386 <define>$(UNICODE_DEFINE)
</define>
387 <!-- this include is added by configure, we need to put other
388 includes before it: -->
389 <include cond=
"FORMAT!='autoconf'">$(TOP_SRCDIR)include
</include>
390 <lib-path>$(LIBDIRNAME)
</lib-path>
391 <include cond=
"FORMAT!='autoconf'">$(SETUPHDIR)
</include>
392 <warnings>max
</warnings>
394 -wcd=
549 <!-- 'sizeof' operand contains compiler generated information -->
395 -wcd=
656 <!-- define this function inside its class definition (may improve code quality) -->
396 -wcd=
657 <!-- define this function inside its class definition (could have improved code quality) -->
397 -wcd=
667 <!-- 'va_start' macro will not work without an argument before '...' -->
400 -Wno-ctor-dtor-privacy
<!-- only defines a private destructor and has no friends -->
404 <!-- for both GUI and wxBase libs/samples: -->
405 <template id=
"wx_append_base_nomono">
406 <!-- link against builtin 3rd party libs, if needed: -->
407 <sys-lib>$(LIB_TIFF)
</sys-lib>
408 <sys-lib>$(LIB_JPEG)
</sys-lib>
409 <sys-lib>$(LIB_PNG)
</sys-lib>
410 <sys-lib>$(LIB_ZLIB)
</sys-lib>
411 <sys-lib>$(LIB_ODBC)
</sys-lib>
412 <sys-lib>$(LIB_REGEX)
</sys-lib>
413 <sys-lib>$(LIB_EXPAT)
</sys-lib>
415 <ldlibs>$(EXTRALIBS_FOR_BASE)
</ldlibs>
417 <!-- system libraries on windows: -->
418 <if cond=
"FORMAT!='autoconf'">
419 <sys-lib>$(UNICOWS_LIB)
</sys-lib>
420 <if cond=
"FORMAT=='borland'">
421 <sys-lib>ole2w32
</sys-lib>
423 <if cond=
"FORMAT=='msevc4prj'">
424 <sys-lib>ole32
</sys-lib>
425 <sys-lib>oleaut32
</sys-lib>
426 <sys-lib>uuid
</sys-lib>
427 <sys-lib>commctrl
</sys-lib>
428 <sys-lib>winsock
</sys-lib>
429 <sys-lib>wininet
</sys-lib>
431 <if cond=
"FORMAT!='borland' and FORMAT!='msevc4prj'">
432 <sys-lib>kernel32
</sys-lib>
433 <sys-lib>user32
</sys-lib>
434 <sys-lib>gdi32
</sys-lib>
435 <sys-lib>comdlg32
</sys-lib>
436 <sys-lib>winspool
</sys-lib>
437 <sys-lib>winmm
</sys-lib>
438 <sys-lib>shell32
</sys-lib>
439 <sys-lib>comctl32
</sys-lib>
440 <sys-lib>ole32
</sys-lib>
441 <sys-lib>oleaut32
</sys-lib>
442 <sys-lib>uuid
</sys-lib>
443 <sys-lib>rpcrt4
</sys-lib>
444 <sys-lib>advapi32
</sys-lib>
445 <sys-lib>wsock32
</sys-lib>
447 <if cond=
"FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
448 <sys-lib>oleacc
</sys-lib>
450 <if cond=
"FORMAT!='msevc4prj'">
451 <sys-lib>odbc32
</sys-lib>
457 <!-- for GUI libs/samples: -->
458 <template id=
"wx_append_nomono" template=
"wx_append_base_nomono">
459 <ldlibs>$(EXTRALIBS_FOR_GUI)
</ldlibs>
463 <template id=
"wx_append_base" template_append=
"wx_append_base_nomono">
464 <!-- Always link against the wxWin library in monolithic build: -->
465 <sys-lib>$(WXLIB_MONO)
</sys-lib>
467 <template id=
"wx_append" template_append=
"wx_append_nomono">
468 <!-- Always link against the wxWin library in monolithic build: -->
469 <sys-lib>$(WXLIB_MONO)
</sys-lib>
473 <set var=
"WX_DISABLE_PRECOMP_HEADERS" overwrite=
"0">0</set>
475 <template id=
"wx_lib_b" template=
"wx,anylib">
476 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
477 <libname>$(WXLIBNAME)
</libname>
479 <if cond=
"WX_DISABLE_PRECOMP_HEADERS=='0'">
480 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MSW'">
481 <sources>$(WXTOPDIR)src/msw/dummy.cpp
</sources>
482 <precomp-headers-gen>
483 $(WXTOPDIR)src/msw/dummy.cpp
484 </precomp-headers-gen>
486 <precomp-headers-location>$(WXTOPDIR)include
</precomp-headers-location>
487 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
488 <precomp-headers>on
</precomp-headers>
489 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
490 <precomp-headers-exclude>
491 src/common/extended.c
494 </precomp-headers-exclude>
497 <if cond=
"IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
498 <msvc-file-group>Common Sources:src/common/*
</msvc-file-group>
499 <msvc-file-group>MSW Sources:src/msw/*
</msvc-file-group>
500 <msvc-file-group>Generic Sources:src/generic/*
</msvc-file-group>
501 <msvc-file-group>wxUniv Sources:src/univ/*
</msvc-file-group>
502 <msvc-file-group>wxHTML Sources:src/html/*
</msvc-file-group>
503 <msvc-file-group>Setup Headers:*/setup.h
</msvc-file-group>
504 <msvc-file-group>MSW Headers:*wx/msw/*.h
</msvc-file-group>
505 <msvc-file-group>Generic Headers:*wx/generic/*.h
</msvc-file-group>
506 <msvc-file-group>wxUniv Headers:*wx/univ/*.h
</msvc-file-group>
507 <msvc-file-group>wxHTML Headers:*wx/html/*.h
</msvc-file-group>
508 <msvc-file-group>Common Headers:*wx/*.h
</msvc-file-group>
512 <template id=
"wx_dll_b" template=
"wx_lib_b">
513 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
514 <dllname>$(WXDLLNAME)
</dllname>
515 <version>$(WX_VERSION)
</version>
516 <so_version>$(WXSOVERSION)
</so_version>
517 <mac_version>$(WXMACVERSION)
</mac_version>
520 <template id=
"wx_3rdparty_dependencies_gui" cond=
"USE_GUI=='1'">
521 <depends>wxtiff
</depends>
522 <depends>wxjpeg
</depends>
523 <depends>wxpng
</depends>
526 <template id=
"wx_3rdparty_dependencies"
527 template=
"wx_3rdparty_dependencies_gui">
528 <depends>wxexpat
</depends>
529 <depends>wxzlib
</depends>
530 <depends cond=
"FORMAT=='autoconf'">wxodbc
</depends>
531 <depends>wxregex
</depends>
534 <template id=
"wx_3rdparty_includes_gui" cond=
"USE_GUI=='1'">
535 <include>$(INC_TIFF)
</include>
536 <include>$(INC_JPEG)
</include>
537 <include>$(INC_PNG)
</include>
540 <template id=
"wx_3rdparty_includes"
541 template=
"wx_3rdparty_includes_gui">
542 <include>$(INC_ZLIB)
</include>
543 <include>$(INC_ODBC)
</include>
544 <include>$(INC_REGEX)
</include>
545 <include>$(INC_EXPAT)
</include>
548 <template id=
"wx_lib"
549 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
550 <template id=
"wx_base_lib"
551 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
552 <define>wxUSE_GUI=
0</define>
555 <template id=
"wx_dll"
556 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
557 template_append=
"msvc_setup_h,wx_append_nomono"/>
558 <template id=
"wx_base_dll"
559 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
560 template_append=
"msvc_setup_h,wx_append_base_nomono">
561 <define>wxUSE_GUI=
0</define>
564 <!-- =============================================================== -->
565 <!-- Templates for building wxWidgets plugins: -->
566 <!-- =============================================================== -->
568 <if cond=
"WX_STABLE_BRANCH=='1'">
569 <set var=
"PLUGIN_VERSION0">
570 <if cond=
"PLATFORM_UNIX=='1'">$(WX_RELEASE)
</if>
571 <if cond=
"PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)
</if>
574 <if cond=
"WX_STABLE_BRANCH=='0'">
575 <set var=
"PLUGIN_VERSION0">
576 <if cond=
"PLATFORM_UNIX=='1'">$(WX_VERSION)
</if>
577 <if cond=
"PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)
</if>
580 <set var=
"PLUGVERDELIM">
581 <if cond=
"PLATFORM_UNIX=='1'">-
</if>
582 <if cond=
"PLATFORM_UNIX=='0'"></if>
584 <set var=
"PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)
</set>
586 <set var=
"PLUGINSUFFIX">
587 <if cond=
"UNICODE=='0' and BUILD=='release'"></if>
588 <if cond=
"UNICODE=='0' and BUILD=='debug'">d
</if>
589 <if cond=
"UNICODE=='1' and BUILD=='release'">u
</if>
590 <if cond=
"UNICODE=='1' and BUILD=='debug'">ud
</if>
593 <set var=
"PLUGINS_INST_DIR" make_var=
"1">
594 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
597 <define-rule name=
"wx-base-plugin" extends=
"module">
600 $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
602 <define>WXUSINGDLL
</define>
603 <define>wxUSE_GUI=
0</define>
604 <install-to>$(PLUGINS_INST_DIR)
</install-to>
608 <define-rule name=
"wx-gui-plugin" extends=
"module">
609 <template template=
"wx">
611 $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
613 <define>WXUSINGDLL
</define>
614 <install-to>$(PLUGINS_INST_DIR)
</install-to>
618 <!-- =============================================================== -->
619 <!-- Support for wxWidgets samples and contrib: -->
620 <!-- =============================================================== -->
622 <!-- Link against one wxWin library. Value must be literal! -->
623 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
624 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>
625 <ldlibs>$(wxwin.extraLdflags(value))
</ldlibs>
626 <if cond=
"IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
627 <depends-on-dsp>$(wxwin.makeDspDependency(value))
</depends-on-dsp>
632 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
633 {top_srcdir} from configure, poor bakefile can't know that
634 and won't output top_srcdir = @top_srcdir@ line): -->
635 <set var=
"VARS_DONT_ELIMINATE" append=
"1">top_srcdir
</set>