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 <option name=
"WXUNIV">
50 <values-description>,Universal
</values-description>
51 <default-value>0</default-value>
53 Build wxUniversal instead of native port?
57 <!-- don't include ANSI configuration in project files, it's going to be
58 eventually removed anyway and it only doubles the number of build
59 configs in projects: -->
60 <if cond=
"IS_MSVC_PRJ=='1'">
61 <set var=
"UNICODE">1</set>
63 <if cond=
"IS_MSVC_PRJ=='0'">
64 <option name=
"UNICODE">
66 <values-description>,Unicode
</values-description>
67 <default-value>1</default-value>
69 Compile Unicode build of wxWidgets?
74 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
77 <default-value>0</default-value>
79 Use MSLU library when building Unicode version.
83 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
84 <set var=
"MSLU">0</set>
88 <values>debug,release
</values>
89 <values-description>Debug,Release
</values-description>
90 <default-value>debug
</default-value>
92 Type of compiled binaries
96 <if cond=
"FORMAT=='msvc'">
97 <option name=
"TARGET_CPU">
98 <default-value>$(DOLLAR)(CPU)
</default-value>
100 The target processor architecture must be specified when it is not X86.
101 This does not affect the compiler output, so you still need to make sure
102 your environment is set up appropriately with the correct compiler in the
103 PATH. Rather it affects some options passed to some of the common build
104 utilities such as the resource compiler and the linker.
106 Accepted values: AMD64, IA64.
110 <if cond=
"FORMAT!='msvc'">
111 <set var=
"TARGET_CPU"/>
115 For MSVC enable debug information in all builds: it is needed to be
116 able to debug the crash dumps produced by wxDebugReport and as it
117 generates it in separate PDB files it doesn't cost us much to enable it
118 (except for disk space...).
120 <set var=
"DEBUG_INFO_DEFAULT">
121 <if cond=
"IS_MSVC=='1'">1</if>
122 <if cond=
"IS_MSVC=='0'">default
</if>
125 <option name=
"DEBUG_INFO">
126 <values>0,
1,default
</values>
127 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
129 Should debugging info be included in the executables? The default value
130 "default" means that debug info will be included if BUILD=debug
131 and not included if BUILD=release.
135 <option name=
"DEBUG_FLAG">
136 <values>0,
1,default
</values>
137 <default-value>1</default-value>
139 Value of wxDEBUG_LEVEL. The default value is the same as
1 and means that all
140 but expensive assert checks are enabled, use
0 to completely remove debugging
145 <if cond=
"FORMAT=='msvc'">
146 <option name=
"DEBUG_RUNTIME_LIBS">
147 <values>0,
1,default
</values>
148 <default-value>default
</default-value>
150 Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
151 Default is to use debug CRT if and only if BUILD==debug.
155 <if cond=
"FORMAT!='msvc'">
156 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
159 <set var=
"MONOLITHIC_DEFAULT">
160 <if cond=
"FORMAT=='watcom'">1</if>
161 <if cond=
"FORMAT!='watcom'">0</if>
163 <option name=
"MONOLITHIC">
165 <values-description>Multilib,Monolithic
</values-description>
166 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
168 Multiple libraries or single huge monolithic one?
172 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
173 <option name=
"USE_PLUGINS">
175 <default-value>1</default-value>
177 Build parts of the library as dynamically loadable plugins
178 (only supported in multilib build)?
182 <if cond=
"FORMAT!='autoconf'">
183 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
186 <option name=
"USE_GUI">
188 <values-description>Base,GUI
</values-description>
189 <default-value>1</default-value>
195 <option name=
"USE_HTML">
197 <default-value>1</default-value>
199 Build wxHTML library (USE_GUI must be
1)?
203 <option name=
"USE_WEBVIEW">
205 <default-value>1</default-value>
207 Build wxWebView library (USE_GUI must be
1)?
211 <option name=
"USE_MEDIA">
213 <default-value>1</default-value>
215 Build multimedia library (USE_GUI must be
1)?
219 <option name=
"USE_XRC">
221 <default-value>1</default-value>
223 Build wxXRC library (USE_GUI must be
1)?
227 <option name=
"USE_AUI">
229 <default-value>1</default-value>
231 Build wxAUI library (USE_GUI must be
1)?
235 <option name=
"USE_RIBBON">
237 <default-value>1</default-value>
239 Build wxRibbon library (USE_GUI must be
1)?
243 <option name=
"USE_PROPGRID">
245 <default-value>1</default-value>
247 Build wxPropertyGrid library (USE_GUI must be
1)?
251 <option name=
"USE_RICHTEXT">
253 <default-value>1</default-value>
255 Build wxRichTextCtrl library (USE_GUI must be
1)?
259 <option name=
"USE_STC">
261 <default-value>1</default-value>
263 Build wxStyledTextCtrl library (USE_GUI must be
1)?
267 <option name=
"USE_OPENGL">
269 <default-value>1</default-value>
271 Build OpenGL canvas library (USE_GUI must be
1)?
275 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
276 <set var=
"USE_QA_DEFAULT">
277 <if cond=
"FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
278 <if cond=
"FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
280 <option name=
"USE_QA">
282 <default-value>$(USE_QA_DEFAULT)
</default-value>
284 Build quality assurance classes library (USE_GUI must be
1)?
288 <option name=
"USE_EXCEPTIONS">
290 <default-value>1</default-value>
292 Enable exceptions in compiled code.
296 <option name=
"USE_RTTI">
298 <default-value>1</default-value>
300 Enable run-time type information (RTTI) in compiled code.
304 <option name=
"USE_THREADS">
306 <default-value>1</default-value>
308 Enable threading in compiled code.
312 <option name=
"USE_CAIRO">
314 <default-value>0</default-value>
316 Enable wxCairoContext for platforms other than Linux/GTK.
320 <option name=
"OFFICIAL_BUILD">
322 <default-value>0</default-value>
324 Is this official build by wxWidgets developers?
327 <option name=
"VENDOR">
328 <default-value>custom
</default-value>
330 Use this to name your customized DLLs differently
333 <!-- These basically do what vendor does in the places it didn't. -->
334 <!-- They should all be unified under some suitable descriptor -->
335 <option name=
"WX_FLAVOUR">
336 <default-value></default-value>
338 <option name=
"WX_LIB_FLAVOUR">
339 <default-value></default-value>
343 <default-value></default-value>
345 Name of your custom configuration. This affects directory
346 where object files are stored as well as the location of
347 compiled .lib files and setup.h under the lib/ toplevel directory.
351 <!-- unit tests support: -->
352 <option name=
"CPPUNIT_CFLAGS">
353 <default-value></default-value>
355 Compiler flags needed to compile test suite in tests directory. If you want
356 to run the tests, set it so that the compiler can find CppUnit headers.
360 <option name=
"CPPUNIT_LIBS">
361 <default-value></default-value>
363 Linker flags needed to link test suite in tests directory. If you want
364 to run the tests, include CppUnit library here.
369 <!-- ================================================================== -->
371 <!-- ================================================================== -->
373 <if cond=
"FORMAT=='autoconf'">
374 <option name=
"DEREZ"/>
375 <option name=
"TOOLKIT"/>
376 <option name=
"TOOLKIT_LOWERCASE"/>
377 <option name=
"TOOLKIT_VERSION"/>
378 <option name=
"TOOLCHAIN_NAME"/>
379 <option name=
"TOOLCHAIN_FULLNAME"/>
380 <option name=
"EXTRALIBS"/>
381 <option name=
"EXTRALIBS_XML"/>
382 <option name=
"EXTRALIBS_HTML"/>
383 <option name=
"EXTRALIBS_MEDIA"/>
384 <option name=
"EXTRALIBS_GUI"/>
385 <option name=
"EXTRALIBS_OPENGL"/>
386 <option name=
"EXTRALIBS_SDL"/>
387 <option name=
"EXTRALIBS_GNOMEPRINT"/>
388 <option name=
"CXXWARNINGS"/>
389 <option name=
"HOST_SUFFIX"/>
390 <option name=
"DYLIB_RPATH_INSTALL"/>
391 <option name=
"DYLIB_RPATH_POSTLINK"/>
392 <option name=
"SAMPLES_RPATH_FLAG"/>
394 <!-- see configure.in; it's required by some samples on Mac OS X -->
395 <option name=
"HEADER_PAD_OPTION"/>
397 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
398 <set var=
"RUNTIME_LIBS">dynamic
</set>
399 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
401 <option name=
"WITH_PLUGIN_SDL">
405 <option name=
"wx_top_builddir"/>
409 <!-- ================================================================== -->
410 <!-- windows/dos/os2 compilers -->
411 <!-- ================================================================== -->
413 <if cond=
"FORMAT!='autoconf'">
414 <option name=
"RUNTIME_LIBS">
415 <values>dynamic,static
</values>
416 <default-value>dynamic
</default-value>
418 Version of C runtime library to use. You can change this to
419 static if SHARED=
0, but it is highly recommended to not do
420 it if SHARED=
1 unless you know what you are doing.
424 <set var=
"WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
426 <set var=
"TOOLKIT" overwrite=
"0">
427 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
428 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
429 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
430 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">MSW
</if>
431 <if cond=
"FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">MSW
</if>
432 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">MSW
</if>
433 <if cond=
"PLATFORM_MSDOS=='1'">MGL
</if>
434 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
436 <set var=
"TOOLKIT_LOWERCASE">$(TOOLKIT.lower())
</set>
437 <set var=
"TOOLKIT_VERSION"/>
438 <set var=
"HOST_SUFFIX"/>
439 <set var=
"EXTRACFLAGS"/>
440 <set var=
"EXTRALIBS"/>
441 <set var=
"EXTRALIBS_XML"/>
442 <set var=
"EXTRALIBS_HTML"/>
443 <set var=
"EXTRALIBS_MEDIA"/>
444 <set var=
"EXTRALIBS_GUI"/>
445 <set var=
"EXTRALIBS_OPENGL">
446 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
447 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
448 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
450 <set var=
"EXTRALIBS_SDL"/>
451 <set var=
"EXTRALIBS_GNOMEPRINT"/>
453 <set var=
"WITH_PLUGIN_SDL">0</set>
455 <if cond=
"BUILDING_LIB=='1'">
456 <set-srcdir>../..
</set-srcdir>
458 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
461 <if cond=
"FORMAT=='mingw'">
462 <option name=
"GCC_VERSION">
463 <values>3,
2.95</values>
464 <default-value>3</default-value>
466 Set the version of your Mingw installation here.
467 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
468 "
2.95" ... for Mingw
1.1 or any of the older versions
472 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
474 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
478 <!-- ================================================================== -->
479 <!-- Project files - hardcode some defaults -->
480 <!-- ================================================================== -->
482 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
483 <set var=
"RUNTIME_LIBS">dynamic
</set>
484 <set var=
"OFFICIAL_BUILD">0</set>
485 <set var=
"USE_AUI">1</set>
486 <set var=
"USE_RIBBON">1</set>
487 <set var=
"USE_PROPGRID">1</set>
488 <set var=
"USE_RICHTEXT">1</set>
489 <set var=
"USE_STC">1</set>
490 <set var=
"USE_HTML">1</set>
491 <set var=
"USE_WEBVIEW">1</set>
492 <set var=
"USE_MEDIA">1</set>
493 <set var=
"USE_XRC">1</set>
494 <set var=
"USE_OPENGL">1</set>
495 <set var=
"USE_QA">1</set>
496 <set var=
"MONOLITHIC">0</set>
497 <set var=
"USE_GUI">1</set>
498 <set var=
"USE_EXCEPTIONS">1</set>
499 <set var=
"USE_RTTI">1</set>
500 <set var=
"USE_THREADS">1</set>
501 <set var=
"USE_CAIRO">0</set>
502 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
503 <set var=
"DEBUG_FLAG">default
</set>
504 <set var=
"MSLU">0</set>
508 <!-- DigitalMars make is braindead, it doesn't have conditional
510 <if cond=
"FORMAT=='dmars'">
511 <set var=
"RUNTIME_LIBS">static
</set>
512 <set var=
"BUILD">debug
</set>
513 <set var=
"SHARED">0</set>
514 <set var=
"WXUNIV">0</set>
515 <set var=
"UNICODE">1</set>
516 <!-- Free version does not distribute OpenGL,
517 in commercial distribution better use dmars_smake format -->
518 <set var=
"USE_OPENGL">0</set>
521 <!-- No need for wxUniv on embedded devices (yet): -->
522 <if cond=
"FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
523 <set var=
"WXUNIV">0</set>
524 <!-- Uploading debug reports from PDAs seems impractical -->
525 <set var=
"USE_QA">0</set>
526 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
527 <set var=
"USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
528 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
529 <if cond=
"FORMAT=='msevc4prj'">
530 <set var=
"USE_RTTI">0</set>
531 <set var=
"USE_EXCEPTIONS">0</set>
535 <!-- Need for wxUniv within wxMGL: -->
536 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MGL'">
537 <set var=
"WXUNIV">1</set>
538 <set var=
"USE_THREADS">0</set>
539 <set var=
"RUNTIME_LIBS">static
</set>