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 <values>AMD64,IA64
</values>
83 <default-value>$(DOLLAR)(CPU)
</default-value>
85 The target processor architecture must be specified when it is not X86.
86 This does not affect the compiler output, so you still need to make sure
87 your environment is set up appropriately with the correct compiler in the
88 PATH. Rather it affects some options passed to some of the common build
89 utilities such as the resource compiler and the linker.
93 <if cond=
"FORMAT!='msvc'">
94 <set var=
"TARGET_CPU"/>
97 <!-- FIXME: restore this once bakefile is fixed to not use
98 /Gm /GZ (incompatible with /O2) w/ debug-info -->
99 <set var=
"DEBUG_INFO_DEFAULT">
100 <if cond=
"FORMAT in ['msvc','msvc6prj','msevc4prj']">1</if>
101 <if cond=
"FORMAT not in ['msvc','msvc6prj','msevc4prj']">default
</if>
104 <set var=
"DEBUG_INFO_DEFAULT">default
</set>
106 <option name=
"DEBUG_INFO">
107 <values>0,
1,default
</values>
108 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
110 Should debugging info be included in the executables? The default value
111 "default" means that debug info will be included if BUILD=debug
112 and not included if BUILD=release.
116 <option name=
"DEBUG_FLAG">
117 <values>0,
1,default
</values>
118 <default-value>default
</default-value>
120 Should __WXDEBUG__ be defined? The default value "default" means that it will
121 be defined if BUILD=debug and not defined if BUILD=release.
125 <if cond=
"FORMAT=='msvc'">
126 <option name=
"DEBUG_RUNTIME_LIBS">
127 <values>0,
1,default
</values>
128 <default-value>default
</default-value>
130 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
131 Acts according to BUILD by default.
135 <if cond=
"FORMAT!='msvc'">
136 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
139 <set var=
"MONOLITHIC_DEFAULT">
140 <if cond=
"FORMAT=='watcom'">1</if>
141 <if cond=
"FORMAT!='watcom'">0</if>
143 <option name=
"MONOLITHIC">
145 <values-description>Multilib,Monolithic
</values-description>
146 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
148 Multiple libraries or single huge monolithic one?
152 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
153 <option name=
"USE_PLUGINS">
155 <default-value>1</default-value>
157 Build parts of the library as dynamically loadable plugins
158 (only supported in multilib build)?
162 <if cond=
"FORMAT!='autoconf'">
163 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
166 <option name=
"USE_GUI">
168 <values-description>Base,GUI
</values-description>
169 <default-value>1</default-value>
175 <option name=
"USE_HTML">
177 <default-value>1</default-value>
179 Build wxHTML library (USE_GUI must be
1)?
183 <option name=
"USE_XRC">
185 <default-value>1</default-value>
187 Build wxXRC library (USE_GUI must be
1)?
191 <option name=
"USE_OPENGL">
193 <default-value>0</default-value>
195 Build OpenGL canvas library (USE_GUI must be
1)?
199 <option name=
"USE_ODBC">
201 <default-value>0</default-value>
203 Build ODBC database classes (USE_GUI must be
1)?
207 <option name=
"USE_QA">
209 <default-value>0</default-value>
211 Build quality assurance classes library (USE_GUI must be
1)?
215 <option name=
"USE_EXCEPTIONS">
217 <default-value>1</default-value>
219 Enable exceptions in compiled code.
223 <option name=
"USE_RTTI">
225 <default-value>1</default-value>
227 Enable run-time type information (RTTI) in compiled code.
231 <option name=
"USE_THREADS">
233 <default-value>1</default-value>
235 Enable threading in compiled code.
239 <option name=
"OFFICIAL_BUILD">
241 <default-value>0</default-value>
243 Is this official build by wxWidgets developers?
246 <option name=
"VENDOR">
247 <default-value>custom
</default-value>
249 Use this to name your customized DLLs differently
252 <!-- These basically do what vendor does in the places it didn't. -->
253 <!-- They should all be unified under some suitable descriptor -->
254 <option name=
"WX_FLAVOUR">
255 <default-value></default-value>
257 <option name=
"WX_LIB_FLAVOUR">
258 <default-value></default-value>
262 <default-value></default-value>
264 Name of your custom configuration. This affects directory
265 where object files are stored as well as the location of
266 compiled .lib files and setup.h under the lib/ toplevel directory.
270 <!-- unit tests support: -->
271 <option name=
"CPPUNIT_CFLAGS">
272 <default-value></default-value>
274 Compiler flags needed to compile test suite in tests directory. If you want
275 to run the tests, set it so that the compiler can find CppUnit headers.
279 <option name=
"CPPUNIT_LIBS">
280 <default-value></default-value>
282 Linker flags needed to link test suite in tests directory. If you want
283 to run the tests, include CppUnit library here.
288 <!-- ================================================================== -->
290 <!-- ================================================================== -->
292 <if cond=
"FORMAT=='autoconf'">
294 <option name=
"DEREZ"/>
295 <option name=
"TOOLKIT"/>
296 <option name=
"TOOLKIT_LOWERCASE"/>
297 <option name=
"TOOLKIT_VERSION"/>
298 <option name=
"TOOLCHAIN_NAME"/>
299 <option name=
"TOOLCHAIN_FULLNAME"/>
300 <option name=
"EXTRALIBS"/>
301 <option name=
"EXTRALIBS_XML"/>
302 <option name=
"EXTRALIBS_HTML"/>
303 <option name=
"EXTRALIBS_ODBC"/>
304 <option name=
"EXTRALIBS_GUI"/>
305 <option name=
"EXTRALIBS_OPENGL"/>
306 <option name=
"EXTRALIBS_SDL"/>
307 <option name=
"EXTRALIBS_GNOMEPRINT"/>
308 <option name=
"HOST_SUFFIX"/>
309 <option name=
"SAMPLES_RPATH_FLAG"/>
310 <option name=
"SAMPLES_RPATH_POSTLINK"/>
312 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
313 <set var=
"RUNTIME_LIBS">dynamic
</set>
314 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
316 <option name=
"WITH_PLUGIN_SDL">
322 <!-- ================================================================== -->
323 <!-- windows/dos/os2 compilers -->
324 <!-- ================================================================== -->
326 <if cond=
"FORMAT!='autoconf'">
327 <option name=
"RUNTIME_LIBS">
328 <values>dynamic,static
</values>
329 <default-value>dynamic
</default-value>
331 Version of C runtime library to use. You can change this to
332 static if SHARED=
0, but it is highly recommended to not do
333 it if SHARED=
1 unless you know what you are doing.
337 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
339 <set var=
"TOOLKIT" overwrite=
"0">
340 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
341 <if cond=
"FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW
</if>
342 <if cond=
"PLATFORM_MSDOS=='1'">MGL
</if>
343 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
345 <set var=
"TOOLKIT_LOWERCASE">$(TOOLKIT.lower())
</set>
346 <set var=
"TOOLKIT_VERSION"/>
347 <set var=
"HOST_SUFFIX"/>
348 <set var=
"EXTRACFLAGS"/>
349 <set var=
"EXTRALIBS"/>
350 <set var=
"EXTRALIBS_XML"/>
351 <set var=
"EXTRALIBS_HTML"/>
352 <set var=
"EXTRALIBS_ODBC"/>
353 <set var=
"EXTRALIBS_GUI"/>
354 <set var=
"EXTRALIBS_OPENGL">
355 <if cond=
"COMPILER=='wat'">opengl32.lib glu32.lib
</if>
356 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
357 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
359 <set var=
"EXTRALIBS_SDL"/>
360 <set var=
"EXTRALIBS_GNOMEPRINT"/>
362 <set var=
"WITH_PLUGIN_SDL">0</set>
365 <if cond=
"BUILDING_LIB=='1'">..$(DIRSEP)..
</if>
366 <if cond=
"BUILDING_LIB=='0'">.
</if>
368 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
371 <if cond=
"FORMAT=='mingw'">
372 <option name=
"GCC_VERSION">
373 <values>3,
2.95</values>
374 <default-value>3</default-value>
376 Set the version of your Mingw installation here.
377 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
378 "
2.95" ... for Mingw
1.1 or any of the older versions
382 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
384 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
387 <if cond=
"FORMAT=='cbuilderx'">
388 <set var=
"EXTRACFLAGS">
389 <if cond=
"COMPILER=='gcc'">-DHAVE_W32API_H
</if>
394 <!-- ================================================================== -->
395 <!-- Project files - hardcode some defaults -->
396 <!-- ================================================================== -->
398 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
399 <set var=
"RUNTIME_LIBS">dynamic
</set>
400 <set var=
"OFFICIAL_BUILD">0</set>
401 <set var=
"USE_HTML">1</set>
402 <set var=
"USE_XRC">1</set>
403 <set var=
"USE_OPENGL">1</set>
404 <set var=
"USE_ODBC">1</set>
405 <set var=
"USE_QA">1</set>
406 <set var=
"MONOLITHIC">0</set>
407 <set var=
"USE_GUI">1</set>
408 <set var=
"USE_EXCEPTIONS">1</set>
409 <set var=
"USE_RTTI">1</set>
410 <set var=
"USE_THREADS">1</set>
411 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
412 <set var=
"DEBUG_FLAG">default
</set>
413 <set var=
"MSLU">0</set>
418 C++BuilderX supports only wxMSW, monolithic (sic!) static build
419 and the project can't be put into build/msw and store objects in
420 build/msw/something. This *must* be fixed! -->
421 <if cond=
"FORMAT=='cbuilderx'">
422 <set var=
"WXUNIV">0</set>
423 <set var=
"MONOLITHIC">1</set>
424 <set var=
"SRCDIR">.
</set>
425 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
426 <set var=
"SHARED">0</set>
430 <!-- DigitalMars make is braindead, it doesn't have conditional
432 <if cond=
"FORMAT=='dmars'">
433 <set var=
"RUNTIME_LIBS">static
</set>
434 <set var=
"BUILD">debug
</set>
435 <set var=
"SHARED">0</set>
436 <set var=
"WXUNIV">0</set>
437 <set var=
"UNICODE">0</set>
438 <!-- Free version does not distribute OpenGL,
439 in commercial distribution better use dmars_smake format -->
440 <set var=
"USE_OPENGL">0</set>
443 <!-- No need for wxUniv on embedded devices (yet): -->
444 <if cond=
"FORMAT=='msevc4prj'">
445 <set var=
"WXUNIV">0</set>
446 <set var=
"UNICODE">1</set>
447 <!-- Uploading debug reports from PDAs seems impractical -->
448 <set var=
"USE_QA">0</set>
449 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
450 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
451 <set var=
"USE_RTTI">0</set>
452 <set var=
"USE_EXCEPTIONS">0</set>
455 <!-- Need for wxUniv within wxMGL: -->
456 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MGL'">
457 <set var=
"WXUNIV">1</set>