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 <!-- We must make TOOLKIT a constant under MSW -->
70 <if cond=
"FORMAT in ['borland','mingw','msvc','watcom', 'msvc6prj', 'msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
71 <set var=
"TOOLKIT">MSW
</set>
76 Don't include wxUniversal configurations in project files, they
77 confuse people who don't know what "Universal" means and double the
78 number of configurations. If you do need to build wxUniversal, either
79 use the make files or comment out the 3 lines below and rerun
80 bakefile_gen to regenerate the projects with them.
82 <if cond=
"IS_MSVC_PRJ=='1'">
83 <set var=
"WXUNIV">0</set>
85 <if cond=
"IS_MSVC_PRJ=='0'">
86 <option name=
"WXUNIV">
88 <values-description>,Universal
</values-description>
89 <default-value>0</default-value>
91 Build wxUniversal instead of native port?
96 <!-- don't include ANSI configuration in project files, it's going to be
97 eventually removed anyway and it only doubles the number of build
98 configs in projects: -->
99 <if cond=
"IS_MSVC_PRJ=='1'">
100 <set var=
"UNICODE">1</set>
102 <if cond=
"IS_MSVC_PRJ=='0'">
103 <option name=
"UNICODE">
105 <values-description>,Unicode
</values-description>
106 <default-value>1</default-value>
108 Compile Unicode build of wxWidgets?
113 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
116 <default-value>0</default-value>
118 Use MSLU library when building Unicode version.
122 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
123 <set var=
"MSLU">0</set>
126 <option name=
"BUILD">
127 <values>debug,release
</values>
128 <values-description>Debug,Release
</values-description>
129 <default-value>debug
</default-value>
131 Type of compiled binaries
135 <if cond=
"FORMAT=='msvc'">
136 <option name=
"TARGET_CPU">
137 <default-value>$(DOLLAR)(CPU)
</default-value>
139 The target processor architecture must be specified when it is not X86.
140 This does not affect the compiler output, so you still need to make sure
141 your environment is set up appropriately with the correct compiler in the
142 PATH. Rather it affects some options passed to some of the common build
143 utilities such as the resource compiler and the linker.
145 Accepted values: IA64, X64
146 (AMD64 accepted as synonym for X64 but should not be used any more).
150 <if cond=
"FORMAT!='msvc'">
151 <set var=
"TARGET_CPU"/>
155 For MSVC enable debug information in all builds: it is needed to be
156 able to debug the crash dumps produced by wxDebugReport and as it
157 generates it in separate PDB files it doesn't cost us much to enable it
158 (except for disk space...).
160 <set var=
"DEBUG_INFO_DEFAULT">
161 <if cond=
"IS_MSVC=='1'">1</if>
162 <if cond=
"IS_MSVC=='0'">default
</if>
165 <option name=
"DEBUG_INFO">
166 <values>0,
1,default
</values>
167 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
169 Should debugging info be included in the executables? The default value
170 "default" means that debug info will be included if BUILD=debug
171 and not included if BUILD=release.
175 <option name=
"DEBUG_FLAG">
176 <values>0,
1,default
</values>
177 <default-value>1</default-value>
179 Value of wxDEBUG_LEVEL. The default value is the same as
1 and means that all
180 but expensive assert checks are enabled, use
0 to completely remove debugging
185 <if cond=
"FORMAT=='msvc'">
186 <option name=
"DEBUG_RUNTIME_LIBS">
187 <values>0,
1,default
</values>
188 <default-value>default
</default-value>
190 Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
191 Default is to use debug CRT if and only if BUILD==debug.
195 <if cond=
"FORMAT!='msvc'">
196 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
199 <set var=
"MONOLITHIC_DEFAULT">
200 <if cond=
"FORMAT=='watcom'">1</if>
201 <if cond=
"FORMAT!='watcom'">0</if>
203 <option name=
"MONOLITHIC">
205 <values-description>Multilib,Monolithic
</values-description>
206 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
208 Multiple libraries or single huge monolithic one?
212 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
213 <option name=
"USE_PLUGINS">
215 <default-value>1</default-value>
217 Build parts of the library as dynamically loadable plugins
218 (only supported in multilib build)?
222 <if cond=
"FORMAT!='autoconf'">
223 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
226 <option name=
"USE_GUI">
228 <values-description>Base,GUI
</values-description>
229 <default-value>1</default-value>
235 <option name=
"USE_HTML">
237 <default-value>1</default-value>
239 Build wxHTML library (USE_GUI must be
1)?
243 <option name=
"USE_WEBVIEW">
245 <default-value>1</default-value>
247 Build wxWebView library (USE_GUI must be
1)?
251 <option name=
"USE_MEDIA">
253 <default-value>1</default-value>
255 Build multimedia library (USE_GUI must be
1)?
259 <option name=
"USE_XRC">
261 <default-value>1</default-value>
263 Build wxXRC library (USE_GUI must be
1)?
267 <option name=
"USE_AUI">
269 <default-value>1</default-value>
271 Build wxAUI library (USE_GUI must be
1)?
275 <option name=
"USE_RIBBON">
277 <default-value>1</default-value>
279 Build wxRibbon library (USE_GUI must be
1)?
283 <option name=
"USE_PROPGRID">
285 <default-value>1</default-value>
287 Build wxPropertyGrid library (USE_GUI must be
1)?
291 <option name=
"USE_RICHTEXT">
293 <default-value>1</default-value>
295 Build wxRichTextCtrl library (USE_GUI must be
1)?
299 <option name=
"USE_STC">
301 <default-value>1</default-value>
303 Build wxStyledTextCtrl library (USE_GUI must be
1)?
307 <option name=
"USE_OPENGL">
309 <default-value>1</default-value>
311 Build OpenGL canvas library (USE_GUI must be
1)?
315 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
316 <set var=
"USE_QA_DEFAULT">
317 <if cond=
"FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
318 <if cond=
"FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
320 <option name=
"USE_QA">
322 <default-value>$(USE_QA_DEFAULT)
</default-value>
324 Build quality assurance classes library (USE_GUI must be
1)?
328 <option name=
"USE_EXCEPTIONS">
330 <default-value>1</default-value>
332 Enable exceptions in compiled code.
336 <option name=
"USE_RTTI">
338 <default-value>1</default-value>
340 Enable run-time type information (RTTI) in compiled code.
344 <option name=
"USE_THREADS">
346 <default-value>1</default-value>
348 Enable threading in compiled code.
352 <option name=
"USE_CAIRO">
354 <default-value>0</default-value>
356 Enable wxCairoContext for platforms other than Linux/GTK.
360 <option name=
"OFFICIAL_BUILD">
362 <default-value>0</default-value>
364 Is this official build by wxWidgets developers?
367 <option name=
"VENDOR">
368 <default-value>custom
</default-value>
370 Use this to name your customized DLLs differently
373 <!-- These basically do what vendor does in the places it didn't. -->
374 <!-- They should all be unified under some suitable descriptor -->
375 <option name=
"WX_FLAVOUR">
376 <default-value></default-value>
378 <option name=
"WX_LIB_FLAVOUR">
379 <default-value></default-value>
383 <default-value></default-value>
385 Name of your custom configuration. This affects directory
386 where object files are stored as well as the location of
387 compiled .lib files and setup.h under the lib/ toplevel directory.
391 <!-- unit tests support: -->
392 <option name=
"CPPUNIT_CFLAGS">
393 <default-value></default-value>
395 Compiler flags needed to compile test suite in tests directory. If you want
396 to run the tests, set it so that the compiler can find CppUnit headers.
400 <option name=
"CPPUNIT_LIBS">
401 <default-value></default-value>
403 Linker flags needed to link test suite in tests directory. If you want
404 to run the tests, include CppUnit library here.
409 <!-- ================================================================== -->
411 <!-- ================================================================== -->
413 <if cond=
"FORMAT=='autoconf'">
414 <option name=
"DEREZ"/>
415 <option name=
"TOOLKIT"/>
416 <option name=
"TOOLKIT_LOWERCASE"/>
417 <option name=
"TOOLKIT_VERSION"/>
418 <option name=
"TOOLCHAIN_NAME"/>
419 <option name=
"TOOLCHAIN_FULLNAME"/>
420 <option name=
"EXTRALIBS"/>
421 <option name=
"EXTRALIBS_XML"/>
422 <option name=
"EXTRALIBS_HTML"/>
423 <option name=
"EXTRALIBS_MEDIA"/>
424 <option name=
"EXTRALIBS_GUI"/>
425 <option name=
"EXTRALIBS_OPENGL"/>
426 <option name=
"EXTRALIBS_SDL"/>
427 <option name=
"CXXWARNINGS"/>
428 <option name=
"HOST_SUFFIX"/>
429 <option name=
"DYLIB_RPATH_INSTALL"/>
430 <option name=
"DYLIB_RPATH_POSTLINK"/>
431 <option name=
"SAMPLES_RPATH_FLAG"/>
433 <!-- see configure.in; it's required by some samples on Mac OS X -->
434 <option name=
"HEADER_PAD_OPTION"/>
436 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
437 <set var=
"RUNTIME_LIBS">dynamic
</set>
438 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
440 <option name=
"WITH_PLUGIN_SDL">
444 <option name=
"wx_top_builddir"/>
448 <!-- ================================================================== -->
449 <!-- windows/dos/os2 compilers -->
450 <!-- ================================================================== -->
452 <if cond=
"FORMAT!='autoconf'">
453 <option name=
"RUNTIME_LIBS">
454 <values>dynamic,static
</values>
455 <default-value>dynamic
</default-value>
457 Version of C runtime library to use. You can change this to
458 static if SHARED=
0, but it is highly recommended to not do
459 it if SHARED=
1 unless you know what you are doing.
463 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
465 <set var=
"WIN32_TOOLKIT">
466 <if cond=
"TOOLKIT=='MSW'">MSW
</if>
467 <if cond=
"TOOLKIT=='GTK'">GTK
</if>
469 <set var=
"WIN32_TOOLKIT_LOWERCASE">
470 <if cond=
"TOOLKIT=='MSW'">msw
</if>
471 <if cond=
"TOOLKIT=='GTK'">gtk
</if>
474 <set var=
"TOOLKIT" overwrite=
"0">
475 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
476 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
477 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
478 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
479 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
480 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT)
</if>
481 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
483 <set var=
"TOOLKIT_LOWERCASE">
484 <if cond=
"FORMAT=='msevc4prj'">wince
</if>
485 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
486 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
487 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
488 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
489 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
490 <if cond=
"PLATFORM_OS2=='1'">pm
</if>
492 <if cond=
"FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
493 <set var=
"TOOLKIT_VERSION">
494 <if cond=
"PLATFORM_WIN32=='1' and TOOLKIT=='GTK'">2</if>
497 <set var=
"HOST_SUFFIX"/>
498 <set var=
"EXTRACFLAGS"/>
499 <set var=
"EXTRALIBS"/>
500 <set var=
"EXTRALIBS_XML"/>
501 <set var=
"EXTRALIBS_HTML"/>
502 <set var=
"EXTRALIBS_MEDIA"/>
503 <set var=
"EXTRALIBS_GUI"/>
504 <set var=
"EXTRALIBS_OPENGL">
505 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
506 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
507 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
509 <set var=
"EXTRALIBS_SDL"/>
510 <set var=
"EXTRALIBS_GNOMEPRINT"/>
512 <set var=
"WITH_PLUGIN_SDL">0</set>
514 <if cond=
"BUILDING_LIB=='1'">
515 <set-srcdir>../..
</set-srcdir>
517 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
520 <if cond=
"FORMAT=='mingw'">
521 <option name=
"GCC_VERSION">
522 <values>3,
2.95</values>
523 <default-value>3</default-value>
525 Set the version of your Mingw installation here.
526 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
527 "
2.95" ... for Mingw
1.1 or any of the older versions
531 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
533 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
537 <!-- ================================================================== -->
538 <!-- Project files - hardcode some defaults -->
539 <!-- ================================================================== -->
541 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
542 <set var=
"RUNTIME_LIBS">dynamic
</set>
543 <set var=
"OFFICIAL_BUILD">0</set>
544 <set var=
"USE_AUI">1</set>
545 <set var=
"USE_RIBBON">1</set>
546 <set var=
"USE_PROPGRID">1</set>
547 <set var=
"USE_RICHTEXT">1</set>
548 <set var=
"USE_STC">1</set>
549 <set var=
"USE_HTML">1</set>
550 <set var=
"USE_WEBVIEW">1</set>
551 <set var=
"USE_MEDIA">1</set>
552 <set var=
"USE_XRC">1</set>
553 <set var=
"USE_OPENGL">1</set>
554 <set var=
"USE_QA">1</set>
555 <set var=
"MONOLITHIC">0</set>
556 <set var=
"USE_GUI">1</set>
557 <set var=
"USE_EXCEPTIONS">1</set>
558 <set var=
"USE_RTTI">1</set>
559 <set var=
"USE_THREADS">1</set>
560 <set var=
"USE_CAIRO">0</set>
561 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
562 <set var=
"DEBUG_FLAG">default
</set>
563 <set var=
"MSLU">0</set>
567 <!-- DigitalMars make is braindead, it doesn't have conditional
569 <if cond=
"FORMAT=='dmars'">
570 <set var=
"RUNTIME_LIBS">static
</set>
571 <set var=
"BUILD">debug
</set>
572 <set var=
"SHARED">0</set>
573 <set var=
"WXUNIV">0</set>
574 <set var=
"UNICODE">1</set>
575 <!-- Free version does not distribute OpenGL,
576 in commercial distribution better use dmars_smake format -->
577 <set var=
"USE_OPENGL">0</set>
580 <!-- No need for wxUniv on embedded devices (yet): -->
581 <if cond=
"FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
582 <set var=
"WXUNIV">0</set>
583 <!-- Uploading debug reports from PDAs seems impractical -->
584 <set var=
"USE_QA">0</set>
585 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
586 <set var=
"USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
587 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
588 <if cond=
"FORMAT=='msevc4prj'">
589 <set var=
"USE_RTTI">0</set>
590 <set var=
"USE_EXCEPTIONS">0</set>