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_VERSION" make_var=
"1">
26 $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
29 <set var=
"WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) %
2 ==
0))
</set>
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>
35 <set var=
"WXMACVERSION">$(WX_VERSION)
</set>
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>
42 <!-- ================================================================== -->
43 <!-- Names of libraries and DLLs: -->
44 <!-- ================================================================== -->
47 <if cond=
"USE_GUI=='0'">base
</if>
48 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
51 <set var=
"WXBASEPORT">
52 <if cond=
"TOOLKIT=='MAC'">_carbon
</if>
55 <set var=
"COMPILERORGCC">
56 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
57 <if cond=
"not isdefined('COMPILER')">gcc
</if>
59 <set var=
"WXCOMPILER">
60 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
64 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
65 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
68 <set var=
"WXDEBUGFLAG">
69 <if cond=
"BUILD=='debug' and DEBUG_FLAG=='default'">d
</if>
70 <if cond=
"DEBUG_FLAG=='1'">d
</if>
72 <set var=
"WXUNICODEFLAG">
73 <!-- WinCE is Unicode-only platform: -->
74 <if cond=
"UNICODE=='1' and FORMAT!='msevc4prj'">u
</if>
76 <set var=
"WXNAMESUFFIX">
77 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
80 <set var=
"WXUNIVNAME">
81 <if cond=
"WXUNIV=='1'">univ
</if>
83 <set var=
"WXUNIV_DEFINE">
84 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
87 <if cond=
"FORMAT=='autoconf'">
88 <set var=
"WXNAMEPREFIX">wx_base$(WXBASEPORT)
</set>
89 <set var=
"WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)
</set>
90 <set var=
"WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)
</set>
92 <if cond=
"FORMAT!='autoconf'">
93 <set var=
"WXNAMEPREFIX">
94 wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR)
96 <set var=
"WXNAMEPREFIXGUI">
97 wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)
</set>
98 <set var=
"WXVERSIONTAG"></set>
100 <set var=
"WXDLLNAMEPREFIX">
101 <if cond=
"PLATFORM_WIN32=='1'">
102 wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
104 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)
</if>
106 <set var=
"WXDLLNAMEPREFIXGUI">
107 <if cond=
"PLATFORM_WIN32=='1'">
108 wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
110 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)
</if>
112 <set var=
"WXDLLVERSIONTAG">
113 <if cond=
"PLATFORM_WIN32=='1'"></if>
114 <if cond=
"PLATFORM_WIN32=='0'">$(WXVERSIONTAG)
</if>
118 <!-- =============================================================== -->
119 <!-- Names of component libraries: -->
120 <!-- =============================================================== -->
122 <set var=
"WXLIB_BASE">
123 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))
</if>
125 <set var=
"WXLIB_NET">
126 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))
</if>
128 <set var=
"WXLIB_CORE">
129 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
131 <set var=
"WXLIB_ADV">
132 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))
</if>
134 <set var=
"WXLIB_HTML">
135 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
137 <set var=
"WXLIB_XML">
138 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))
</if>
140 <set var=
"WXLIB_ODBC">
141 <if cond=
"MONOLITHIC=='0' and USE_ODBC=='1'">
142 $(mk.evalExpr(wxwin.mkLibName('odbc')))
145 <set var=
"WXLIB_DBGRID">
146 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))
</if>
149 <set var=
"WXLIB_MONO">
150 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
154 <!-- =============================================================== -->
155 <!-- Where to store built libraries and objects: -->
156 <!-- =============================================================== -->
158 <set var=
"DIR_SUFFIX_CPU">
159 <if cond=
"FORMAT=='msevc4prj'">_$(CPU)
</if>
162 <if cond=
"FORMAT!='autoconf'">
163 <set var=
"WXDLLFLAG">
164 <if cond=
"SHARED=='1'">dll
</if>
166 <set var=
"CFG_NAME_PART">
167 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
169 <set var=
"OBJS" make_var=
"1">
170 <if cond=
"FORMAT!='cbuilderx'">
171 $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
173 <!-- FIXME: waiting for removal after CBX has better ../ dirs
175 <if cond=
"FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)
</if>
178 <set var=
"BUILDDIR">$(OBJS)
</set>
181 <set var=
"LIBDIRNAME" make_var=
"1">
182 <if cond=
"FORMAT=='autoconf'">$(top_builddir)lib
</if>
183 <if cond=
"FORMAT!='autoconf' and SHARED=='0'">
184 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_lib$(CFG)
186 <if cond=
"FORMAT!='autoconf' and SHARED=='1'">
187 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_dll$(CFG)
191 <if cond=
"FORMAT!='autoconf'">
192 <set var=
"SETUPHDIR" make_var=
"1">
193 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
199 <!-- =============================================================== -->
200 <!-- Templates for libs: -->
201 <!-- =============================================================== -->
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>
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>
214 <set var=
"OPTIMIZEFLAG">
215 <if cond=
"BUILD=='debug'">off
</if>
216 <if cond=
"BUILD=='release'">speed
</if>
218 <set var=
"EXCEPTIONSFLAG">
219 <if cond=
"USE_EXCEPTIONS=='1'">on
</if>
220 <if cond=
"USE_EXCEPTIONS=='0'">off
</if>
223 <set var=
"DEBUG_DEFINE">
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>
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>
232 <set var=
"UNICODE_DEFINE">
233 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">_UNICODE
</if>
236 <set var=
"UNICOWS_LIB">
237 <if cond=
"MSLU=='1'">unicows
</if>
240 <template id=
"common_settings">
241 <debug-info>$(DEBUGINFO)
</debug-info>
242 <debug-runtime-libs>$(DEBUGRUNTIME)
</debug-runtime-libs>
243 <optimize>$(OPTIMIZEFLAG)
</optimize>
244 <threading>multi
</threading>
245 <runtime-libs>$(RUNTIME_LIBS)
</runtime-libs>
246 <cxx-rtti>$(EXCEPTIONSFLAG)
</cxx-rtti>
247 <cxx-exceptions>$(EXCEPTIONSFLAG)
</cxx-exceptions>
248 <if cond=
"FORMAT!='autoconf'">
249 <cppflags>$(EXTRACFLAGS)
</cppflags>
251 <define>$(NO_VC_CRTDBG)
</define>
254 <template id=
"anylib">
255 <dirname>$(LIBDIRNAME)
</dirname>
256 <install-to>$(LIBDIR)
</install-to>
259 <template id=
"3rdparty_lib" template=
"common_settings,anylib">
260 <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)
</libname>
262 we want to install 3rd party libs system-wide only with static
263 version of wxWidgets; otherwise they are embedded in shared libs:
265 <install-if>SHARED=='
0'
</install-if>
266 <pic>$(substituteFromDict(SHARED, {'
0':'off', '
1':'on'}))
</pic>
270 <!-- deal with the need to copy setup.h here: -->
272 <set var=
"IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])
</set>
274 <define-tag name=
"msvc-headers" rules=
"dll,lib">
275 <if cond=
"IS_MSVC_PRJ">
277 $(addPrefixToList('include\', wxwin.headersOnly(value)))
278 </msvc-project-files>
282 <define-tag name=
"msvc-copy-setup-h" rules=
"dll,lib">
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>
288 <if cond=
"FORMAT!='msevc4prj'">
289 <msvc-headers>wx/msw/setup.h
</msvc-headers>
290 <set var=
"vc_setup_h">setup.h
</set>
291 <set var=
"vc_setup_h_rule">setup_h
</set>
293 <if cond=
"IS_MSVC_PRJ">
294 <set var=
"_custom_build_files" append=
"1">
295 include\wx\msw\$(vc_setup_h)
297 <set var=
"_custom_build_include_wx_msw_$(vc_setup_h_rule)">
298 Creating $(SETUPHDIR)\wx\setup.h
299 InputPath=..\include\wx\msw\$(vc_setup_h)
301 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
302 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
307 <template id=
"msvc_setup_h">
311 <!-- =============================================================== -->
312 <!-- 3rd party libs: -->
313 <!-- =============================================================== -->
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"/>
322 <include file=
"expat.bkl"/>
325 <!-- =============================================================== -->
326 <!-- Templates for wxWidgets libs: -->
327 <!-- =============================================================== -->
329 <template id=
"wx" template=
"common_settings">
330 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
331 <define>__WX$(TOOLKIT)__
</define>
332 <define>$(WXUNIV_DEFINE)
</define>
333 <define>$(DEBUG_DEFINE)
</define>
334 <define>$(UNICODE_DEFINE)
</define>
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>
338 <lib-path>$(LIBDIRNAME)
</lib-path>
339 <include cond=
"FORMAT!='autoconf'">$(SETUPHDIR)
</include>
340 <warnings>max
</warnings>
343 <!-- for both GUI and wxBase libs/samples: -->
344 <template id=
"wx_append_base_nomono">
345 <!-- link against builtin 3rd party libs, if needed: -->
346 <sys-lib>$(LIB_TIFF)
</sys-lib>
347 <sys-lib>$(LIB_JPEG)
</sys-lib>
348 <sys-lib>$(LIB_PNG)
</sys-lib>
349 <sys-lib>$(LIB_ZLIB)
</sys-lib>
350 <sys-lib>$(LIB_ODBC)
</sys-lib>
351 <sys-lib>$(LIB_REGEX)
</sys-lib>
352 <sys-lib>$(LIB_EXPAT)
</sys-lib>
354 <ldlibs>$(EXTRALIBS)
</ldlibs>
356 <!-- system libraries on windows: -->
357 <if cond=
"FORMAT!='autoconf'">
358 <sys-lib>$(UNICOWS_LIB)
</sys-lib>
359 <if cond=
"FORMAT=='borland'">
360 <sys-lib>ole2w32
</sys-lib>
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>winsock
</sys-lib>
368 <sys-lib>wininet
</sys-lib>
370 <if cond=
"FORMAT!='borland' and FORMAT!='msevc4prj'">
371 <sys-lib>kernel32
</sys-lib>
372 <sys-lib>user32
</sys-lib>
373 <sys-lib>gdi32
</sys-lib>
374 <sys-lib>comdlg32
</sys-lib>
375 <sys-lib>winspool
</sys-lib>
376 <sys-lib>winmm
</sys-lib>
377 <sys-lib>shell32
</sys-lib>
378 <sys-lib>comctl32
</sys-lib>
379 <sys-lib>ole32
</sys-lib>
380 <sys-lib>oleaut32
</sys-lib>
381 <sys-lib>uuid
</sys-lib>
382 <sys-lib>rpcrt4
</sys-lib>
383 <sys-lib>advapi32
</sys-lib>
384 <sys-lib>wsock32
</sys-lib>
386 <if cond=
"FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
387 <sys-lib>oleacc
</sys-lib>
389 <if cond=
"FORMAT!='msevc4prj'">
390 <sys-lib>odbc32
</sys-lib>
396 <!-- for GUI libs/samples: -->
397 <template id=
"wx_append_nomono" template=
"wx_append_base_nomono">
398 <ldlibs>$(EXTRALIBS_GUI)
</ldlibs>
402 <template id=
"wx_append_base" template_append=
"wx_append_base_nomono">
403 <!-- Always link against the wxWin library in monolithic build: -->
404 <sys-lib>$(WXLIB_MONO)
</sys-lib>
406 <template id=
"wx_append" template_append=
"wx_append_nomono">
407 <!-- Always link against the wxWin library in monolithic build: -->
408 <sys-lib>$(WXLIB_MONO)
</sys-lib>
412 <set var=
"WX_DISABLE_PRECOMP_HEADERS" overwrite=
"0">0</set>
414 <template id=
"wx_lib_b" template=
"wx,anylib">
415 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
416 <libname>$(WXLIBNAME)
</libname>
418 <if cond=
"WX_DISABLE_PRECOMP_HEADERS=='0'">
419 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MSW'">
420 <sources>$(WXTOPDIR)src/msw/dummy.cpp
</sources>
421 <precomp-headers-gen>
422 $(WXTOPDIR)src/msw/dummy.cpp
423 </precomp-headers-gen>
425 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
426 <precomp-headers>on
</precomp-headers>
427 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
428 <precomp-headers-exclude>
430 src/common/extended.c
433 </precomp-headers-exclude>
436 <if cond=
"IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
437 <msvc-file-group>Common Sources:src/common/*
</msvc-file-group>
438 <msvc-file-group>MSW Sources:src/msw/*
</msvc-file-group>
439 <msvc-file-group>Generic Sources:src/generic/*
</msvc-file-group>
440 <msvc-file-group>wxUniv Sources:src/univ/*
</msvc-file-group>
441 <msvc-file-group>wxHTML Sources:src/html/*
</msvc-file-group>
442 <msvc-file-group>Setup Headers:*/setup.h
</msvc-file-group>
443 <msvc-file-group>MSW Headers:*wx/msw/*.h
</msvc-file-group>
444 <msvc-file-group>Generic Headers:*wx/generic/*.h
</msvc-file-group>
445 <msvc-file-group>wxUniv Headers:*wx/univ/*.h
</msvc-file-group>
446 <msvc-file-group>wxHTML Headers:*wx/html/*.h
</msvc-file-group>
447 <msvc-file-group>Common Headers:*wx/*.h
</msvc-file-group>
451 <template id=
"wx_dll_b" template=
"wx_lib_b">
452 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
453 <dllname>$(WXDLLNAME)
</dllname>
454 <version>$(WX_VERSION)
</version>
455 <so_version>$(WXSOVERSION)
</so_version>
456 <mac_version>$(WXMACVERSION)
</mac_version>
459 <template id=
"wx_3rdparty_dependencies">
460 <depends>wxtiff
</depends>
461 <depends>wxjpeg
</depends>
462 <depends>wxpng
</depends>
463 <depends>wxexpat
</depends>
464 <depends>wxzlib
</depends>
465 <depends cond=
"FORMAT=='autoconf'">wxodbc
</depends>
466 <depends>wxregex
</depends>
469 <template id=
"wx_3rdparty_includes">
470 <include>$(INC_TIFF)
</include>
471 <include>$(INC_JPEG)
</include>
472 <include>$(INC_PNG)
</include>
473 <include>$(INC_ZLIB)
</include>
474 <include>$(INC_ODBC)
</include>
475 <include>$(INC_REGEX)
</include>
476 <include>$(INC_EXPAT)
</include>
479 <template id=
"wx_lib"
480 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
481 <template id=
"wx_base_lib"
482 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
483 <define>wxUSE_GUI=
0</define>
486 <template id=
"wx_dll"
487 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
488 template_append=
"msvc_setup_h,wx_append_nomono"/>
489 <template id=
"wx_base_dll"
490 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
491 template_append=
"msvc_setup_h,wx_append_base_nomono">
492 <define>wxUSE_GUI=
0</define>
495 <!-- =============================================================== -->
496 <!-- Templates for building wxWidgets plugins: -->
497 <!-- =============================================================== -->
499 <if cond=
"WX_STABLE_BRANCH=='1'">
500 <set var=
"PLUGIN_VERSION0">
501 <if cond=
"PLATFORM_UNIX=='1'">
502 $(WXVER_MAJOR).$(WXVER_MINOR)
504 <if cond=
"PLATFORM_UNIX=='0'">
505 $(WXVER_MAJOR)$(WXVER_MINOR)
509 <if cond=
"WX_STABLE_BRANCH=='0'">
510 <set var=
"PLUGIN_VERSION0">
511 <if cond=
"PLATFORM_UNIX=='1'">
512 $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
514 <if cond=
"PLATFORM_UNIX=='0'">
515 $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)
519 <set var=
"PLUGVERDELIM">
520 <if cond=
"PLATFORM_UNIX=='1'">-
</if>
521 <if cond=
"PLATFORM_UNIX=='0'"></if>
523 <set var=
"PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)
</set>
525 <set var=
"PLUGINSUFFIX">
526 <if cond=
"UNICODE=='0' and BUILD=='release'"></if>
527 <if cond=
"UNICODE=='0' and BUILD=='debug'">d
</if>
528 <if cond=
"UNICODE=='1' and BUILD=='release'">u
</if>
529 <if cond=
"UNICODE=='1' and BUILD=='debug'">ud
</if>
532 <set var=
"PLUGINS_INST_DIR" make_var=
"1">
533 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
536 <define-rule name=
"wx-base-plugin" extends=
"module">
539 $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
541 <define>WXUSINGDLL
</define>
542 <define>wxUSE_GUI=
0</define>
543 <install-to>$(PLUGINS_INST_DIR)
</install-to>
547 <define-rule name=
"wx-gui-plugin" extends=
"module">
548 <template template=
"wx">
550 $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
552 <define>WXUSINGDLL
</define>
553 <install-to>$(PLUGINS_INST_DIR)
</install-to>
557 <!-- =============================================================== -->
558 <!-- Support for wxWidgets samples and contrib: -->
559 <!-- =============================================================== -->
561 <!-- Link against one wxWin library. Value must be literal! -->
562 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
563 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>
564 <ldlibs>$(wxwin.extraLdflags(value))
</ldlibs>
565 <if cond=
"IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
566 <depends-on-dsp>$(wxwin.makeDspDependency(value))
</depends-on-dsp>
571 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
572 {top_srcdir} from configure, poor bakefile can't know that
573 and won't output top_srcdir = @top_srcdir@ line): -->
574 <set var=
"VARS_DONT_ELIMINATE" append=
"1">top_srcdir
</set>