6 <set var=
"BUILDING_LIB" overwrite=
"0">0</set>
10 <values-description>,DLL
</values-description>
11 <default-value>0</default-value>
13 What type of library to build?
17 <option name=
"WXUNIV">
19 <values-description>,Universal
</values-description>
20 <default-value>0</default-value>
22 Build wxUniversal instead of native port?
26 <option name=
"UNICODE">
28 <values-description>,Unicode
</values-description>
29 <default-value>0</default-value>
31 Compile Unicode build of wxWidgets?
35 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
38 <default-value>0</default-value>
40 Use MSLU library when building Unicode version.
44 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
45 <set var=
"MSLU">0</set>
49 <values>debug,release
</values>
50 <values-description>Debug,Release
</values-description>
51 <default-value>debug
</default-value>
53 Type of compiled binaries
57 <if cond=
"FORMAT=='msvc'">
58 <option name=
"TARGET_CPU">
59 <values>AMD64,IA64
</values>
60 <default-value>$(DOLLAR)(CPU)
</default-value>
62 The target processor architecture must be specified when it is not X86.
63 This does not affect the compiler output, so you still need to make sure
64 your environment is set up appropriately with the correct compiler in the
65 PATH. Rather it affects some options passed to some of the common build
66 utilities such as the resource compiler and the linker.
70 <if cond=
"FORMAT!='msvc'">
71 <set var=
"TARGET_CPU"/>
74 <!-- FIXME: restore this once bakefile is fixed to not use
75 /Gm /GZ (incompatible with /O2) w/ debug-info -->
76 <set var=
"DEBUG_INFO_DEFAULT">
77 <if cond=
"FORMAT in ['msvc','msvc6prj','msevc4prj']">1</if>
78 <if cond=
"FORMAT not in ['msvc','msvc6prj','msevc4prj']">default
</if>
81 <set var=
"DEBUG_INFO_DEFAULT">default
</set>
83 <option name=
"DEBUG_INFO">
84 <values>0,
1,default
</values>
85 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
87 Should debugging info be included in the executables? The default value
88 "default" means that debug info will be included if BUILD=debug
89 and not included if BUILD=release.
93 <option name=
"DEBUG_FLAG">
94 <values>0,
1,default
</values>
95 <default-value>default
</default-value>
97 Should __WXDEBUG__ be defined? The default value "default" means that it will
98 be defined if BUILD=debug and not defined if BUILD=release.
102 <if cond=
"FORMAT=='msvc'">
103 <option name=
"DEBUG_RUNTIME_LIBS">
104 <values>0,
1,default
</values>
105 <default-value>default
</default-value>
107 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
108 Acts according to BUILD by default.
112 <if cond=
"FORMAT!='msvc'">
113 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
116 <set var=
"MONOLITHIC_DEFAULT">
117 <if cond=
"FORMAT=='watcom'">1</if>
118 <if cond=
"FORMAT!='watcom'">0</if>
120 <option name=
"MONOLITHIC">
122 <values-description>Multilib,Monolithic
</values-description>
123 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
125 Multiple libraries or single huge monolithic one?
129 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
130 <option name=
"USE_PLUGINS">
132 <default-value>1</default-value>
134 Build parts of the library as dynamically loadable plugins
135 (only supported in multilib build)?
139 <if cond=
"FORMAT!='autoconf'">
140 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
143 <option name=
"USE_GUI">
145 <values-description>Base,GUI
</values-description>
146 <default-value>1</default-value>
152 <option name=
"USE_HTML">
154 <default-value>1</default-value>
156 Build wxHTML library (USE_GUI must be
1)?
160 <option name=
"USE_XRC">
162 <default-value>1</default-value>
164 Build wxXRC library (USE_GUI must be
1)?
168 <option name=
"USE_OPENGL">
170 <default-value>0</default-value>
172 Build OpenGL canvas library (USE_GUI must be
1)?
176 <option name=
"USE_ODBC">
178 <default-value>0</default-value>
180 Build ODBC database classes (USE_GUI must be
1)?
184 <option name=
"USE_QA">
186 <default-value>0</default-value>
188 Build quality assurance classes library (USE_GUI must be
1)?
192 <option name=
"USE_EXCEPTIONS">
194 <default-value>1</default-value>
196 Enable exceptions in compiled code.
200 <option name=
"USE_RTTI">
202 <default-value>1</default-value>
204 Enable run-time type information (RTTI) in compiled code.
208 <option name=
"USE_THREADS">
210 <default-value>1</default-value>
212 Enable threading in compiled code.
216 <option name=
"OFFICIAL_BUILD">
218 <default-value>0</default-value>
220 Is this official build by wxWidgets developers?
223 <option name=
"VENDOR">
224 <default-value>custom
</default-value>
226 Use this to name your customized DLLs differently
229 <!-- These basically do what vendor does in the places it didn't. -->
230 <!-- They should all be unified under some suitable descriptor -->
231 <option name=
"WX_FLAVOUR">
232 <default-value></default-value>
234 <option name=
"WX_LIB_FLAVOUR">
235 <default-value></default-value>
239 <default-value></default-value>
241 Name of your custom configuration. This affects directory
242 where object files are stored as well as the location of
243 compiled .lib files and setup.h under the lib/ toplevel directory.
247 <!-- unit tests support: -->
248 <option name=
"CPPUNIT_CFLAGS">
249 <default-value></default-value>
251 Compiler flags needed to compile test suite in tests directory. If you want
252 to run the tests, set it so that the compiler can find CppUnit headers.
256 <option name=
"CPPUNIT_LIBS">
257 <default-value></default-value>
259 Linker flags needed to link test suite in tests directory. If you want
260 to run the tests, include CppUnit library here.
265 <!-- ================================================================== -->
267 <!-- ================================================================== -->
269 <if cond=
"FORMAT=='autoconf'">
270 <option name=
"DEREZ"/>
271 <option name=
"TOOLKIT"/>
272 <option name=
"TOOLKIT_LOWERCASE"/>
273 <option name=
"TOOLKIT_VERSION"/>
274 <option name=
"TOOLCHAIN_NAME"/>
275 <option name=
"TOOLCHAIN_FULLNAME"/>
276 <option name=
"EXTRALIBS"/>
277 <option name=
"EXTRALIBS_XML"/>
278 <option name=
"EXTRALIBS_HTML"/>
279 <option name=
"EXTRALIBS_ODBC"/>
280 <option name=
"EXTRALIBS_GUI"/>
281 <option name=
"EXTRALIBS_OPENGL"/>
282 <option name=
"EXTRALIBS_SDL"/>
283 <option name=
"EXTRALIBS_GNOMEPRINT"/>
284 <option name=
"HOST_SUFFIX"/>
285 <option name=
"SAMPLES_RPATH_FLAG"/>
286 <option name=
"SAMPLES_RPATH_POSTLINK"/>
288 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
289 <set var=
"RUNTIME_LIBS">dynamic
</set>
290 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
292 <option name=
"WITH_PLUGIN_SDL">
298 <!-- ================================================================== -->
299 <!-- windows/dos/os2 compilers -->
300 <!-- ================================================================== -->
302 <if cond=
"FORMAT!='autoconf'">
303 <option name=
"RUNTIME_LIBS">
304 <values>dynamic,static
</values>
305 <default-value>dynamic
</default-value>
307 Version of C runtime library to use. You can change this to
308 static if SHARED=
0, but it is highly recommended to not do
309 it if SHARED=
1 unless you know what you are doing.
313 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
315 <set var=
"TOOLKIT" overwrite=
"0">
316 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
317 <if cond=
"FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW
</if>
318 <if cond=
"PLATFORM_MSDOS=='1'">DOS
</if>
319 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
321 <set var=
"TOOLKIT_LOWERCASE">$(TOOLKIT.lower())
</set>
322 <set var=
"TOOLKIT_VERSION"/>
323 <set var=
"HOST_SUFFIX"/>
324 <set var=
"EXTRACFLAGS"/>
325 <set var=
"EXTRALIBS"/>
326 <set var=
"EXTRALIBS_XML"/>
327 <set var=
"EXTRALIBS_HTML"/>
328 <set var=
"EXTRALIBS_ODBC"/>
329 <set var=
"EXTRALIBS_GUI"/>
330 <set var=
"EXTRALIBS_OPENGL">
331 <if cond=
"COMPILER=='wat'">opengl32.lib glu32.lib
</if>
332 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
333 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
335 <set var=
"EXTRALIBS_SDL"/>
336 <set var=
"EXTRALIBS_GNOMEPRINT"/>
338 <set var=
"WITH_PLUGIN_SDL">0</set>
341 <if cond=
"BUILDING_LIB=='1'">..$(DIRSEP)..
</if>
342 <if cond=
"BUILDING_LIB=='0'">.
</if>
344 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
347 <if cond=
"FORMAT=='mingw'">
348 <option name=
"GCC_VERSION">
349 <values>3,
2.95</values>
350 <default-value>3</default-value>
352 Set the version of your Mingw installation here.
353 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
354 "
2.95" ... for Mingw
1.1 or any of the older versions
358 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
360 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
363 <if cond=
"FORMAT=='cbuilderx'">
364 <set var=
"EXTRACFLAGS">
365 <if cond=
"COMPILER=='gcc'">-DHAVE_W32API_H
</if>
370 <!-- ================================================================== -->
371 <!-- Project files - hardcode some defaults -->
372 <!-- ================================================================== -->
374 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
375 <set var=
"RUNTIME_LIBS">dynamic
</set>
376 <set var=
"OFFICIAL_BUILD">0</set>
377 <set var=
"USE_HTML">1</set>
378 <set var=
"USE_XRC">1</set>
379 <set var=
"USE_OPENGL">1</set>
380 <set var=
"USE_ODBC">1</set>
381 <set var=
"USE_QA">1</set>
382 <set var=
"MONOLITHIC">0</set>
383 <set var=
"USE_GUI">1</set>
384 <set var=
"USE_EXCEPTIONS">1</set>
385 <set var=
"USE_RTTI">1</set>
386 <set var=
"USE_THREADS">1</set>
387 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
388 <set var=
"DEBUG_FLAG">default
</set>
389 <set var=
"MSLU">0</set>
394 C++BuilderX supports only wxMSW, monolithic (sic!) static build
395 and the project can't be put into build/msw and store objects in
396 build/msw/something. This *must* be fixed! -->
397 <if cond=
"FORMAT=='cbuilderx'">
398 <set var=
"WXUNIV">0</set>
399 <set var=
"MONOLITHIC">1</set>
400 <set var=
"SRCDIR">.
</set>
401 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
402 <set var=
"SHARED">0</set>
406 <!-- DigitalMars make is braindead, it doesn't have conditional
408 <if cond=
"FORMAT=='dmars'">
409 <set var=
"RUNTIME_LIBS">static
</set>
410 <set var=
"BUILD">debug
</set>
411 <set var=
"SHARED">0</set>
412 <set var=
"WXUNIV">0</set>
413 <set var=
"UNICODE">0</set>
414 <!-- Free version does not distribute OpenGL,
415 in commercial distribution better use dmars_smake format -->
416 <set var=
"USE_OPENGL">0</set>
419 <!-- No need for wxUniv on embedded devices (yet): -->
420 <if cond=
"FORMAT=='msevc4prj'">
421 <set var=
"WXUNIV">0</set>
422 <set var=
"UNICODE">1</set>
423 <!-- Uploading debug reports from PDAs seems impractical -->
424 <set var=
"USE_QA">0</set>
425 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
426 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
427 <set var=
"USE_RTTI">0</set>
428 <set var=
"USE_EXCEPTIONS">0</set>