6 <requires version=
"0.2.3"/>
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 <!-- FIXME: PalmOS is another candidate to bakefiles -->
26 <set var=
"PLATFORM_PALMOS">0</set>
29 <include file=
"config.bkl"/>
31 <include file=
"plugins_deps.bkl"/>
34 <!-- wxWidgets version numbers logic: -->
35 <include file=
"version.bkl"/>
38 <!-- ================================================================== -->
39 <!-- Names of libraries and DLLs: -->
40 <!-- ================================================================== -->
43 <if cond=
"USE_GUI=='0'">base
</if>
44 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
47 <set var=
"WXBASEPORT">
48 <if cond=
"TOOLKIT=='MAC'">_carbon
</if>
51 <set var=
"COMPILERORGCC">
52 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
53 <if cond=
"not isdefined('COMPILER')">gcc
</if>
55 <set var=
"WXCOMPILER">
56 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
60 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
61 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
64 <!-- debug suffix used for Windows libraries which use debug CRT -->
65 <set var=
"WXDEBUGFLAG">
66 <if cond=
"BUILD=='debug' and DEBUG_RUNTIME_LIBS=='default'">d
</if>
67 <if cond=
"DEBUG_RUNTIME_LIBS=='1'">d
</if>
69 <set var=
"WXUNICODEFLAG">
70 <!-- WinCE is Unicode-only platform: -->
71 <if cond=
"UNICODE=='1' and FORMAT!='msevc4prj'">u
</if>
73 <set var=
"WX_U_D_SUFFIX">
74 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
76 <set var=
"WXNAMESUFFIX">
77 $(WX_U_D_SUFFIX)$(WX_LIB_FLAVOUR)
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">-$(WX_RELEASE)
</set>
92 <if cond=
"FORMAT!='autoconf'">
93 <set var=
"WXNAMEPREFIX">
94 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)
96 <set var=
"WXNAMEPREFIXGUI">
97 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)
</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>
129 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('qa')))
</if>
131 <set var=
"WXLIB_CORE">
132 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
134 <set var=
"WXLIB_ADV">
135 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))
</if>
137 <set var=
"WXLIB_MEDIA">
138 <if cond=
"MONOLITHIC=='0' and USE_MEDIA=='1'">$(mk.evalExpr(wxwin.mkLibName('media')))
</if>
140 <set var=
"WXLIB_HTML">
141 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
143 <set var=
"WXLIB_XML">
144 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))
</if>
146 <set var=
"WXLIB_XRC">
147 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))
</if>
149 <set var=
"WXLIB_AUI">
150 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('aui')))
</if>
152 <set var=
"WXLIB_RIBBON">
153 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('ribbon')))
</if>
155 <set var=
"WXLIB_PROPGRID">
156 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('propgrid')))
</if>
158 <set var=
"WXLIB_RICHTEXT">
159 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('richtext')))
</if>
161 <set var=
"WXLIB_STC">
162 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))
</if>
165 <set var=
"WXLIB_MONO">
166 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
170 <!-- =============================================================== -->
171 <!-- Where to store built libraries and objects: -->
172 <!-- =============================================================== -->
174 <set var=
"DIR_SUFFIX_CPU">
175 <if cond=
"FORMAT=='msevc4prj'">_$(CPU)
</if>
176 <if cond=
"TARGET_CPU=='amd64'">_amd64
</if>
177 <if cond=
"TARGET_CPU=='AMD64'">_amd64
</if>
178 <if cond=
"TARGET_CPU=='ia64'">_ia64
</if>
179 <if cond=
"TARGET_CPU=='IA64'">_ia64
</if>
182 <if cond=
"FORMAT!='autoconf'">
183 <set var=
"WXDLLFLAG">
184 <if cond=
"SHARED=='1'">dll
</if>
186 <set var=
"CFG_NAME_PART">
187 $(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(WXDLLFLAG)$(CFG)
190 <!-- NB: this is make_var so that it can be overriden on command line
191 like this: nmake -f makefile.vc COMPILER_PREFIX=vc6 -->
192 <set var=
"COMPILER_PREFIX" make_var=
"1">$(COMPILER)
</set>
194 <set var=
"OBJS" make_var=
"1">
195 $(COMPILER_PREFIX)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
198 <set var=
"BUILDDIR">$(OBJS)
</set>
201 <set var=
"LIBTYPE_SUFFIX" make_var=
"1">
202 <if cond=
"FORMAT!='autoconf' and SHARED=='0' and PLATFORM_WIN32=='1'">lib
</if>
203 <if cond=
"FORMAT!='autoconf' and SHARED=='1' and PLATFORM_WIN32=='1'">dll
</if>
204 <if cond=
"FORMAT=='watcom' and SHARED=='0' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_lib
</if>
205 <if cond=
"FORMAT=='watcom' and SHARED=='1' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_dll
</if>
208 <set var=
"LIBDIRNAME" make_var=
"1">
209 <if cond=
"FORMAT=='autoconf'">$(wx_top_builddir)/lib
</if>
210 <if cond=
"FORMAT!='autoconf'">
211 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
215 <if cond=
"FORMAT!='autoconf'">
216 <set var=
"SETUPHDIR" make_var=
"1">
217 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)
223 <!-- =============================================================== -->
224 <!-- Templates for libs: -->
225 <!-- =============================================================== -->
227 <set var=
"DEBUGINFO">
228 <if cond=
"BUILD=='debug' and DEBUG_INFO=='default'">on
</if>
229 <if cond=
"DEBUG_INFO=='1'">on
</if>
230 <if cond=
"BUILD=='release' and DEBUG_INFO=='default'">off
</if>
231 <if cond=
"DEBUG_INFO=='0'">off
</if>
233 <set var=
"DEBUGRUNTIME">
234 <if cond=
"DEBUG_RUNTIME_LIBS=='default' and BUILD=='debug'">on
</if>
235 <if cond=
"DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">off
</if>
236 <if cond=
"DEBUG_RUNTIME_LIBS=='0'">off
</if>
237 <if cond=
"DEBUG_RUNTIME_LIBS=='1'">on
</if>
239 <set var=
"OPTIMIZEFLAG">
240 <if cond=
"BUILD=='debug'">off
</if>
241 <if cond=
"BUILD=='release'">speed
</if>
243 <set var=
"EXCEPTIONSFLAG">
244 <if cond=
"USE_EXCEPTIONS=='1'">on
</if>
245 <if cond=
"USE_EXCEPTIONS=='0'">off
</if>
248 <if cond=
"USE_RTTI=='1'">on
</if>
249 <if cond=
"USE_RTTI=='0'">off
</if>
251 <set var=
"THREADSFLAG">
252 <if cond=
"USE_THREADS=='1'">multi
</if>
253 <if cond=
"USE_THREADS=='0'">single
</if>
256 <set var=
"RTTI_DEFINE">
257 <if cond=
"USE_RTTI=='0'">wxNO_RTTI
</if>
259 <set var=
"EXCEPTIONS_DEFINE">
260 <if cond=
"USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS
</if>
262 <set var=
"THREAD_DEFINE">
263 <if cond=
"USE_THREADS=='0'">wxNO_THREADS
</if>
266 <set var=
"DEBUG_DEFINE">
267 <if cond=
"DEBUG_FLAG=='0'">wxDEBUG_LEVEL=
0</if>
269 <!-- does not cover all cases, but better than nothing -->
270 <set var=
"NO_VC_CRTDBG">
271 <if cond=
"FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__
</if>
272 <if cond=
"FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__
</if>
274 <set var=
"UNICODE_DEFINE">
275 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">_UNICODE
</if>
276 <if cond=
"FORMAT!='autoconf' and UNICODE=='0'">wxUSE_UNICODE=
0</if>
278 <set var=
"MSLU_DEFINE">
279 <if cond=
"FORMAT!='autoconf' and MSLU=='1'">wxUSE_UNICODE_MSLU=
1</if>
282 <!-- fill for the specific case of the format/compiler -->
283 <set var=
"WIN32_WINNT">
284 <if cond=
"FORMAT=='dmars' or FORMAT=='dmars_smake'">_WIN32_WINNT=
0x0400</if>
287 <set var=
"UNICOWS_LIB">
288 <if cond=
"MSLU=='1'">unicows
</if>
291 <if cond=
"FORMAT!='autoconf'">
292 <set var=
"GDIPLUS_LIB">
293 <if cond=
"USE_GDIPLUS=='1'">gdiplus
</if>
295 <set var=
"GFXCTX_DEFINE">
296 <if cond=
"USE_GDIPLUS=='1'">wxUSE_GRAPHICS_CONTEXT=
1</if>
300 <set var=
"LINK_TARGET_CPU">
301 <if cond=
"TARGET_CPU=='amd64'">/MACHINE:AMD64
</if>
302 <if cond=
"TARGET_CPU=='AMD64'">/MACHINE:AMD64
</if>
303 <if cond=
"TARGET_CPU=='ia64'">/MACHINE:IA64
</if>
304 <if cond=
"TARGET_CPU=='IA64'">/MACHINE:IA64
</if>
307 <template id=
"common_settings">
308 <debug-info>$(DEBUGINFO)
</debug-info>
309 <debug-runtime-libs>$(DEBUGRUNTIME)
</debug-runtime-libs>
310 <optimize>$(OPTIMIZEFLAG)
</optimize>
311 <threading>$(THREADSFLAG)
</threading>
312 <runtime-libs>$(RUNTIME_LIBS)
</runtime-libs>
313 <cxx-rtti>$(RTTIFLAG)
</cxx-rtti>
314 <cxx-exceptions>$(EXCEPTIONSFLAG)
</cxx-exceptions>
315 <if cond=
"FORMAT!='autoconf'">
316 <cppflags>$(EXTRACFLAGS)
</cppflags>
318 <define>$(NO_VC_CRTDBG)
</define>
319 <define>$(WIN32_WINNT)
</define>
320 <if cond=
"FORMAT=='msvc'">
321 <ldflags>$(LINK_TARGET_CPU)
</ldflags>
323 <include cond=
"FORMAT=='msevc4prj'">$(TOP_SRCDIR)build/wince/missing
</include>
326 <template id=
"anylib">
327 <dirname>$(LIBDIRNAME)
</dirname>
328 <install-to>$(LIBDIR)
</install-to>
331 <template id=
"3rdparty_lib" template=
"common_settings,anylib">
332 <if cond=
"FORMAT=='autoconf'">
333 <libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
</libname>
335 <if cond=
"FORMAT!='autoconf'">
336 <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)
</libname>
339 we want to install 3rd party libs system-wide only with static
340 version of wxWidgets; otherwise they are embedded in shared libs:
342 <install-if>SHARED=='
0'
</install-if>
343 <pic>$(substituteFromDict(SHARED, {'
0':'off', '
1':'on'}))
</pic>
346 we don't want to have asserts in the 3rd party libraries code,
347 neither we nor wx users are interested in debugging them anyhow
349 <define>NDEBUG
</define>
353 <!-- deal with the need to copy setup.h here: -->
355 <define-tag name=
"msvc-headers" rules=
"dll,lib">
356 <if cond=
"IS_MSVC_PRJ">
358 $(addPrefixToList('include\\', wxwin.headersOnly(value)))
359 </msvc-project-files>
363 <set var=
"msvc_copy_setup_h_script">
364 <if cond=
"IS_MSVC_PRJ">
365 Creating $(SETUPHDIR)\wx\setup.h
366 InputPath=..\..\include\wx\%s
368 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
369 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
373 <define-tag name=
"msvc-headers-setup-h" rules=
"dll,lib">
374 <if cond=
"IS_MSVC_PRJ">
376 $(addPrefixToList('wx/', value))
378 <set var=
"_custom_build_files" append=
"1">
379 $(nativePaths(addPrefixToList('include/wx/', value)))
384 <define-tag name=
"msvc-copy-setup-h" rules=
"dll,lib">
385 <if cond=
"IS_MSVC_PRJ">
386 <if cond=
"FORMAT=='msevc4prj'">
387 <msvc-headers-setup-h>
389 </msvc-headers-setup-h>
390 <set var=
"_custom_build_include_wx_msw_wince_setup_h">
391 $(msvc_copy_setup_h_script % 'msw\wince\setup.h')
394 <if cond=
"FORMAT!='msevc4prj'">
395 <msvc-headers-setup-h>
398 </msvc-headers-setup-h>
399 <set var=
"_custom_build_include_wx_msw_setup_h">
400 <if cond=
"WXUNIV=='0'">
401 $(msvc_copy_setup_h_script % 'msw\setup.h')
404 <set var=
"_custom_build_include_wx_univ_setup_h">
405 <if cond=
"WXUNIV=='1'">
406 $(msvc_copy_setup_h_script % 'univ\setup.h')
413 <define-tag name=
"msvc-create-rcdefs-h" rules=
"dll,lib">
414 <if cond=
"IS_MSVC_PRJ">
415 <msvc-headers-setup-h>
417 </msvc-headers-setup-h>
418 <!-- FIXME: we need another way to get the compiler name -->
419 <set var=
"VC_COMPILER">
420 <if cond=
"FORMAT=='msevc4prj'">$(_COMPILER)
</if>
421 <if cond=
"FORMAT!='msevc4prj'">cl
</if>
423 <set var=
"_custom_build_include_wx_msw_genrcdefs_h">
424 Creating $(SETUPHDIR)\wx\msw\rcdefs.h
425 InputPath=..\..\include\wx\msw\genrcdefs.h
427 "$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw"
428 $(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)"
> "$(SETUPHDIR)\wx\msw\rcdefs.h"
433 <template id=
"msvc_setup_h">
435 <msvc-create-rcdefs-h/>
438 <!-- =============================================================== -->
439 <!-- 3rd party libs: -->
440 <!-- =============================================================== -->
442 <!-- 3rd party libraries: -->
443 <include file=
"regex.bkl"/>
444 <include file=
"zlib.bkl"/>
445 <include file=
"png.bkl"/>
446 <include file=
"jpeg.bkl"/>
447 <include file=
"tiff.bkl"/>
448 <include file=
"expat.bkl"/>
449 <include file=
"scintilla.bkl"/>
452 <!-- =============================================================== -->
453 <!-- Templates for wxWidgets libs: -->
454 <!-- =============================================================== -->
456 <!-- NB: in monolithic build, even wxBase-only must be linked against
457 GUI extralibs, otherwise there would be unresolved references.
458 The variables below are defined so that all libs are used
459 in monolithic build, but not in multilib one. -->
460 <set var=
"EXTRALIBS_FOR_BASE">
461 <if cond=
"MONOLITHIC=='1'">$(EXTRALIBS) $(EXTRALIBS_GUI)
</if>
462 <if cond=
"MONOLITHIC=='0'">$(EXTRALIBS)
</if>
464 <set var=
"EXTRALIBS_FOR_GUI">
465 <if cond=
"MONOLITHIC=='1'"></if>
466 <if cond=
"MONOLITHIC=='0'">$(EXTRALIBS_GUI)
</if>
469 <if cond=
"TOOLKIT=='MGL' and FORMAT=='watcom'">
470 <set var=
"MGLLIBPATH">$(DOLLAR)(%SCITECH)/lib/$(BUILD)/dos32/ow10
</set>
471 <set var=
"MGLPMLIBPATH">
472 <if cond=
"DOS32=='DOS4GW'">dos4gw
</if>
476 <template id=
"wx" template=
"common_settings">
477 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
478 <define>__WX$(TOOLKIT)__
</define>
479 <define>$(WXUNIV_DEFINE)
</define>
480 <define>$(DEBUG_DEFINE)
</define>
481 <define>$(EXCEPTIONS_DEFINE)
</define>
482 <define>$(RTTI_DEFINE)
</define>
483 <define>$(THREAD_DEFINE)
</define>
484 <define>$(UNICODE_DEFINE)
</define>
485 <define>$(MSLU_DEFINE)
</define>
486 <if cond=
"FORMAT!='autoconf'"><define>$(GFXCTX_DEFINE)
</define></if>
487 <include cond=
"FORMAT!='autoconf'">$(SETUPHDIR)
</include>
488 <include cond=
"FORMAT!='autoconf'">$(TOP_SRCDIR)include
</include>
489 <lib-path>$(LIBDIRNAME)
</lib-path>
490 <if cond=
"TOOLKIT=='MGL' and FORMAT=='watcom'">
491 <lib-path>$(MGLLIBPATH)
</lib-path>
492 <lib-path>$(MGLLIBPATH)/$(MGLPMLIBPATH)
</lib-path>
495 <warnings>max
</warnings>
496 <cxxflags cond=
"FORMAT=='autoconf'">$(CXXWARNINGS)
</cxxflags>
498 -wcd=
549 <!-- 'sizeof' operand contains compiler generated information -->
499 -wcd=
656 <!-- define this function inside its class definition (may improve code quality) -->
500 -wcd=
657 <!-- define this function inside its class definition (could have improved code quality) -->
501 -wcd=
667 <!-- 'va_start' macro will not work without an argument before '...' -->
504 -Wno-ctor-dtor-privacy
<!-- only defines a private destructor and has no friends -->
508 <!-- for both GUI and wxBase libs/samples: -->
509 <template id=
"wx_append_base_nomono">
510 <!-- link against builtin 3rd party libs, if needed: -->
511 <sys-lib>$(LIB_ZLIB)
</sys-lib>
512 <sys-lib>$(LIB_REGEX)
</sys-lib>
513 <sys-lib>$(LIB_EXPAT)
</sys-lib>
515 <ldlibs>$(EXTRALIBS_FOR_BASE)
</ldlibs>
517 <!-- system libraries on os2: -->
518 <if cond=
"FORMAT!='autoconf' and PLATFORM_OS2=='1'">
519 <if cond=
"FORMAT=='watcom'">
520 <sys-lib>upm32
</sys-lib>
524 <!-- system libraries on mgl: -->
525 <if cond=
"FORMAT=='watcom' and TOOLKIT=='MGL'">
526 <sys-lib>mgl
</sys-lib>
527 <sys-lib>mglcpp
</sys-lib>
528 <sys-lib>pm
</sys-lib>
531 <!-- system libraries on windows: -->
532 <if cond=
"FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
533 <sys-lib>$(UNICOWS_LIB)
</sys-lib>
534 <sys-lib>$(GDIPLUS_LIB)
</sys-lib>
535 <if cond=
"FORMAT=='borland'">
536 <sys-lib>ole2w32
</sys-lib>
538 <if cond=
"FORMAT=='msevc4prj'">
539 <sys-lib>ole32
</sys-lib>
540 <sys-lib>oleaut32
</sys-lib>
541 <sys-lib>uuid
</sys-lib>
542 <sys-lib>commctrl
</sys-lib>
543 <sys-lib>winsock
</sys-lib>
544 <sys-lib>wininet
</sys-lib>
546 <if cond=
"FORMAT!='borland' and FORMAT!='msevc4prj'">
547 <sys-lib>kernel32
</sys-lib>
548 <sys-lib>user32
</sys-lib>
549 <sys-lib>gdi32
</sys-lib>
550 <sys-lib>comdlg32
</sys-lib>
551 <sys-lib>winspool
</sys-lib>
552 <sys-lib>winmm
</sys-lib>
553 <sys-lib>shell32
</sys-lib>
554 <sys-lib>comctl32
</sys-lib>
555 <sys-lib>ole32
</sys-lib>
556 <sys-lib>oleaut32
</sys-lib>
557 <sys-lib>uuid
</sys-lib>
558 <sys-lib>rpcrt4
</sys-lib>
559 <sys-lib>advapi32
</sys-lib>
560 <sys-lib>wsock32
</sys-lib>
561 <!-- this one is only used if wxUSE_URL_NATIVE==1 but we don't
562 know if it is here so just add it unconditionally -->
563 <sys-lib>wininet
</sys-lib>
565 <if cond=
"FORMAT=='borland'">
566 <sys-lib>oleacc
</sys-lib>
572 <!-- for GUI libs/samples: -->
573 <template id=
"wx_append_nomono" template_append=
"wx_append_base_nomono">
574 <sys-lib>$(LIB_TIFF)
</sys-lib>
575 <sys-lib>$(LIB_JPEG)
</sys-lib>
576 <sys-lib>$(LIB_PNG)
</sys-lib>
577 <ldlibs>$(EXTRALIBS_FOR_GUI)
</ldlibs>
581 <template id=
"wx_append_base" template_append=
"wx_append_base_nomono">
582 <!-- Always link against the wxWin library in monolithic build: -->
583 <sys-lib>$(WXLIB_MONO)
</sys-lib>
585 <template id=
"wx_append" template_append=
"wx_append_nomono">
586 <!-- Always link against the wxWin library in monolithic build: -->
587 <sys-lib>$(WXLIB_MONO)
</sys-lib>
591 <set var=
"WX_DISABLE_PRECOMP_HEADERS" overwrite=
"0">0</set>
593 <template id=
"wx_lib_b" template=
"wx,anylib">
594 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
595 <libname>$(WXLIBNAME)
</libname>
597 <define>WXBUILDING
</define>
599 <if cond=
"WX_DISABLE_PRECOMP_HEADERS=='0'">
600 <if cond=
"FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL','PM','WINCE']">
601 <sources>$(WXTOPDIR)src/common/dummy.cpp
</sources>
602 <precomp-headers-gen>
603 $(WXTOPDIR)src/common/dummy.cpp
604 </precomp-headers-gen>
606 <precomp-headers-location>$(WXTOPDIR)include
</precomp-headers-location>
607 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
608 <precomp-headers>on
</precomp-headers>
609 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
610 <precomp-headers-exclude>
611 src/common/extended.c
612 </precomp-headers-exclude>
615 <if cond=
"IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
616 <msvc-file-group>Common Sources:src/common/*
</msvc-file-group>
617 <msvc-file-group>MSW Sources:src/msw/*
</msvc-file-group>
618 <msvc-file-group>Generic Sources:src/generic/*
</msvc-file-group>
619 <msvc-file-group>wxUniv Sources:src/univ/*
</msvc-file-group>
620 <msvc-file-group>wxHTML Sources:src/html/*
</msvc-file-group>
621 <msvc-file-group>Setup Headers:*/setup.h
</msvc-file-group>
622 <msvc-file-group>MSW Headers:*wx/msw/*.h
</msvc-file-group>
623 <msvc-file-group>Generic Headers:*wx/generic/*.h
</msvc-file-group>
624 <msvc-file-group>wxUniv Headers:*wx/univ/*.h
</msvc-file-group>
625 <msvc-file-group>wxHTML Headers:*wx/html/*.h
</msvc-file-group>
626 <msvc-file-group>Common Headers:*wx/*.h
</msvc-file-group>
630 <if cond=
"FORMAT=='autoconf'">
632 <if cond=
"TOOLKIT=='MSW'">
633 $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
638 <template id=
"wx_dll_b" template=
"wx_lib_b">
639 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
640 <dllname>$(WXDLLNAME)
</dllname>
641 <version>$(WX_VERSION)
</version>
642 <so_version>$(WXSOVERSION)
</so_version>
644 <!-- FIXME: until libtool scheme is implemented in bakefile -->
645 <ldflags cond=
"FORMAT=='autoconf'">$(WXMACVERSION_CMD)
</ldflags>
647 <!-- version info resources: -->
648 <res-define>WXDLLNAME=$(WXDLLNAME)
</res-define>
649 <if cond=
"FORMAT=='autoconf'">
650 <res-include>$(RCDEFDIR)
</res-include>
651 <res-include>$(TOP_SRCDIR)include
</res-include>
652 <postlink-command>$(DYLIB_RPATH_POSTLINK)
</postlink-command>
654 <win32-res>$(WXTOPDIR)src/msw/version.rc
</win32-res>
658 <template id=
"wx_3rdparty_dependencies_gui" cond=
"USE_GUI=='1'">
659 <depends>wxtiff
</depends>
660 <depends>wxjpeg
</depends>
661 <depends>wxpng
</depends>
662 <depends>wxscintilla
</depends>
665 <template id=
"wx_3rdparty_dependencies"
666 template=
"wx_3rdparty_dependencies_gui">
667 <depends>wxexpat
</depends>
668 <depends>wxzlib
</depends>
669 <depends>wxregex
</depends>
672 <template id=
"wx_3rdparty_includes_gui" cond=
"USE_GUI=='1'">
673 <if cond=
"FORMAT=='watcom' and TOOLKIT=='MGL'">
674 <include>$(DOLLAR)(%SCITECH)/include
</include>
676 <include>$(INC_TIFF_BUILD)
</include>
677 <include>$(INC_TIFF)
</include>
678 <include>$(INC_JPEG)
</include>
679 <include>$(INC_PNG)
</include>
682 <template id=
"wx_3rdparty_includes"
683 template=
"wx_3rdparty_includes_gui">
684 <include>$(INC_ZLIB)
</include>
685 <include>$(INC_REGEX)
</include>
686 <include>$(INC_EXPAT)
</include>
689 <template id=
"wx_lib"
690 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
691 <template id=
"wx_base_lib"
692 template=
"wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
693 <define>wxUSE_GUI=
0</define>
696 <template id=
"wx_dll"
697 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
698 template_append=
"msvc_setup_h,wx_append_nomono"/>
699 <template id=
"wx_base_dll"
700 template=
"wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
701 template_append=
"msvc_setup_h,wx_append_base_nomono">
702 <define>wxUSE_GUI=
0</define>
705 <!-- =============================================================== -->
706 <!-- Templates for building wxWidgets plugins: -->
707 <!-- =============================================================== -->
709 <if cond=
"WX_STABLE_BRANCH=='1'">
710 <set var=
"PLUGIN_VERSION0">
711 <if cond=
"PLATFORM_UNIX=='1'">$(WX_RELEASE)
</if>
712 <if cond=
"PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)
</if>
715 <if cond=
"WX_STABLE_BRANCH=='0'">
716 <set var=
"PLUGIN_VERSION0">
717 <if cond=
"PLATFORM_UNIX=='1'">$(WX_VERSION)
</if>
718 <if cond=
"PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)
</if>
721 <set var=
"PLUGVERDELIM">
722 <if cond=
"PLATFORM_UNIX=='1'">-
</if>
723 <if cond=
"PLATFORM_UNIX=='0'"></if>
725 <set var=
"PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)
</set>
727 <set var=
"PLUGINS_INST_DIR" make_var=
"1">
728 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
731 <define-rule name=
"wx-base-plugin" extends=
"module">
734 $(id)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
736 <define>WXUSINGDLL
</define>
737 <define>wxUSE_GUI=
0</define>
738 <install-to>$(PLUGINS_INST_DIR)
</install-to>
742 <define-rule name=
"wx-gui-plugin" extends=
"module">
743 <template template=
"wx">
745 $(id)_$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
747 <define>WXUSINGDLL
</define>
748 <install-to>$(PLUGINS_INST_DIR)
</install-to>
752 <!-- =============================================================== -->
753 <!-- Support for wxWidgets samples: -->
754 <!-- =============================================================== -->
756 <!-- Link against one wxWin library. Value must be literal! -->
757 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
758 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>
759 <ldlibs>$(wxwin.extraLdflags(value))
</ldlibs>
760 <!-- msvs200?prj formats don't support external dependencies yet: -->
761 <if cond=
"FORMAT in ['msvc6prj','msevc4prj'] and MONOLITHIC=='0'">
762 <depends-on-dsp>$(wxwin.makeDspDependency(value))
</depends-on-dsp>
767 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
768 {top_srcdir} from configure, poor bakefile can't know that
769 and won't output top_srcdir = @top_srcdir@ line): -->
770 <set var=
"VARS_DONT_ELIMINATE" append=
"1">top_srcdir
</set>