6 <requires version=
"0.1.3"/>
7 <!-- FIXME: remove this kludge when upgraded to 0.1.4: -->
8 <if cond=
"BAKEFILE_VERSION=='0.1.3'">
9 <define-tag name=
"pic" rules=
"exe,dll,lib,module"/>
12 <!-- bakefile modules we need: -->
13 <using module=
"datafiles"/>
15 <!-- load python module with wxwindows helpers: -->
16 <using module=
"wxwin"/>
18 <include file=
"config.bkl"/>
20 <include file=
"plugins_deps.bkl"/>
22 <!-- ================================================================== -->
23 <!-- wxWindows version numbers: -->
24 <!-- ================================================================== -->
26 <set var=
"WXVER_MAJOR">$(wxwin.getVersionMajor())
</set>
27 <set var=
"WXVER_MINOR">$(wxwin.getVersionMinor())
</set>
28 <set var=
"WXVER_RELEASE">$(wxwin.getVersionRelease())
</set>
29 <set var=
"WX_VERSION" make_var=
"1">
30 $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
33 <set var=
"WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) %
2 ==
0))
</set>
35 <set var=
"WXSOVERSION">
36 <if cond=
"WX_STABLE_BRANCH=='1'">0.0.0</if>
37 <if cond=
"WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE)
.0.0</if>
39 <set var=
"WXMACVERSION">$(WX_VERSION)
</set>
40 <set var=
"WXWIN32DLLVERSION">
41 <if cond=
"WX_STABLE_BRANCH=='1'">$(WXVER_MAJOR)$(WXVER_MINOR)
</if>
42 <if cond=
"WX_STABLE_BRANCH=='0'">$(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)
</if>
46 <!-- ================================================================== -->
47 <!-- Names of libraries and DLLs: -->
48 <!-- ================================================================== -->
51 <if cond=
"USE_GUI=='0'">base
</if>
52 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
55 <set var=
"WXBASEPORT">
56 <if cond=
"TOOLKIT=='MAC'">_carbon
</if>
59 <set var=
"COMPILERORGCC">
60 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
61 <if cond=
"not isdefined('COMPILER')">gcc
</if>
63 <set var=
"WXCOMPILER">
64 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
68 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
69 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
72 <set var=
"WXDEBUGFLAG">
73 <if cond=
"BUILD=='debug' and DEBUG_FLAG=='default'">d
</if>
74 <if cond=
"DEBUG_FLAG=='1'">d
</if>
76 <set var=
"WXUNICODEFLAG">
77 <!-- WinCE is Unicode-only platform: -->
78 <if cond=
"UNICODE=='1' and FORMAT!='msevc4prj'">u
</if>
80 <set var=
"WXNAMESUFFIX">
81 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
84 <set var=
"WXUNIVNAME">
85 <if cond=
"WXUNIV=='1'">univ
</if>
87 <set var=
"WXUNIV_DEFINE">
88 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
91 <if cond=
"FORMAT=='autoconf'">
92 <set var=
"WXNAMEPREFIX">wx_base$(WXBASEPORT)
</set>
93 <set var=
"WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)
</set>
94 <set var=
"WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)
</set>
96 <if cond=
"FORMAT!='autoconf'">
97 <set var=
"WXNAMEPREFIX">
98 wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR)
100 <set var=
"WXNAMEPREFIXGUI">
101 wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)
</set>
102 <set var=
"WXVERSIONTAG"></set>
104 <set var=
"WXDLLNAMEPREFIX">
105 <if cond=
"PLATFORM_WIN32=='1'">
106 wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
108 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)
</if>
110 <set var=
"WXDLLNAMEPREFIXGUI">
111 <if cond=
"PLATFORM_WIN32=='1'">
112 wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
114 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)
</if>
116 <set var=
"WXDLLVERSIONTAG">
117 <if cond=
"PLATFORM_WIN32=='1'"></if>
118 <if cond=
"PLATFORM_WIN32=='0'">$(WXVERSIONTAG)
</if>
122 <!-- =============================================================== -->
123 <!-- Names of component libraries: -->
124 <!-- =============================================================== -->
126 <set var=
"WXLIB_BASE">
127 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))
</if>
129 <set var=
"WXLIB_NET">
130 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))
</if>
132 <set var=
"WXLIB_CORE">
133 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
135 <set var=
"WXLIB_ADV">
136 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))
</if>
138 <set var=
"WXLIB_HTML">
139 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
141 <set var=
"WXLIB_XML">
142 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))
</if>
144 <set var=
"WXLIB_ODBC">
145 <if cond=
"MONOLITHIC=='0' and USE_ODBC=='1'">
146 $(mk.evalExpr(wxwin.mkLibName('odbc')))
149 <set var=
"WXLIB_DBGRID">
150 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))
</if>
153 <set var=
"WXLIB_MONO">
154 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
158 <!-- =============================================================== -->
159 <!-- Where to store built libraries and objects: -->
160 <!-- =============================================================== -->
162 <set var=
"DIR_SUFFIX_CPU">
163 <if cond=
"FORMAT=='msevc4prj'">_$(CPU)
</if>
166 <if cond=
"FORMAT!='autoconf'">
167 <set var=
"WXDLLFLAG">
168 <if cond=
"SHARED=='1'">dll
</if>
170 <set var=
"CFG_NAME_PART">
171 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
173 <set var=
"OBJS" make_var=
"1">
174 <if cond=
"FORMAT!='cbuilderx'">
175 $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
177 <!-- FIXME: waiting for removal after CBX has better ../ dirs
179 <if cond=
"FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)
</if>
182 <set var=
"BUILDDIR">$(OBJS)
</set>
185 <set var=
"LIBDIRNAME" make_var=
"1">
186 <if cond=
"FORMAT=='autoconf'">$(top_builddir)lib
</if>
187 <if cond=
"FORMAT!='autoconf' and SHARED=='0'">
188 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_lib$(CFG)
190 <if cond=
"FORMAT!='autoconf' and SHARED=='1'">
191 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_dll$(CFG)
195 <if cond=
"FORMAT!='autoconf'">
196 <set var=
"SETUPHDIR" make_var=
"1">
197 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
203 <!-- =============================================================== -->
204 <!-- Templates for libs: -->
205 <!-- =============================================================== -->
207 <set var=
"DEBUGINFO">
208 <if cond=
"BUILD=='debug' and DEBUG_INFO=='default'">on
</if>
209 <if cond=
"DEBUG_INFO=='1'">on
</if>
210 <if cond=
"BUILD=='release' and DEBUG_INFO=='default'">off
</if>
211 <if cond=
"DEBUG_INFO=='0'">off
</if>
213 <set var=
"DEBUGRUNTIME">
214 <if cond=
"DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)
</if>
215 <if cond=
"DEBUG_RUNTIME_LIBS=='0'">off
</if>
216 <if cond=
"DEBUG_RUNTIME_LIBS=='1'">on
</if>
218 <set var=
"OPTIMIZEFLAG">
219 <if cond=
"BUILD=='debug'">off
</if>
220 <if cond=
"BUILD=='release'">speed
</if>
222 <set var=
"EXCEPTIONSFLAG">
223 <if cond=
"USE_EXCEPTIONS=='1'">on
</if>
224 <if cond=
"USE_EXCEPTIONS=='0'">off
</if>
227 <set var=
"DEBUG_DEFINE">
228 <if cond=
"FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__
</if>
229 <if cond=
"FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__
</if>
231 <!-- does not cover all cases, but better than nothing -->
232 <set var=
"NO_VC_CRTDBG">
233 <if cond=
"FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__
</if>
234 <if cond=
"FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__
</if>
236 <set var=
"UNICODE_DEFINE">
237 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">_UNICODE
</if>
240 <set var=
"UNICOWS_LIB">
241 <if cond=
"MSLU=='1'">unicows
</if>
244 <template id=
"common_settings">
245 <debug-info>$(DEBUGINFO)
</debug-info>
246 <debug-runtime-libs>$(DEBUGRUNTIME)
</debug-runtime-libs>
247 <optimize>$(OPTIMIZEFLAG)
</optimize>
248 <threading>multi
</threading>
249 <runtime-libs>$(RUNTIME_LIBS)
</runtime-libs>
250 <cxx-rtti>$(EXCEPTIONSFLAG)
</cxx-rtti>
251 <cxx-exceptions>$(EXCEPTIONSFLAG)
</cxx-exceptions>
252 <if cond=
"FORMAT!='autoconf'">
253 <cppflags>$(EXTRACFLAGS)
</cppflags>
255 <define>$(NO_VC_CRTDBG)
</define>
258 <template id=
"anylib">
259 <dirname>$(LIBDIRNAME)
</dirname>
260 <install-to>$(LIBDIR)
</install-to>
263 <template id=
"3rdparty_lib" template=
"common_settings,anylib">
264 <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)
</libname>
266 we want to install 3rd party libs system-wide only with static
267 version of wxWindows; otherwise they are embedded in shared libs:
269 <install-if>SHARED=='
0'
</install-if>
270 <pic>$(substituteFromDict(SHARED, {'
0':'off', '
1':'on'}))
</pic>
274 <!-- deal with the need to copy setup.h here: -->
276 <set var=
"IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])
</set>
278 <define-tag name=
"msvc-headers" rules=
"dll,lib">
279 <if cond=
"IS_MSVC_PRJ">
281 $(addPrefixToList('include\', wxwin.headersOnly(value)))
282 </msvc-project-files>
286 <define-tag name=
"msvc-copy-setup-h" rules=
"dll,lib">
287 <if cond=
"FORMAT=='msevc4prj'">
288 <msvc-headers>wx/msw/wince/setup.h
</msvc-headers>
289 <set var=
"vc_setup_h">wince\setup.h
</set>
290 <set var=
"vc_setup_h_rule">wince_setup_h
</set>
292 <if cond=
"FORMAT!='msevc4prj'">
293 <msvc-headers>wx/msw/setup.h
</msvc-headers>
294 <set var=
"vc_setup_h">setup.h
</set>
295 <set var=
"vc_setup_h_rule">setup_h
</set>
297 <if cond=
"IS_MSVC_PRJ">
298 <set var=
"_custom_build_files" append=
"1">
299 include\wx\msw\$(vc_setup_h)
301 <set var=
"_custom_build_include_wx_msw_$(vc_setup_h_rule)">
302 Creating $(SETUPHDIR)\wx\setup.h
303 InputPath=..\include\wx\msw\$(vc_setup_h)
305 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
306 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
308 <!-- FIXME: temporary kludge! remove after upgrade to 0.1.4 -->
309 <if cond=
"FORMAT=='msvc6prj'">
310 <set var=
"__custom_build_files">
311 $(_custom_build_files)
313 <set var=
"__custom_build_include_wx_msw_setup_h">
314 $(_custom_build_include_wx_msw_setup_h)
320 <template id=
"msvc_setup_h">
324 <!-- =============================================================== -->
325 <!-- 3rd party libs: -->
326 <!-- =============================================================== -->
328 <!-- 3rd party libraries: -->
329 <include file=
"regex.bkl"/>
330 <include file=
"zlib.bkl"/>
331 <include file=
"png.bkl"/>
332 <include file=
"jpeg.bkl"/>
333 <include file=
"tiff.bkl"/>
334 <include file=
"odbc.bkl"/>
335 <include file=
"expat.bkl"/>
338 <!-- =============================================================== -->
339 <!-- Templates for wxWindows libs: -->
340 <!-- =============================================================== -->
342 <template id=
"wx" template=
"common_settings">
343 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
344 <define>__WX$(TOOLKIT)__
</define>
345 <define>$(WXUNIV_DEFINE)
</define>
346 <define>$(DEBUG_DEFINE)
</define>
347 <define>$(UNICODE_DEFINE)
</define>
348 <!-- this include is added by configure, we need to put other
349 includes before it: -->
350 <include cond=
"FORMAT!='autoconf'">$(TOP_SRCDIR)include
</include>
351 <lib-path>$(LIBDIRNAME)
</lib-path>
352 <include cond=
"FORMAT!='autoconf'">$(SETUPHDIR)
</include>
353 <warnings>max
</warnings>
356 <!-- for both GUI and wxBase libs/samples: -->
357 <template id=
"wx_append_base_nomono">
358 <!-- link against builtin 3rd party libs, if needed: -->
359 <sys-lib>$(LIB_TIFF)
</sys-lib>
360 <sys-lib>$(LIB_JPEG)
</sys-lib>
361 <sys-lib>$(LIB_PNG)
</sys-lib>
362 <sys-lib>$(LIB_ZLIB)
</sys-lib>
363 <sys-lib>$(LIB_ODBC)
</sys-lib>
364 <sys-lib>$(LIB_REGEX)
</sys-lib>
365 <sys-lib>$(LIB_EXPAT)
</sys-lib>
367 <ldlibs>$(EXTRALIBS)
</ldlibs>
369 <!-- system libraries on windows: -->
370 <if cond=
"FORMAT!='autoconf'">
371 <sys-lib>$(UNICOWS_LIB)
</sys-lib>
372 <if cond=
"FORMAT=='borland'">
373 <sys-lib>ole2w32
</sys-lib>
375 <if cond=
"FORMAT=='msevc4prj'">
376 <sys-lib>ole32
</sys-lib>
377 <sys-lib>oleaut32
</sys-lib>
378 <sys-lib>uuid
</sys-lib>
379 <sys-lib>commctrl
</sys-lib>
380 <sys-lib>commdlg
</sys-lib>
381 <sys-lib>ceshell
</sys-lib>
382 <sys-lib>aygshell
</sys-lib>
383 <sys-lib>winsock
</sys-lib>
384 <sys-lib>wininet
</sys-lib>
386 <if cond=
"FORMAT!='borland' and FORMAT!='msevc4prj'">
387 <sys-lib>kernel32
</sys-lib>
388 <sys-lib>user32
</sys-lib>
389 <sys-lib>gdi32
</sys-lib>
390 <sys-lib>comdlg32
</sys-lib>
391 <sys-lib>winspool
</sys-lib>
392 <sys-lib>winmm
</sys-lib>
393 <sys-lib>shell32
</sys-lib>
394 <sys-lib>comctl32
</sys-lib>
395 <sys-lib>ole32
</sys-lib>
396 <sys-lib>oleaut32
</sys-lib>
397 <sys-lib>uuid
</sys-lib>
398 <sys-lib>rpcrt4
</sys-lib>
399 <sys-lib>advapi32
</sys-lib>
400 <sys-lib>wsock32
</sys-lib>
402 <if cond=
"FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
403 <sys-lib>oleacc
</sys-lib>
405 <if cond=
"FORMAT!='msevc4prj'">
406 <sys-lib>odbc32
</sys-lib>
412 <!-- for GUI libs/samples: -->
413 <template id=
"wx_append_nomono" template=
"wx_append_base_nomono">
414 <ldlibs>$(EXTRALIBS_GUI)
</ldlibs>
418 <template id=
"wx_append_base" template_append=
"wx_append_base_nomono">
419 <!-- Always link against the wxWin library in monolithic build: -->
420 <sys-lib>$(WXLIB_MONO)
</sys-lib>
422 <template id=
"wx_append" template_append=
"wx_append_nomono">
423 <!-- Always link against the wxWin library in monolithic build: -->
424 <sys-lib>$(WXLIB_MONO)
</sys-lib>
428 <set var=
"WX_DISABLE_PRECOMP_HEADERS" overwrite=
"0">0</set>
430 <template id=
"wx_lib_b" template=
"wx,anylib">
431 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
432 <libname>$(WXLIBNAME)
</libname>
434 <if cond=
"WX_DISABLE_PRECOMP_HEADERS=='0'">
435 <if cond=
"FORMAT!='autoconf'">
436 <sources>$(WXTOPDIR)src/msw/dummy.cpp
</sources>
437 <precomp-headers-gen>
438 $(WXTOPDIR)src/msw/dummy.cpp
439 </precomp-headers-gen>
441 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
442 <precomp-headers>on
</precomp-headers>
443 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
444 <precomp-headers-exclude>
446 src/common/extended.c
449 </precomp-headers-exclude>
452 <if cond=
"IS_MSVC_PRJ and BUILDING_LIB=='1'">
453 <msvc-file-group>Common Sources:src/common/*
</msvc-file-group>
454 <msvc-file-group>MSW Sources:src/msw/*
</msvc-file-group>
455 <msvc-file-group>Generic Sources:src/generic/*
</msvc-file-group>
456 <msvc-file-group>wxUniv Sources:src/univ/*
</msvc-file-group>
457 <msvc-file-group>wxHTML Sources:src/html/*
</msvc-file-group>
458 <msvc-file-group>Setup Headers:*/setup.h
</msvc-file-group>
459 <msvc-file-group>MSW Headers:*wx/msw/*.h
</msvc-file-group>
460 <msvc-file-group>Generic Headers:*wx/generic/*.h
</msvc-file-group>
461 <msvc-file-group>wxUniv Headers:*wx/univ/*.h
</msvc-file-group>
462 <msvc-file-group>wxHTML Headers:*wx/html/*.h
</msvc-file-group>
463 <msvc-file-group>Common Headers:*wx/*.h
</msvc-file-group>
467 <template id=
"wx_dll_b" template=
"wx_lib_b">
468 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
469 <dllname>$(WXDLLNAME)
</dllname>
470 <version>$(WX_VERSION)
</version>
471 <so_version>$(WXSOVERSION)
</so_version>
472 <mac_version>$(WXMACVERSION)
</mac_version>
475 <template id=
"wx_3rdparty_dependencies">
476 <depends>wxtiff
</depends>
477 <depends>wxjpeg
</depends>
478 <depends>wxpng
</depends>
479 <depends>wxexpat
</depends>
480 <depends>wxzlib
</depends>
481 <depends cond=
"FORMAT=='autoconf'">wxodbc
</depends>
482 <depends>wxregex
</depends>
485 <template id=
"wx_3rdparty_includes">
486 <include>$(INC_TIFF)
</include>
487 <include>$(INC_JPEG)
</include>
488 <include>$(INC_PNG)
</include>
489 <include>$(INC_ZLIB)
</include>
490 <include>$(INC_ODBC)
</include>
491 <include>$(INC_REGEX)
</include>
492 <include>$(INC_EXPAT)
</include>
495 <template id=
"wx_lib"
496 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
497 <template id=
"wx_base_lib"
498 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
499 <define>wxUSE_GUI=
0</define>
502 <template id=
"wx_dll"
503 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
504 template_append=
"msvc_setup_h,wx_append_nomono"/>
505 <template id=
"wx_base_dll"
506 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
507 template_append=
"msvc_setup_h,wx_append_base_nomono">
508 <define>wxUSE_GUI=
0</define>
511 <!-- =============================================================== -->
512 <!-- Templates for building wxWindows plugins: -->
513 <!-- =============================================================== -->
515 <if cond=
"WX_STABLE_BRANCH=='1'">
516 <set var=
"PLUGIN_VERSION0">
517 <if cond=
"PLATFORM_UNIX=='1'">
518 $(WXVER_MAJOR).$(WXVER_MINOR)
520 <if cond=
"PLATFORM_UNIX=='0'">
521 $(WXVER_MAJOR)$(WXVER_MINOR)
525 <if cond=
"WX_STABLE_BRANCH=='0'">
526 <set var=
"PLUGIN_VERSION0">
527 <if cond=
"PLATFORM_UNIX=='1'">
528 $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
530 <if cond=
"PLATFORM_UNIX=='0'">
531 $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)
535 <set var=
"PLUGVERDELIM">
536 <if cond=
"PLATFORM_UNIX=='1'">-
</if>
537 <if cond=
"PLATFORM_UNIX=='0'"></if>
539 <set var=
"PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)
</set>
541 <set var=
"PLUGINSUFFIX">
542 <if cond=
"UNICODE=='0' and BUILD=='release'"></if>
543 <if cond=
"UNICODE=='0' and BUILD=='debug'">_d
</if>
544 <if cond=
"UNICODE=='1' and BUILD=='release'">_u
</if>
545 <if cond=
"UNICODE=='1' and BUILD=='debug'">_ud
</if>
548 <set var=
"PLUGINS_INST_DIR" make_var=
"1">
549 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
552 <define-rule name=
"wx-base-plugin" extends=
"module">
555 $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
557 <define>WXUSINGDLL
</define>
558 <define>wxUSE_GUI=
0</define>
559 <install-to>$(PLUGINS_INST_DIR)
</install-to>
563 <define-rule name=
"wx-gui-plugin" extends=
"module">
564 <template template=
"wx">
566 $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
568 <define>WXUSINGDLL
</define>
569 <install-to>$(PLUGINS_INST_DIR)
</install-to>
573 <!-- =============================================================== -->
574 <!-- Support for wxWindows samples and contrib: -->
575 <!-- =============================================================== -->
577 <!-- Link against one wxWin library. Value must be literal! -->
578 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
579 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>
580 <ldlibs>$(wxwin.extraLdflags(value))
</ldlibs>
581 <if cond=
"IS_MSVC_PRJ and MONOLITHIC=='0'">
582 <depends-on-dsp>$(wxwin.makeDspDependency(value))
</depends-on-dsp>
587 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
588 {top_srcdir} from configure, poor bakefile can't know that
589 and won't output top_srcdir = @top_srcdir@ line): -->
590 <set var=
"VARS_DONT_ELIMINATE" append=
"1">top_srcdir
</set>