5 <set var=
"IS_MSVC_PRJ">
6 $(FORMAT in ['msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj'])
9 $(IS_MSVC_PRJ=='
1' or FORMAT=='msvc')
13 <set var=
"BUILDING_LIB" overwrite=
"0">0</set>
15 <set var=
"CPP_DEFAULT_VALUE">
16 <if cond=
"FORMAT=='borland'">
19 <if cond=
"FORMAT=='mingw'">
22 <if cond=
"FORMAT=='msvc'">
23 $(DOLLAR)(CC) /EP /nologo
25 <if cond=
"FORMAT=='watcom'">
38 <option name=
"SHARED">
40 <values-description>,DLL
</values-description>
41 <default-value>0</default-value>
43 What type of library to build?
47 <if cond=
"FORMAT!='autoconf'">
48 <option name=
"TOOLKIT">
49 <values>MSW,GTK
</values>
50 <values-description>,GTK+
</values-description>
51 <default-value>MSW
</default-value>
57 <if cond=
"FORMAT not in ['autoconf','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj']">
58 <option name=
"TOOLKIT_VERSION">
60 <values-description>,
2</values-description>
61 <default-value></default-value>
68 <!-- We must make TOOLKIT a constant under Windows -->
69 <if cond=
"FORMAT in ['borland','mingw','msvc','watcom', 'msvc6prj', 'msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
70 <set var=
"TOOLKIT">MSW
</set>
75 Don't include wxUniversal configurations in project files, they
76 confuse people who don't know what "Universal" means and double the
77 number of configurations. If you do need to build wxUniversal, either
78 use the make files or comment out the 3 lines below and rerun
79 bakefile_gen to regenerate the projects with them.
81 <if cond=
"IS_MSVC_PRJ=='1'">
82 <set var=
"WXUNIV">0</set>
84 <if cond=
"IS_MSVC_PRJ=='0'">
85 <option name=
"WXUNIV">
87 <values-description>,Universal
</values-description>
88 <default-value>0</default-value>
90 Build wxUniversal instead of native port?
95 <!-- don't include ANSI configuration in project files, it's going to be
96 eventually removed anyway and it only doubles the number of build
97 configs in projects: -->
98 <if cond=
"IS_MSVC_PRJ=='1'">
99 <set var=
"UNICODE">1</set>
101 <if cond=
"IS_MSVC_PRJ=='0'">
102 <option name=
"UNICODE">
104 <values-description>,Unicode
</values-description>
105 <default-value>1</default-value>
107 Compile Unicode build of wxWidgets?
112 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
115 <default-value>0</default-value>
117 Use MSLU library when building Unicode version.
121 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
122 <set var=
"MSLU">0</set>
125 <option name=
"BUILD">
126 <values>debug,release
</values>
127 <values-description>Debug,Release
</values-description>
128 <default-value>debug
</default-value>
130 Type of compiled binaries
134 <if cond=
"FORMAT=='msvc'">
135 <option name=
"TARGET_CPU">
136 <default-value>$(DOLLAR)(CPU)
</default-value>
138 The target processor architecture must be specified when it is not X86.
139 This does not affect the compiler output, so you still need to make sure
140 your environment is set up appropriately with the correct compiler in the
141 PATH. Rather it affects some options passed to some of the common build
142 utilities such as the resource compiler and the linker.
144 Accepted values: IA64, X64
145 (AMD64 accepted as synonym for X64 but should not be used any more).
149 <if cond=
"FORMAT!='msvc'">
150 <set var=
"TARGET_CPU"/>
154 For MSVC enable debug information in all builds: it is needed to be
155 able to debug the crash dumps produced by wxDebugReport and as it
156 generates it in separate PDB files it doesn't cost us much to enable it
157 (except for disk space...).
159 <set var=
"DEBUG_INFO_DEFAULT">
160 <if cond=
"IS_MSVC=='1'">1</if>
161 <if cond=
"IS_MSVC=='0'">default
</if>
164 <option name=
"DEBUG_INFO">
165 <values>0,
1,default
</values>
166 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
168 Should debugging info be included in the executables? The default value
169 "default" means that debug info will be included if BUILD=debug
170 and not included if BUILD=release.
174 <option name=
"DEBUG_FLAG">
175 <values>0,
1,default
</values>
176 <default-value>1</default-value>
178 Value of wxDEBUG_LEVEL. The default value is the same as
1 and means that all
179 but expensive assert checks are enabled, use
0 to completely remove debugging
184 <if cond=
"FORMAT=='msvc'">
185 <option name=
"DEBUG_RUNTIME_LIBS">
186 <values>0,
1,default
</values>
187 <default-value>default
</default-value>
189 Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
190 Default is to use debug CRT if and only if BUILD==debug.
194 <if cond=
"FORMAT!='msvc'">
195 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
198 <set var=
"MONOLITHIC_DEFAULT">
199 <if cond=
"FORMAT=='watcom'">1</if>
200 <if cond=
"FORMAT!='watcom'">0</if>
202 <option name=
"MONOLITHIC">
204 <values-description>Multilib,Monolithic
</values-description>
205 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
207 Multiple libraries or single huge monolithic one?
211 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
212 <option name=
"USE_PLUGINS">
214 <default-value>1</default-value>
216 Build parts of the library as dynamically loadable plugins
217 (only supported in multilib build)?
221 <if cond=
"FORMAT!='autoconf'">
222 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
225 <option name=
"USE_GUI">
227 <values-description>Base,GUI
</values-description>
228 <default-value>1</default-value>
234 <option name=
"USE_HTML">
236 <default-value>1</default-value>
238 Build wxHTML library (USE_GUI must be
1)?
242 <option name=
"USE_WEBVIEW">
244 <default-value>1</default-value>
246 Build wxWebView library (USE_GUI must be
1)?
250 <option name=
"USE_MEDIA">
252 <default-value>1</default-value>
254 Build multimedia library (USE_GUI must be
1)?
258 <option name=
"USE_XRC">
260 <default-value>1</default-value>
262 Build wxXRC library (USE_GUI must be
1)?
266 <option name=
"USE_AUI">
268 <default-value>1</default-value>
270 Build wxAUI library (USE_GUI must be
1)?
274 <option name=
"USE_RIBBON">
276 <default-value>1</default-value>
278 Build wxRibbon library (USE_GUI must be
1)?
282 <option name=
"USE_PROPGRID">
284 <default-value>1</default-value>
286 Build wxPropertyGrid library (USE_GUI must be
1)?
290 <option name=
"USE_RICHTEXT">
292 <default-value>1</default-value>
294 Build wxRichTextCtrl library (USE_GUI must be
1)?
298 <option name=
"USE_STC">
300 <default-value>1</default-value>
302 Build wxStyledTextCtrl library (USE_GUI must be
1)?
306 <option name=
"USE_OPENGL">
308 <default-value>1</default-value>
310 Build OpenGL canvas library (USE_GUI must be
1)?
314 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
315 <set var=
"USE_QA_DEFAULT">
316 <if cond=
"FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
317 <if cond=
"FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
319 <option name=
"USE_QA">
321 <default-value>$(USE_QA_DEFAULT)
</default-value>
323 Build quality assurance classes library (USE_GUI must be
1)?
327 <option name=
"USE_EXCEPTIONS">
329 <default-value>1</default-value>
331 Enable exceptions in compiled code.
335 <option name=
"USE_RTTI">
337 <default-value>1</default-value>
339 Enable run-time type information (RTTI) in compiled code.
343 <option name=
"USE_THREADS">
345 <default-value>1</default-value>
347 Enable threading in compiled code.
351 <option name=
"USE_CAIRO">
353 <default-value>0</default-value>
355 Enable wxCairoContext for platforms other than Linux/GTK.
359 <option name=
"OFFICIAL_BUILD">
361 <default-value>0</default-value>
363 Is this official build by wxWidgets developers?
366 <option name=
"VENDOR">
367 <default-value>custom
</default-value>
369 Use this to name your customized DLLs differently
372 <!-- These basically do what vendor does in the places it didn't. -->
373 <!-- They should all be unified under some suitable descriptor -->
374 <option name=
"WX_FLAVOUR">
375 <default-value></default-value>
377 <option name=
"WX_LIB_FLAVOUR">
378 <default-value></default-value>
382 <default-value></default-value>
384 Name of your custom configuration. This affects directory
385 where object files are stored as well as the location of
386 compiled .lib files and setup.h under the lib/ toplevel directory.
390 <!-- unit tests support: -->
391 <option name=
"CPPUNIT_CFLAGS">
392 <default-value></default-value>
394 Compiler flags needed to compile test suite in tests directory. If you want
395 to run the tests, set it so that the compiler can find CppUnit headers.
399 <option name=
"CPPUNIT_LIBS">
400 <default-value></default-value>
402 Linker flags needed to link test suite in tests directory. If you want
403 to run the tests, include CppUnit library here.
408 <!-- ================================================================== -->
410 <!-- ================================================================== -->
412 <if cond=
"FORMAT=='autoconf'">
413 <option name=
"DEREZ"/>
414 <option name=
"TOOLKIT"/>
415 <option name=
"TOOLKIT_LOWERCASE"/>
416 <option name=
"TOOLKIT_VERSION"/>
417 <option name=
"TOOLCHAIN_NAME"/>
418 <option name=
"TOOLCHAIN_FULLNAME"/>
419 <option name=
"EXTRALIBS"/>
420 <option name=
"EXTRALIBS_XML"/>
421 <option name=
"EXTRALIBS_HTML"/>
422 <option name=
"EXTRALIBS_MEDIA"/>
423 <option name=
"EXTRALIBS_GUI"/>
424 <option name=
"EXTRALIBS_OPENGL"/>
425 <option name=
"EXTRALIBS_SDL"/>
426 <option name=
"CXXWARNINGS"/>
427 <option name=
"HOST_SUFFIX"/>
428 <option name=
"DYLIB_RPATH_INSTALL"/>
429 <option name=
"DYLIB_RPATH_POSTLINK"/>
430 <option name=
"SAMPLES_RPATH_FLAG"/>
432 <!-- see configure.in; it's required by some samples on Mac OS X -->
433 <option name=
"HEADER_PAD_OPTION"/>
435 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
436 <set var=
"RUNTIME_LIBS">dynamic
</set>
437 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
439 <option name=
"WITH_PLUGIN_SDL">
443 <option name=
"wx_top_builddir"/>
447 <!-- ================================================================== -->
448 <!-- windows/dos/os2 compilers -->
449 <!-- ================================================================== -->
451 <if cond=
"FORMAT!='autoconf'">
452 <option name=
"RUNTIME_LIBS">
453 <values>dynamic,static
</values>
454 <default-value>dynamic
</default-value>
456 Version of C runtime library to use. You can change this to
457 static if SHARED=
0, but it is highly recommended to not do
458 it if SHARED=
1 unless you know what you are doing.
462 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
464 <set var=
"WIN32_TOOLKIT">
465 <if cond=
"TOOLKIT=='MSW'">MSW
</if>
466 <if cond=
"TOOLKIT=='GTK'">GTK
</if>
468 <set var=
"WIN32_TOOLKIT_LOWERCASE">
469 <if cond=
"TOOLKIT=='MSW'">msw
</if>
470 <if cond=
"TOOLKIT=='GTK'">gtk
</if>
473 <set var=
"TOOLKIT" overwrite=
"0">
474 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
475 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
476 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
477 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
478 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)
</if>
479 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT)
</if>
480 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
482 <set var=
"TOOLKIT_LOWERCASE">
483 <if cond=
"FORMAT=='msevc4prj'">wince
</if>
484 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
485 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">wince
</if>
486 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
487 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
488 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT_LOWERCASE)
</if>
489 <if cond=
"PLATFORM_OS2=='1'">pm
</if>
491 <if cond=
"FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
492 <set var=
"TOOLKIT_VERSION">
493 <if cond=
"PLATFORM_WIN32=='1' and TOOLKIT=='GTK'">2</if>
496 <set var=
"HOST_SUFFIX"/>
497 <set var=
"EXTRACFLAGS"/>
498 <set var=
"EXTRALIBS"/>
499 <set var=
"EXTRALIBS_XML"/>
500 <set var=
"EXTRALIBS_HTML"/>
501 <set var=
"EXTRALIBS_MEDIA"/>
502 <set var=
"EXTRALIBS_GUI"/>
503 <set var=
"EXTRALIBS_OPENGL">
504 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
505 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
506 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
508 <set var=
"EXTRALIBS_SDL"/>
509 <set var=
"EXTRALIBS_GNOMEPRINT"/>
511 <set var=
"WITH_PLUGIN_SDL">0</set>
513 <if cond=
"BUILDING_LIB=='1'">
514 <set-srcdir>../..
</set-srcdir>
516 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
519 <if cond=
"FORMAT=='mingw'">
520 <option name=
"GCC_VERSION">
521 <values>3,
2.95</values>
522 <default-value>3</default-value>
524 Set the version of your Mingw installation here.
525 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
526 "
2.95" ... for Mingw
1.1 or any of the older versions
530 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
532 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
536 <!-- ================================================================== -->
537 <!-- Project files - hardcode some defaults -->
538 <!-- ================================================================== -->
540 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
541 <set var=
"RUNTIME_LIBS">dynamic
</set>
542 <set var=
"OFFICIAL_BUILD">0</set>
543 <set var=
"USE_AUI">1</set>
544 <set var=
"USE_RIBBON">1</set>
545 <set var=
"USE_PROPGRID">1</set>
546 <set var=
"USE_RICHTEXT">1</set>
547 <set var=
"USE_STC">1</set>
548 <set var=
"USE_HTML">1</set>
549 <set var=
"USE_WEBVIEW">1</set>
550 <set var=
"USE_MEDIA">1</set>
551 <set var=
"USE_XRC">1</set>
552 <set var=
"USE_OPENGL">1</set>
553 <set var=
"USE_QA">1</set>
554 <set var=
"MONOLITHIC">0</set>
555 <set var=
"USE_GUI">1</set>
556 <set var=
"USE_EXCEPTIONS">1</set>
557 <set var=
"USE_RTTI">1</set>
558 <set var=
"USE_THREADS">1</set>
559 <set var=
"USE_CAIRO">0</set>
560 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
561 <set var=
"DEBUG_FLAG">default
</set>
562 <set var=
"MSLU">0</set>
566 <!-- DigitalMars make is braindead, it doesn't have conditional
568 <if cond=
"FORMAT=='dmars'">
569 <set var=
"RUNTIME_LIBS">static
</set>
570 <set var=
"BUILD">debug
</set>
571 <set var=
"SHARED">0</set>
572 <set var=
"WXUNIV">0</set>
573 <set var=
"UNICODE">1</set>
574 <!-- Free version does not distribute OpenGL,
575 in commercial distribution better use dmars_smake format -->
576 <set var=
"USE_OPENGL">0</set>
579 <!-- No need for wxUniv on embedded devices (yet): -->
580 <if cond=
"FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
581 <set var=
"WXUNIV">0</set>
582 <!-- Uploading debug reports from PDAs seems impractical -->
583 <set var=
"USE_QA">0</set>
584 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
585 <set var=
"USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
586 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
587 <if cond=
"FORMAT=='msevc4prj'">
588 <set var=
"USE_RTTI">0</set>
589 <set var=
"USE_EXCEPTIONS">0</set>