6 <set var=
"BUILDING_LIB" overwrite=
"0">0</set>
8 <set var=
"CPP_DEFAULT_VALUE">
9 <if cond=
"FORMAT=='borland'">
12 <if cond=
"FORMAT=='mingw'">
15 <if cond=
"FORMAT=='msvc'">
16 $(DOLLAR)(CC) /EP /nologo
18 <if cond=
"FORMAT=='watcom'">
31 <option name=
"SHARED">
33 <values-description>,DLL
</values-description>
34 <default-value>0</default-value>
36 What type of library to build?
40 <option name=
"WXUNIV">
42 <values-description>,Universal
</values-description>
43 <default-value>0</default-value>
45 Build wxUniversal instead of native port?
49 <option name=
"UNICODE">
51 <values-description>,Unicode
</values-description>
52 <default-value>0</default-value>
54 Compile Unicode build of wxWidgets?
58 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
61 <default-value>0</default-value>
63 Use MSLU library when building Unicode version.
67 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
68 <set var=
"MSLU">0</set>
72 <values>debug,release
</values>
73 <values-description>Debug,Release
</values-description>
74 <default-value>debug
</default-value>
76 Type of compiled binaries
80 <if cond=
"FORMAT=='msvc'">
81 <option name=
"TARGET_CPU">
82 <default-value>$(DOLLAR)(CPU)
</default-value>
84 The target processor architecture must be specified when it is not X86.
85 This does not affect the compiler output, so you still need to make sure
86 your environment is set up appropriately with the correct compiler in the
87 PATH. Rather it affects some options passed to some of the common build
88 utilities such as the resource compiler and the linker.
90 Accepted values: AMD64, IA64.
94 <if cond=
"FORMAT!='msvc'">
95 <set var=
"TARGET_CPU"/>
98 <!-- FIXME: restore this once bakefile is fixed to not use
99 /Gm /GZ (incompatible with /O2) w/ debug-info -->
100 <set var=
"DEBUG_INFO_DEFAULT">
101 <if cond=
"FORMAT in ['msvc','msvc6prj','msevc4prj']">1</if>
102 <if cond=
"FORMAT not in ['msvc','msvc6prj','msevc4prj']">default
</if>
105 <set var=
"DEBUG_INFO_DEFAULT">default
</set>
107 <option name=
"DEBUG_INFO">
108 <values>0,
1,default
</values>
109 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
111 Should debugging info be included in the executables? The default value
112 "default" means that debug info will be included if BUILD=debug
113 and not included if BUILD=release.
117 <option name=
"DEBUG_FLAG">
118 <values>0,
1,default
</values>
119 <default-value>default
</default-value>
121 Should __WXDEBUG__ be defined? The default value "default" means that it will
122 be defined if BUILD=debug and not defined if BUILD=release.
126 <if cond=
"FORMAT=='msvc'">
127 <option name=
"DEBUG_RUNTIME_LIBS">
128 <values>0,
1,default
</values>
129 <default-value>default
</default-value>
131 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
132 Acts according to BUILD by default.
136 <if cond=
"FORMAT!='msvc'">
137 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
140 <set var=
"MONOLITHIC_DEFAULT">
141 <if cond=
"FORMAT=='watcom'">1</if>
142 <if cond=
"FORMAT!='watcom'">0</if>
144 <option name=
"MONOLITHIC">
146 <values-description>Multilib,Monolithic
</values-description>
147 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
149 Multiple libraries or single huge monolithic one?
153 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
154 <option name=
"USE_PLUGINS">
156 <default-value>1</default-value>
158 Build parts of the library as dynamically loadable plugins
159 (only supported in multilib build)?
163 <if cond=
"FORMAT!='autoconf'">
164 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
167 <option name=
"USE_GUI">
169 <values-description>Base,GUI
</values-description>
170 <default-value>1</default-value>
176 <option name=
"USE_HTML">
178 <default-value>1</default-value>
180 Build wxHTML library (USE_GUI must be
1)?
184 <option name=
"USE_MEDIA">
186 <default-value>1</default-value>
188 Build multimedia library (USE_GUI must be
1)?
192 <option name=
"USE_XRC">
194 <default-value>1</default-value>
196 Build wxXRC library (USE_GUI must be
1)?
200 <option name=
"USE_AUI">
202 <default-value>1</default-value>
204 Build wxAUI library (USE_GUI must be
1)?
208 <option name=
"USE_RICHTEXT">
210 <default-value>1</default-value>
212 Build wxRichTextCtrl library (USE_GUI must be
1)?
216 <option name=
"USE_OPENGL">
218 <default-value>0</default-value>
220 Build OpenGL canvas library (USE_GUI must be
1)?
224 <option name=
"USE_ODBC">
226 <default-value>0</default-value>
228 Build ODBC database classes (USE_GUI must be
1)?
232 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
233 <set var=
"USE_QA_DEFAULT">
234 <if cond=
"FORMAT in ['msvc','msvc6prj']">1</if>
235 <if cond=
"FORMAT not in ['msvc','msvc6prj']">0</if>
237 <option name=
"USE_QA">
239 <default-value>$(USE_QA_DEFAULT)
</default-value>
241 Build quality assurance classes library (USE_GUI must be
1)?
245 <option name=
"USE_EXCEPTIONS">
247 <default-value>1</default-value>
249 Enable exceptions in compiled code.
253 <option name=
"USE_RTTI">
255 <default-value>1</default-value>
257 Enable run-time type information (RTTI) in compiled code.
261 <option name=
"USE_THREADS">
263 <default-value>1</default-value>
265 Enable threading in compiled code.
269 <option name=
"OFFICIAL_BUILD">
271 <default-value>0</default-value>
273 Is this official build by wxWidgets developers?
276 <option name=
"VENDOR">
277 <default-value>custom
</default-value>
279 Use this to name your customized DLLs differently
282 <!-- These basically do what vendor does in the places it didn't. -->
283 <!-- They should all be unified under some suitable descriptor -->
284 <option name=
"WX_FLAVOUR">
285 <default-value></default-value>
287 <option name=
"WX_LIB_FLAVOUR">
288 <default-value></default-value>
292 <default-value></default-value>
294 Name of your custom configuration. This affects directory
295 where object files are stored as well as the location of
296 compiled .lib files and setup.h under the lib/ toplevel directory.
300 <!-- unit tests support: -->
301 <option name=
"CPPUNIT_CFLAGS">
302 <default-value></default-value>
304 Compiler flags needed to compile test suite in tests directory. If you want
305 to run the tests, set it so that the compiler can find CppUnit headers.
309 <option name=
"CPPUNIT_LIBS">
310 <default-value></default-value>
312 Linker flags needed to link test suite in tests directory. If you want
313 to run the tests, include CppUnit library here.
318 <!-- ================================================================== -->
320 <!-- ================================================================== -->
322 <if cond=
"FORMAT=='autoconf'">
323 <option name=
"DEREZ"/>
324 <option name=
"TOOLKIT"/>
325 <option name=
"TOOLKIT_LOWERCASE"/>
326 <option name=
"TOOLKIT_VERSION"/>
327 <option name=
"TOOLCHAIN_NAME"/>
328 <option name=
"TOOLCHAIN_FULLNAME"/>
329 <option name=
"EXTRALIBS"/>
330 <option name=
"EXTRALIBS_XML"/>
331 <option name=
"EXTRALIBS_HTML"/>
332 <option name=
"EXTRALIBS_ODBC"/>
333 <option name=
"EXTRALIBS_GUI"/>
334 <option name=
"EXTRALIBS_OPENGL"/>
335 <option name=
"EXTRALIBS_SDL"/>
336 <option name=
"EXTRALIBS_GNOMEPRINT"/>
337 <option name=
"HOST_SUFFIX"/>
338 <option name=
"SAMPLES_RPATH_FLAG"/>
339 <option name=
"SAMPLES_RPATH_POSTLINK"/>
341 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
342 <set var=
"RUNTIME_LIBS">dynamic
</set>
343 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
345 <option name=
"WITH_PLUGIN_SDL">
351 <!-- ================================================================== -->
352 <!-- windows/dos/os2 compilers -->
353 <!-- ================================================================== -->
355 <if cond=
"FORMAT!='autoconf'">
356 <option name=
"RUNTIME_LIBS">
357 <values>dynamic,static
</values>
358 <default-value>dynamic
</default-value>
360 Version of C runtime library to use. You can change this to
361 static if SHARED=
0, but it is highly recommended to not do
362 it if SHARED=
1 unless you know what you are doing.
366 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
368 <set var=
"TOOLKIT" overwrite=
"0">
369 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
370 <if cond=
"FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW
</if>
371 <if cond=
"PLATFORM_MSDOS=='1'">MGL
</if>
372 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
374 <set var=
"TOOLKIT_LOWERCASE">$(TOOLKIT.lower())
</set>
375 <set var=
"TOOLKIT_VERSION"/>
376 <set var=
"HOST_SUFFIX"/>
377 <set var=
"EXTRACFLAGS"/>
378 <set var=
"EXTRALIBS"/>
379 <set var=
"EXTRALIBS_XML"/>
380 <set var=
"EXTRALIBS_HTML"/>
381 <set var=
"EXTRALIBS_ODBC"/>
382 <set var=
"EXTRALIBS_GUI"/>
383 <set var=
"EXTRALIBS_OPENGL">
384 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
385 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
386 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
388 <set var=
"EXTRALIBS_SDL"/>
389 <set var=
"EXTRALIBS_GNOMEPRINT"/>
391 <set var=
"WITH_PLUGIN_SDL">0</set>
394 <if cond=
"BUILDING_LIB=='1'">..$(DIRSEP)..
</if>
395 <if cond=
"BUILDING_LIB=='0'">.
</if>
397 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
400 <if cond=
"FORMAT=='mingw'">
401 <option name=
"GCC_VERSION">
402 <values>3,
2.95</values>
403 <default-value>3</default-value>
405 Set the version of your Mingw installation here.
406 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
407 "
2.95" ... for Mingw
1.1 or any of the older versions
411 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
413 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
416 <if cond=
"FORMAT=='cbuilderx'">
417 <set var=
"EXTRACFLAGS">
418 <if cond=
"COMPILER=='gcc'">-DHAVE_W32API_H
</if>
423 <!-- ================================================================== -->
424 <!-- Project files - hardcode some defaults -->
425 <!-- ================================================================== -->
427 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
428 <set var=
"RUNTIME_LIBS">dynamic
</set>
429 <set var=
"OFFICIAL_BUILD">0</set>
430 <set var=
"USE_AUI">1</set>
431 <set var=
"USE_RICHTEXT">1</set>
432 <set var=
"USE_HTML">1</set>
433 <set var=
"USE_MEDIA">1</set>
434 <set var=
"USE_XRC">1</set>
435 <set var=
"USE_OPENGL">1</set>
436 <set var=
"USE_ODBC">1</set>
437 <set var=
"USE_QA">1</set>
438 <set var=
"MONOLITHIC">0</set>
439 <set var=
"USE_GUI">1</set>
440 <set var=
"USE_EXCEPTIONS">1</set>
441 <set var=
"USE_RTTI">1</set>
442 <set var=
"USE_THREADS">1</set>
443 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
444 <set var=
"DEBUG_FLAG">default
</set>
445 <set var=
"MSLU">0</set>
450 C++BuilderX supports only wxMSW, monolithic (sic!) static build
451 and the project can't be put into build/msw and store objects in
452 build/msw/something. This *must* be fixed! -->
453 <if cond=
"FORMAT=='cbuilderx'">
454 <set var=
"WXUNIV">0</set>
455 <set var=
"MONOLITHIC">1</set>
456 <set var=
"SRCDIR">.
</set>
457 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
458 <set var=
"SHARED">0</set>
462 <!-- DigitalMars make is braindead, it doesn't have conditional
464 <if cond=
"FORMAT=='dmars'">
465 <set var=
"RUNTIME_LIBS">static
</set>
466 <set var=
"BUILD">debug
</set>
467 <set var=
"SHARED">0</set>
468 <set var=
"WXUNIV">0</set>
469 <set var=
"UNICODE">0</set>
470 <!-- Free version does not distribute OpenGL,
471 in commercial distribution better use dmars_smake format -->
472 <set var=
"USE_OPENGL">0</set>
475 <!-- No need for wxUniv on embedded devices (yet): -->
476 <if cond=
"FORMAT=='msevc4prj'">
477 <set var=
"WXUNIV">0</set>
478 <set var=
"UNICODE">1</set>
479 <!-- Uploading debug reports from PDAs seems impractical -->
480 <set var=
"USE_QA">0</set>
481 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
482 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
483 <set var=
"USE_RTTI">0</set>
484 <set var=
"USE_EXCEPTIONS">0</set>
487 <!-- Need for wxUniv within wxMGL: -->
488 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MGL'">
489 <set var=
"WXUNIV">1</set>
490 <set var=
"USE_THREADS">0</set>
491 <set var=
"RUNTIME_LIBS">static
</set>