6 <set var=
"IS_MSVC_PRJ">
7 $(FORMAT in ['msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj'])
10 $(IS_MSVC_PRJ=='
1' or FORMAT=='msvc')
14 <set var=
"BUILDING_LIB" overwrite=
"0">0</set>
16 <set var=
"CPP_DEFAULT_VALUE">
17 <if cond=
"FORMAT=='borland'">
20 <if cond=
"FORMAT=='mingw'">
23 <if cond=
"FORMAT=='msvc'">
24 $(DOLLAR)(CC) /EP /nologo
26 <if cond=
"FORMAT=='watcom'">
39 <option name=
"SHARED">
41 <values-description>,DLL
</values-description>
42 <default-value>0</default-value>
44 What type of library to build?
48 <if cond=
"FORMAT!='autoconf'">
49 <option name=
"TOOLKIT">
50 <values>MSW,GTK
</values>
51 <values-description>,GTK+
</values-description>
52 <default-value>MSW
</default-value>
58 <if cond=
"FORMAT not in ['autoconf','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj']">
59 <option name=
"TOOLKIT_VERSION">
61 <values-description>,
2</values-description>
62 <default-value></default-value>
69 <if cond=
"FORMAT in ['msvc6prj', 'msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
70 <set var=
"TOOLKIT">MSW
</set>
74 <option name=
"WXUNIV">
76 <values-description>,Universal
</values-description>
77 <default-value>0</default-value>
79 Build wxUniversal instead of native port?
83 <!-- don't include ANSI configuration in project files, it's going to be
84 eventually removed anyway and it only doubles the number of build
85 configs in projects: -->
86 <if cond=
"IS_MSVC_PRJ=='1'">
87 <set var=
"UNICODE">1</set>
89 <if cond=
"IS_MSVC_PRJ=='0'">
90 <option name=
"UNICODE">
92 <values-description>,Unicode
</values-description>
93 <default-value>1</default-value>
95 Compile Unicode build of wxWidgets?
100 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
103 <default-value>0</default-value>
105 Use MSLU library when building Unicode version.
109 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
110 <set var=
"MSLU">0</set>
113 <option name=
"BUILD">
114 <values>debug,release
</values>
115 <values-description>Debug,Release
</values-description>
116 <default-value>debug
</default-value>
118 Type of compiled binaries
122 <if cond=
"FORMAT=='msvc'">
123 <option name=
"TARGET_CPU">
124 <default-value>$(DOLLAR)(CPU)
</default-value>
126 The target processor architecture must be specified when it is not X86.
127 This does not affect the compiler output, so you still need to make sure
128 your environment is set up appropriately with the correct compiler in the
129 PATH. Rather it affects some options passed to some of the common build
130 utilities such as the resource compiler and the linker.
132 Accepted values: IA64, X64
133 (AMD64 accepted as synonym for X64 but should not be used any more).
137 <if cond=
"FORMAT!='msvc'">
138 <set var=
"TARGET_CPU"/>
142 For MSVC enable debug information in all builds: it is needed to be
143 able to debug the crash dumps produced by wxDebugReport and as it
144 generates it in separate PDB files it doesn't cost us much to enable it
145 (except for disk space...).
147 <set var=
"DEBUG_INFO_DEFAULT">
148 <if cond=
"IS_MSVC=='1'">1</if>
149 <if cond=
"IS_MSVC=='0'">default
</if>
152 <option name=
"DEBUG_INFO">
153 <values>0,
1,default
</values>
154 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
156 Should debugging info be included in the executables? The default value
157 "default" means that debug info will be included if BUILD=debug
158 and not included if BUILD=release.
162 <option name=
"DEBUG_FLAG">
163 <values>0,
1,default
</values>
164 <default-value>1</default-value>
166 Value of wxDEBUG_LEVEL. The default value is the same as
1 and means that all
167 but expensive assert checks are enabled, use
0 to completely remove debugging
172 <if cond=
"FORMAT=='msvc'">
173 <option name=
"DEBUG_RUNTIME_LIBS">
174 <values>0,
1,default
</values>
175 <default-value>default
</default-value>
177 Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
178 Default is to use debug CRT if and only if BUILD==debug.
182 <if cond=
"FORMAT!='msvc'">
183 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
186 <set var=
"MONOLITHIC_DEFAULT">
187 <if cond=
"FORMAT=='watcom'">1</if>
188 <if cond=
"FORMAT!='watcom'">0</if>
190 <option name=
"MONOLITHIC">
192 <values-description>Multilib,Monolithic
</values-description>
193 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
195 Multiple libraries or single huge monolithic one?
199 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
200 <option name=
"USE_PLUGINS">
202 <default-value>1</default-value>
204 Build parts of the library as dynamically loadable plugins
205 (only supported in multilib build)?
209 <if cond=
"FORMAT!='autoconf'">
210 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
213 <option name=
"USE_GUI">
215 <values-description>Base,GUI
</values-description>
216 <default-value>1</default-value>
222 <option name=
"USE_HTML">
224 <default-value>1</default-value>
226 Build wxHTML library (USE_GUI must be
1)?
230 <option name=
"USE_WEBVIEW">
232 <default-value>1</default-value>
234 Build wxWebView library (USE_GUI must be
1)?
238 <option name=
"USE_MEDIA">
240 <default-value>1</default-value>
242 Build multimedia library (USE_GUI must be
1)?
246 <option name=
"USE_XRC">
248 <default-value>1</default-value>
250 Build wxXRC library (USE_GUI must be
1)?
254 <option name=
"USE_AUI">
256 <default-value>1</default-value>
258 Build wxAUI library (USE_GUI must be
1)?
262 <option name=
"USE_RIBBON">
264 <default-value>1</default-value>
266 Build wxRibbon library (USE_GUI must be
1)?
270 <option name=
"USE_PROPGRID">
272 <default-value>1</default-value>
274 Build wxPropertyGrid library (USE_GUI must be
1)?
278 <option name=
"USE_RICHTEXT">
280 <default-value>1</default-value>
282 Build wxRichTextCtrl library (USE_GUI must be
1)?
286 <option name=
"USE_STC">
288 <default-value>1</default-value>
290 Build wxStyledTextCtrl library (USE_GUI must be
1)?
294 <option name=
"USE_OPENGL">
296 <default-value>1</default-value>
298 Build OpenGL canvas library (USE_GUI must be
1)?
302 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
303 <set var=
"USE_QA_DEFAULT">
304 <if cond=
"FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
305 <if cond=
"FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
307 <option name=
"USE_QA">
309 <default-value>$(USE_QA_DEFAULT)
</default-value>
311 Build quality assurance classes library (USE_GUI must be
1)?
315 <option name=
"USE_EXCEPTIONS">
317 <default-value>1</default-value>
319 Enable exceptions in compiled code.
323 <option name=
"USE_RTTI">
325 <default-value>1</default-value>
327 Enable run-time type information (RTTI) in compiled code.
331 <option name=
"USE_THREADS">
333 <default-value>1</default-value>
335 Enable threading in compiled code.
339 <option name=
"USE_CAIRO">
341 <default-value>0</default-value>
343 Enable wxCairoContext for platforms other than Linux/GTK.
347 <option name=
"OFFICIAL_BUILD">
349 <default-value>0</default-value>
351 Is this official build by wxWidgets developers?
354 <option name=
"VENDOR">
355 <default-value>custom
</default-value>
357 Use this to name your customized DLLs differently
360 <!-- These basically do what vendor does in the places it didn't. -->
361 <!-- They should all be unified under some suitable descriptor -->
362 <option name=
"WX_FLAVOUR">
363 <default-value></default-value>
365 <option name=
"WX_LIB_FLAVOUR">
366 <default-value></default-value>
370 <default-value></default-value>
372 Name of your custom configuration. This affects directory
373 where object files are stored as well as the location of
374 compiled .lib files and setup.h under the lib/ toplevel directory.
378 <!-- unit tests support: -->
379 <option name=
"CPPUNIT_CFLAGS">
380 <default-value></default-value>
382 Compiler flags needed to compile test suite in tests directory. If you want
383 to run the tests, set it so that the compiler can find CppUnit headers.
387 <option name=
"CPPUNIT_LIBS">
388 <default-value></default-value>
390 Linker flags needed to link test suite in tests directory. If you want
391 to run the tests, include CppUnit library here.
396 <!-- ================================================================== -->
398 <!-- ================================================================== -->
400 <if cond=
"FORMAT=='autoconf'">
401 <option name=
"DEREZ"/>
402 <option name=
"TOOLKIT"/>
403 <option name=
"TOOLKIT_LOWERCASE"/>
404 <option name=
"TOOLKIT_VERSION"/>
405 <option name=
"TOOLCHAIN_NAME"/>
406 <option name=
"TOOLCHAIN_FULLNAME"/>
407 <option name=
"EXTRALIBS"/>
408 <option name=
"EXTRALIBS_XML"/>
409 <option name=
"EXTRALIBS_HTML"/>
410 <option name=
"EXTRALIBS_MEDIA"/>
411 <option name=
"EXTRALIBS_GUI"/>
412 <option name=
"EXTRALIBS_OPENGL"/>
413 <option name=
"EXTRALIBS_SDL"/>
414 <option name=
"CXXWARNINGS"/>
415 <option name=
"HOST_SUFFIX"/>
416 <option name=
"DYLIB_RPATH_INSTALL"/>
417 <option name=
"DYLIB_RPATH_POSTLINK"/>
418 <option name=
"SAMPLES_RPATH_FLAG"/>
420 <!-- see configure.in; it's required by some samples on Mac OS X -->
421 <option name=
"HEADER_PAD_OPTION"/>
423 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
424 <set var=
"RUNTIME_LIBS">dynamic
</set>
425 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
427 <option name=
"WITH_PLUGIN_SDL">
431 <option name=
"wx_top_builddir"/>
435 <!-- ================================================================== -->
436 <!-- windows/dos/os2 compilers -->
437 <!-- ================================================================== -->
439 <if cond=
"FORMAT!='autoconf'">
440 <option name=
"RUNTIME_LIBS">
441 <values>dynamic,static
</values>
442 <default-value>dynamic
</default-value>
444 Version of C runtime library to use. You can change this to
445 static if SHARED=
0, but it is highly recommended to not do
446 it if SHARED=
1 unless you know what you are doing.
450 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
452 <set var=
"WIN32_TOOLKIT">
453 <if cond=
"TOOLKIT=='MSW'">MSW
</if>
454 <if cond=
"TOOLKIT=='GTK'">GTK
</if>
456 <set var=
"WIN32_TOOLKIT_LOWERCASE">
457 <if cond=
"TOOLKIT=='MSW'">msw
</if>
458 <if cond=
"TOOLKIT=='GTK'">gtk
</if>
461 <set var=
"TOOLKIT" overwrite=
"0">
462 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
463 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
464 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
465 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
466 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
467 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT)
</if>
468 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
470 <set var=
"TOOLKIT_LOWERCASE">
471 <if cond=
"FORMAT=='msevc4prj'">wince
</if>
472 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
473 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
474 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
475 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
476 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
477 <if cond=
"PLATFORM_OS2=='1'">pm
</if>
479 <if cond=
"FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
480 <set var=
"TOOLKIT_VERSION">
481 <if cond=
"PLATFORM_WIN32=='1' and TOOLKIT=='GTK'">2</if>
484 <set var=
"HOST_SUFFIX"/>
485 <set var=
"EXTRACFLAGS"/>
486 <set var=
"EXTRALIBS"/>
487 <set var=
"EXTRALIBS_XML"/>
488 <set var=
"EXTRALIBS_HTML"/>
489 <set var=
"EXTRALIBS_MEDIA"/>
490 <set var=
"EXTRALIBS_GUI"/>
491 <set var=
"EXTRALIBS_OPENGL">
492 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
493 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
494 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
496 <set var=
"EXTRALIBS_SDL"/>
497 <set var=
"EXTRALIBS_GNOMEPRINT"/>
499 <set var=
"WITH_PLUGIN_SDL">0</set>
501 <if cond=
"BUILDING_LIB=='1'">
502 <set-srcdir>../..
</set-srcdir>
504 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
507 <if cond=
"FORMAT=='mingw'">
508 <option name=
"GCC_VERSION">
509 <values>3,
2.95</values>
510 <default-value>3</default-value>
512 Set the version of your Mingw installation here.
513 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
514 "
2.95" ... for Mingw
1.1 or any of the older versions
518 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
520 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
524 <!-- ================================================================== -->
525 <!-- Project files - hardcode some defaults -->
526 <!-- ================================================================== -->
528 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
529 <set var=
"RUNTIME_LIBS">dynamic
</set>
530 <set var=
"OFFICIAL_BUILD">0</set>
531 <set var=
"USE_AUI">1</set>
532 <set var=
"USE_RIBBON">1</set>
533 <set var=
"USE_PROPGRID">1</set>
534 <set var=
"USE_RICHTEXT">1</set>
535 <set var=
"USE_STC">1</set>
536 <set var=
"USE_HTML">1</set>
537 <set var=
"USE_WEBVIEW">1</set>
538 <set var=
"USE_MEDIA">1</set>
539 <set var=
"USE_XRC">1</set>
540 <set var=
"USE_OPENGL">1</set>
541 <set var=
"USE_QA">1</set>
542 <set var=
"MONOLITHIC">0</set>
543 <set var=
"USE_GUI">1</set>
544 <set var=
"USE_EXCEPTIONS">1</set>
545 <set var=
"USE_RTTI">1</set>
546 <set var=
"USE_THREADS">1</set>
547 <set var=
"USE_CAIRO">0</set>
548 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
549 <set var=
"DEBUG_FLAG">default
</set>
550 <set var=
"MSLU">0</set>
554 <!-- DigitalMars make is braindead, it doesn't have conditional
556 <if cond=
"FORMAT=='dmars'">
557 <set var=
"RUNTIME_LIBS">static
</set>
558 <set var=
"BUILD">debug
</set>
559 <set var=
"SHARED">0</set>
560 <set var=
"WXUNIV">0</set>
561 <set var=
"UNICODE">1</set>
562 <!-- Free version does not distribute OpenGL,
563 in commercial distribution better use dmars_smake format -->
564 <set var=
"USE_OPENGL">0</set>
567 <!-- No need for wxUniv on embedded devices (yet): -->
568 <if cond=
"FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
569 <set var=
"WXUNIV">0</set>
570 <!-- Uploading debug reports from PDAs seems impractical -->
571 <set var=
"USE_QA">0</set>
572 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
573 <set var=
"USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
574 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
575 <if cond=
"FORMAT=='msevc4prj'">
576 <set var=
"USE_RTTI">0</set>
577 <set var=
"USE_EXCEPTIONS">0</set>