6 <requires version=
"0.1.4"/>
8 <!-- bakefile modules we need: -->
9 <using module=
"datafiles"/>
11 <!-- load python module with wxwindows helpers: -->
12 <using module=
"wxwin"/>
14 <include file=
"config.bkl"/>
16 <include file=
"plugins_deps.bkl"/>
18 <!-- ================================================================== -->
19 <!-- wxWidgets version numbers: -->
20 <!-- ================================================================== -->
22 <set var=
"WXVER_MAJOR">$(wxwin.getVersionMajor())
</set>
23 <set var=
"WXVER_MINOR">$(wxwin.getVersionMinor())
</set>
24 <set var=
"WXVER_RELEASE">$(wxwin.getVersionRelease())
</set>
25 <set var=
"WX_RELEASE" make_var=
"1">
26 $(WXVER_MAJOR).$(WXVER_MINOR)
28 <set var=
"WX_RELEASE_NODOT" make_var=
"1">
29 $(WXVER_MAJOR)$(WXVER_MINOR)
31 <set var=
"WX_VERSION" make_var=
"1">
32 $(WX_RELEASE).$(WXVER_RELEASE)
34 <set var=
"WX_VERSION_NODOT" make_var=
"1">
35 $(WX_RELEASE_NODOT)$(WXVER_RELEASE)
38 <set var=
"WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) %
2 ==
0))
</set>
40 <set var=
"WXSOVERSION">
41 <if cond=
"WX_STABLE_BRANCH=='1'">0.0.0</if>
42 <if cond=
"WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE)
.0.0</if>
44 <set var=
"WXMACVERSION">$(WX_VERSION)
</set>
45 <set var=
"WXWIN32DLLVERSION">
46 <if cond=
"WX_STABLE_BRANCH=='1'">$(WX_RELEASE_NODOT)
</if>
47 <if cond=
"WX_STABLE_BRANCH=='0'">$(WX_VERSION_NODOT)
</if>
51 <!-- ================================================================== -->
52 <!-- Names of libraries and DLLs: -->
53 <!-- ================================================================== -->
56 <if cond=
"USE_GUI=='0'">base
</if>
57 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
60 <set var=
"WXBASEPORT">
61 <if cond=
"TOOLKIT=='MAC'">_carbon
</if>
64 <set var=
"COMPILERORGCC">
65 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
66 <if cond=
"not isdefined('COMPILER')">gcc
</if>
68 <set var=
"WXCOMPILER">
69 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
73 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
74 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
77 <set var=
"WXDEBUGFLAG">
78 <if cond=
"BUILD=='debug' and DEBUG_FLAG=='default'">d
</if>
79 <if cond=
"DEBUG_FLAG=='1'">d
</if>
81 <set var=
"WXUNICODEFLAG">
82 <!-- WinCE is Unicode-only platform: -->
83 <if cond=
"UNICODE=='1' and FORMAT!='msevc4prj'">u
</if>
85 <set var=
"WXNAMESUFFIX">
86 $(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
89 <set var=
"WXUNIVNAME">
90 <if cond=
"WXUNIV=='1'">univ
</if>
92 <set var=
"WXUNIV_DEFINE">
93 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
96 <if cond=
"FORMAT=='autoconf'">
97 <set var=
"WXNAMEPREFIX">wx_base$(WXBASEPORT)
</set>
98 <set var=
"WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)
</set>
99 <set var=
"WXVERSIONTAG">-$(WX_RELEASE)
</set>
101 <if cond=
"FORMAT!='autoconf'">
102 <set var=
"WXNAMEPREFIX">
103 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
105 <set var=
"WXNAMEPREFIXGUI">
106 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)
</set>
107 <set var=
"WXVERSIONTAG"></set>
109 <set var=
"WXDLLNAMEPREFIX">
110 <if cond=
"PLATFORM_WIN32=='1'">
111 wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
113 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)
</if>
115 <set var=
"WXDLLNAMEPREFIXGUI">
116 <if cond=
"PLATFORM_WIN32=='1'">
117 wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
119 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)
</if>
121 <set var=
"WXDLLVERSIONTAG">
122 <if cond=
"PLATFORM_WIN32=='1'"></if>
123 <if cond=
"PLATFORM_WIN32=='0'">$(WXVERSIONTAG)
</if>
127 <!-- =============================================================== -->
128 <!-- Names of component libraries: -->
129 <!-- =============================================================== -->
131 <set var=
"WXLIB_BASE">
132 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))
</if>
134 <set var=
"WXLIB_NET">
135 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))
</if>
137 <set var=
"WXLIB_CORE">
138 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
140 <set var=
"WXLIB_ADV">
141 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))
</if>
143 <set var=
"WXLIB_HTML">
144 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
146 <set var=
"WXLIB_XML">
147 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))
</if>
149 <set var=
"WXLIB_XRC">
150 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))
</if>
152 <set var=
"WXLIB_ODBC">
153 <if cond=
"MONOLITHIC=='0' and USE_ODBC=='1'">
154 $(mk.evalExpr(wxwin.mkLibName('odbc')))
157 <set var=
"WXLIB_DBGRID">
158 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))
</if>
161 <set var=
"WXLIB_MONO">
162 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
166 <!-- =============================================================== -->
167 <!-- Where to store built libraries and objects: -->
168 <!-- =============================================================== -->
170 <set var=
"DIR_SUFFIX_CPU">
171 <if cond=
"FORMAT=='msevc4prj'">_$(CPU)
</if>
174 <if cond=
"FORMAT!='autoconf'">
175 <set var=
"WXDLLFLAG">
176 <if cond=
"SHARED=='1'">dll
</if>
178 <set var=
"CFG_NAME_PART">
179 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
181 <set var=
"OBJS" make_var=
"1">
182 <if cond=
"FORMAT!='cbuilderx'">
183 $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
185 <!-- FIXME: waiting for removal after CBX has better ../ dirs
187 <if cond=
"FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)
</if>
190 <set var=
"BUILDDIR">$(OBJS)
</set>
193 <set var=
"LIBDIRNAME" make_var=
"1">
194 <if cond=
"FORMAT=='autoconf'">$(top_builddir)lib
</if>
195 <if cond=
"FORMAT!='autoconf' and SHARED=='0'">
196 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_lib$(CFG)
198 <if cond=
"FORMAT!='autoconf' and SHARED=='1'">
199 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_dll$(CFG)
203 <if cond=
"FORMAT!='autoconf'">
204 <set var=
"SETUPHDIR" make_var=
"1">
205 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
211 <!-- =============================================================== -->
212 <!-- Templates for libs: -->
213 <!-- =============================================================== -->
215 <set var=
"DEBUGINFO">
216 <if cond=
"BUILD=='debug' and DEBUG_INFO=='default'">on
</if>
217 <if cond=
"DEBUG_INFO=='1'">on
</if>
218 <if cond=
"BUILD=='release' and DEBUG_INFO=='default'">off
</if>
219 <if cond=
"DEBUG_INFO=='0'">off
</if>
221 <set var=
"DEBUGRUNTIME">
222 <if cond=
"DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)
</if>
223 <if cond=
"DEBUG_RUNTIME_LIBS=='0'">off
</if>
224 <if cond=
"DEBUG_RUNTIME_LIBS=='1'">on
</if>
226 <set var=
"OPTIMIZEFLAG">
227 <if cond=
"BUILD=='debug'">off
</if>
228 <if cond=
"BUILD=='release'">speed
</if>
230 <set var=
"EXCEPTIONSFLAG">
231 <if cond=
"USE_EXCEPTIONS=='1'">on
</if>
232 <if cond=
"USE_EXCEPTIONS=='0'">off
</if>
235 <set var=
"DEBUG_DEFINE">
236 <if cond=
"FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__
</if>
237 <if cond=
"FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__
</if>
239 <!-- does not cover all cases, but better than nothing -->
240 <set var=
"NO_VC_CRTDBG">
241 <if cond=
"FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__
</if>
242 <if cond=
"FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__
</if>
244 <set var=
"UNICODE_DEFINE">
245 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">_UNICODE
</if>
248 <set var=
"UNICOWS_LIB">
249 <if cond=
"MSLU=='1'">unicows
</if>
252 <template id=
"common_settings">
253 <debug-info>$(DEBUGINFO)
</debug-info>
254 <debug-runtime-libs>$(DEBUGRUNTIME)
</debug-runtime-libs>
255 <optimize>$(OPTIMIZEFLAG)
</optimize>
256 <threading>multi
</threading>
257 <runtime-libs>$(RUNTIME_LIBS)
</runtime-libs>
258 <cxx-rtti>$(EXCEPTIONSFLAG)
</cxx-rtti>
259 <cxx-exceptions>$(EXCEPTIONSFLAG)
</cxx-exceptions>
260 <if cond=
"FORMAT!='autoconf'">
261 <cppflags>$(EXTRACFLAGS)
</cppflags>
263 <define>$(NO_VC_CRTDBG)
</define>
266 <template id=
"anylib">
267 <dirname>$(LIBDIRNAME)
</dirname>
268 <install-to>$(LIBDIR)
</install-to>
271 <template id=
"3rdparty_lib" template=
"common_settings,anylib">
272 <if cond=
"FORMAT=='autoconf'">
273 <libname>$(id)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
</libname>
275 <if cond=
"FORMAT!='autoconf'">
276 <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)
</libname>
279 we want to install 3rd party libs system-wide only with static
280 version of wxWidgets; otherwise they are embedded in shared libs:
282 <install-if>SHARED=='
0'
</install-if>
283 <pic>$(substituteFromDict(SHARED, {'
0':'off', '
1':'on'}))
</pic>
287 <!-- deal with the need to copy setup.h here: -->
289 <set var=
"IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])
</set>
291 <define-tag name=
"msvc-headers" rules=
"dll,lib">
292 <if cond=
"IS_MSVC_PRJ">
294 $(addPrefixToList('include\', wxwin.headersOnly(value)))
295 </msvc-project-files>
299 <define-tag name=
"msvc-copy-setup-h" rules=
"dll,lib">
300 <if cond=
"FORMAT=='msevc4prj'">
301 <msvc-headers>wx/msw/wince/setup.h
</msvc-headers>
302 <set var=
"vc_setup_h">wince\setup.h
</set>
303 <set var=
"vc_setup_h_rule">wince_setup_h
</set>
305 <if cond=
"FORMAT!='msevc4prj'">
306 <msvc-headers>wx/msw/setup.h
</msvc-headers>
307 <set var=
"vc_setup_h">setup.h
</set>
308 <set var=
"vc_setup_h_rule">setup_h
</set>
310 <if cond=
"IS_MSVC_PRJ">
311 <set var=
"_custom_build_files" append=
"1">
312 include\wx\msw\$(vc_setup_h)
314 <set var=
"_custom_build_include_wx_msw_$(vc_setup_h_rule)">
315 Creating $(SETUPHDIR)\wx\setup.h
316 InputPath=..\include\wx\msw\$(vc_setup_h)
318 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
319 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
324 <template id=
"msvc_setup_h">
328 <!-- =============================================================== -->
329 <!-- 3rd party libs: -->
330 <!-- =============================================================== -->
332 <!-- 3rd party libraries: -->
333 <include file=
"regex.bkl"/>
334 <include file=
"zlib.bkl"/>
335 <include file=
"png.bkl"/>
336 <include file=
"jpeg.bkl"/>
337 <include file=
"tiff.bkl"/>
338 <include file=
"odbc.bkl"/>
339 <include file=
"expat.bkl"/>
342 <!-- =============================================================== -->
343 <!-- Templates for wxWidgets libs: -->
344 <!-- =============================================================== -->
346 <template id=
"wx" template=
"common_settings">
347 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
348 <define>__WX$(TOOLKIT)__
</define>
349 <define>$(WXUNIV_DEFINE)
</define>
350 <define>$(DEBUG_DEFINE)
</define>
351 <define>$(UNICODE_DEFINE)
</define>
352 <!-- this include is added by configure, we need to put other
353 includes before it: -->
354 <include cond=
"FORMAT!='autoconf'">$(TOP_SRCDIR)include
</include>
355 <lib-path>$(LIBDIRNAME)
</lib-path>
356 <include cond=
"FORMAT!='autoconf'">$(SETUPHDIR)
</include>
357 <warnings>max
</warnings>
358 <cppflags-watcom>-wcd=
549</cppflags-watcom>
361 <!-- for both GUI and wxBase libs/samples: -->
362 <template id=
"wx_append_base_nomono">
363 <!-- link against builtin 3rd party libs, if needed: -->
364 <sys-lib>$(LIB_TIFF)
</sys-lib>
365 <sys-lib>$(LIB_JPEG)
</sys-lib>
366 <sys-lib>$(LIB_PNG)
</sys-lib>
367 <sys-lib>$(LIB_ZLIB)
</sys-lib>
368 <sys-lib>$(LIB_ODBC)
</sys-lib>
369 <sys-lib>$(LIB_REGEX)
</sys-lib>
370 <sys-lib>$(LIB_EXPAT)
</sys-lib>
372 <ldlibs>$(EXTRALIBS)
</ldlibs>
374 <!-- system libraries on windows: -->
375 <if cond=
"FORMAT!='autoconf'">
376 <sys-lib>$(UNICOWS_LIB)
</sys-lib>
377 <if cond=
"FORMAT=='borland'">
378 <sys-lib>ole2w32
</sys-lib>
380 <if cond=
"FORMAT=='msevc4prj'">
381 <sys-lib>ole32
</sys-lib>
382 <sys-lib>oleaut32
</sys-lib>
383 <sys-lib>uuid
</sys-lib>
384 <sys-lib>commctrl
</sys-lib>
385 <sys-lib>winsock
</sys-lib>
386 <sys-lib>wininet
</sys-lib>
388 <if cond=
"FORMAT!='borland' and FORMAT!='msevc4prj'">
389 <sys-lib>kernel32
</sys-lib>
390 <sys-lib>user32
</sys-lib>
391 <sys-lib>gdi32
</sys-lib>
392 <sys-lib>comdlg32
</sys-lib>
393 <sys-lib>winspool
</sys-lib>
394 <sys-lib>winmm
</sys-lib>
395 <sys-lib>shell32
</sys-lib>
396 <sys-lib>comctl32
</sys-lib>
397 <sys-lib>ole32
</sys-lib>
398 <sys-lib>oleaut32
</sys-lib>
399 <sys-lib>uuid
</sys-lib>
400 <sys-lib>rpcrt4
</sys-lib>
401 <sys-lib>advapi32
</sys-lib>
402 <sys-lib>wsock32
</sys-lib>
404 <if cond=
"FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
405 <sys-lib>oleacc
</sys-lib>
407 <if cond=
"FORMAT!='msevc4prj'">
408 <sys-lib>odbc32
</sys-lib>
414 <!-- for GUI libs/samples: -->
415 <template id=
"wx_append_nomono" template=
"wx_append_base_nomono">
416 <ldlibs>$(EXTRALIBS_GUI)
</ldlibs>
420 <template id=
"wx_append_base" template_append=
"wx_append_base_nomono">
421 <!-- Always link against the wxWin library in monolithic build: -->
422 <sys-lib>$(WXLIB_MONO)
</sys-lib>
424 <template id=
"wx_append" template_append=
"wx_append_nomono">
425 <!-- Always link against the wxWin library in monolithic build: -->
426 <sys-lib>$(WXLIB_MONO)
</sys-lib>
430 <set var=
"WX_DISABLE_PRECOMP_HEADERS" overwrite=
"0">0</set>
432 <template id=
"wx_lib_b" template=
"wx,anylib">
433 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
434 <libname>$(WXLIBNAME)
</libname>
436 <if cond=
"WX_DISABLE_PRECOMP_HEADERS=='0'">
437 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MSW'">
438 <sources>$(WXTOPDIR)src/msw/dummy.cpp
</sources>
439 <precomp-headers-gen>
440 $(WXTOPDIR)src/msw/dummy.cpp
441 </precomp-headers-gen>
443 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
444 <precomp-headers>on
</precomp-headers>
445 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
446 <precomp-headers-exclude>
448 src/common/extended.c
451 </precomp-headers-exclude>
454 <if cond=
"IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
455 <msvc-file-group>Common Sources:src/common/*
</msvc-file-group>
456 <msvc-file-group>MSW Sources:src/msw/*
</msvc-file-group>
457 <msvc-file-group>Generic Sources:src/generic/*
</msvc-file-group>
458 <msvc-file-group>wxUniv Sources:src/univ/*
</msvc-file-group>
459 <msvc-file-group>wxHTML Sources:src/html/*
</msvc-file-group>
460 <msvc-file-group>Setup Headers:*/setup.h
</msvc-file-group>
461 <msvc-file-group>MSW Headers:*wx/msw/*.h
</msvc-file-group>
462 <msvc-file-group>Generic Headers:*wx/generic/*.h
</msvc-file-group>
463 <msvc-file-group>wxUniv Headers:*wx/univ/*.h
</msvc-file-group>
464 <msvc-file-group>wxHTML Headers:*wx/html/*.h
</msvc-file-group>
465 <msvc-file-group>Common Headers:*wx/*.h
</msvc-file-group>
469 <template id=
"wx_dll_b" template=
"wx_lib_b">
470 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
471 <dllname>$(WXDLLNAME)
</dllname>
472 <version>$(WX_VERSION)
</version>
473 <so_version>$(WXSOVERSION)
</so_version>
474 <mac_version>$(WXMACVERSION)
</mac_version>
477 <template id=
"wx_3rdparty_dependencies">
478 <depends>wxtiff
</depends>
479 <depends>wxjpeg
</depends>
480 <depends>wxpng
</depends>
481 <depends>wxexpat
</depends>
482 <depends>wxzlib
</depends>
483 <depends cond=
"FORMAT=='autoconf'">wxodbc
</depends>
484 <depends>wxregex
</depends>
487 <template id=
"wx_3rdparty_includes">
488 <include>$(INC_TIFF)
</include>
489 <include>$(INC_JPEG)
</include>
490 <include>$(INC_PNG)
</include>
491 <include>$(INC_ZLIB)
</include>
492 <include>$(INC_ODBC)
</include>
493 <include>$(INC_REGEX)
</include>
494 <include>$(INC_EXPAT)
</include>
497 <template id=
"wx_lib"
498 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
499 <template id=
"wx_base_lib"
500 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
501 <define>wxUSE_GUI=
0</define>
504 <template id=
"wx_dll"
505 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
506 template_append=
"msvc_setup_h,wx_append_nomono"/>
507 <template id=
"wx_base_dll"
508 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
509 template_append=
"msvc_setup_h,wx_append_base_nomono">
510 <define>wxUSE_GUI=
0</define>
513 <!-- =============================================================== -->
514 <!-- Templates for building wxWidgets plugins: -->
515 <!-- =============================================================== -->
517 <if cond=
"WX_STABLE_BRANCH=='1'">
518 <set var=
"PLUGIN_VERSION0">
519 <if cond=
"PLATFORM_UNIX=='1'">$(WX_RELEASE)
</if>
520 <if cond=
"PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)
</if>
523 <if cond=
"WX_STABLE_BRANCH=='0'">
524 <set var=
"PLUGIN_VERSION0">
525 <if cond=
"PLATFORM_UNIX=='1'">$(WX_VERSION)
</if>
526 <if cond=
"PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)
</if>
529 <set var=
"PLUGVERDELIM">
530 <if cond=
"PLATFORM_UNIX=='1'">-
</if>
531 <if cond=
"PLATFORM_UNIX=='0'"></if>
533 <set var=
"PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)
</set>
535 <set var=
"PLUGINSUFFIX">
536 <if cond=
"UNICODE=='0' and BUILD=='release'"></if>
537 <if cond=
"UNICODE=='0' and BUILD=='debug'">d
</if>
538 <if cond=
"UNICODE=='1' and BUILD=='release'">u
</if>
539 <if cond=
"UNICODE=='1' and BUILD=='debug'">ud
</if>
542 <set var=
"PLUGINS_INST_DIR" make_var=
"1">
543 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
546 <define-rule name=
"wx-base-plugin" extends=
"module">
549 $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
551 <define>WXUSINGDLL
</define>
552 <define>wxUSE_GUI=
0</define>
553 <install-to>$(PLUGINS_INST_DIR)
</install-to>
557 <define-rule name=
"wx-gui-plugin" extends=
"module">
558 <template template=
"wx">
560 $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
562 <define>WXUSINGDLL
</define>
563 <install-to>$(PLUGINS_INST_DIR)
</install-to>
567 <!-- =============================================================== -->
568 <!-- Support for wxWidgets samples and contrib: -->
569 <!-- =============================================================== -->
571 <!-- Link against one wxWin library. Value must be literal! -->
572 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
573 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>
574 <ldlibs>$(wxwin.extraLdflags(value))
</ldlibs>
575 <if cond=
"IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
576 <depends-on-dsp>$(wxwin.makeDspDependency(value))
</depends-on-dsp>
581 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
582 {top_srcdir} from configure, poor bakefile can't know that
583 and won't output top_srcdir = @top_srcdir@ line): -->
584 <set var=
"VARS_DONT_ELIMINATE" append=
"1">top_srcdir
</set>