6 <set var=
"IS_MSVC_PRJ">
7 $(FORMAT in ['msvc6prj','msevc4prj','msvs2003prj','msvs2005prj'])
10 <set var=
"BUILDING_LIB" overwrite=
"0">0</set>
12 <set var=
"CPP_DEFAULT_VALUE">
13 <if cond=
"FORMAT=='borland'">
16 <if cond=
"FORMAT=='mingw'">
19 <if cond=
"FORMAT=='msvc'">
20 $(DOLLAR)(CC) /EP /nologo
22 <if cond=
"FORMAT=='watcom'">
35 <option name=
"SHARED">
37 <values-description>,DLL
</values-description>
38 <default-value>0</default-value>
40 What type of library to build?
44 <option name=
"WXUNIV">
46 <values-description>,Universal
</values-description>
47 <default-value>0</default-value>
49 Build wxUniversal instead of native port?
53 <!-- don't include ANSI configuration in project files, it's going to be
54 eventually removed anyway and it only doubles the number of build
55 configs in projects: -->
56 <if cond=
"IS_MSVC_PRJ=='1'">
57 <set var=
"UNICODE">1</set>
59 <if cond=
"IS_MSVC_PRJ=='0'">
60 <option name=
"UNICODE">
62 <values-description>,Unicode
</values-description>
63 <default-value>1</default-value>
65 Compile Unicode build of wxWidgets?
70 <if cond=
"FORMAT!='autoconf' and FORMAT!='watcom'">
73 <default-value>0</default-value>
75 Use MSLU library when building Unicode version.
79 <if cond=
"FORMAT=='autoconf' or FORMAT=='watcom'">
80 <set var=
"MSLU">0</set>
84 <values>debug,release
</values>
85 <values-description>Debug,Release
</values-description>
86 <default-value>debug
</default-value>
88 Type of compiled binaries
92 <if cond=
"FORMAT=='msvc'">
93 <option name=
"TARGET_CPU">
94 <default-value>$(DOLLAR)(CPU)
</default-value>
96 The target processor architecture must be specified when it is not X86.
97 This does not affect the compiler output, so you still need to make sure
98 your environment is set up appropriately with the correct compiler in the
99 PATH. Rather it affects some options passed to some of the common build
100 utilities such as the resource compiler and the linker.
102 Accepted values: AMD64, IA64.
106 <if cond=
"FORMAT!='msvc'">
107 <set var=
"TARGET_CPU"/>
110 <set var=
"DEBUG_INFO_DEFAULT">
111 <if cond=
"IS_MSVC_PRJ=='1'">1</if>
112 <if cond=
"IS_MSVC_PRJ=='0'">default
</if>
115 <option name=
"DEBUG_INFO">
116 <values>0,
1,default
</values>
117 <default-value>$(DEBUG_INFO_DEFAULT)
</default-value>
119 Should debugging info be included in the executables? The default value
120 "default" means that debug info will be included if BUILD=debug
121 and not included if BUILD=release.
125 <option name=
"DEBUG_FLAG">
126 <values>0,
1,default
</values>
127 <default-value>default
</default-value>
129 Should __WXDEBUG__ be defined? The default value "default" means that it will
130 be defined if BUILD=debug and not defined if BUILD=release.
134 <if cond=
"FORMAT=='msvc'">
135 <option name=
"DEBUG_RUNTIME_LIBS">
136 <values>0,
1,default
</values>
137 <default-value>default
</default-value>
139 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
140 Acts according to BUILD by default.
144 <if cond=
"FORMAT!='msvc'">
145 <set var=
"DEBUG_RUNTIME_LIBS">default
</set>
148 <set var=
"MONOLITHIC_DEFAULT">
149 <if cond=
"FORMAT=='watcom'">1</if>
150 <if cond=
"FORMAT!='watcom'">0</if>
152 <option name=
"MONOLITHIC">
154 <values-description>Multilib,Monolithic
</values-description>
155 <default-value>$(MONOLITHIC_DEFAULT)
</default-value>
157 Multiple libraries or single huge monolithic one?
161 <if cond=
"FORMAT=='autoconf'"> <!-- FIXME - temporary -->
162 <option name=
"USE_PLUGINS">
164 <default-value>1</default-value>
166 Build parts of the library as dynamically loadable plugins
167 (only supported in multilib build)?
171 <if cond=
"FORMAT!='autoconf'">
172 <set var=
"USE_PLUGINS">0</set> <!-- FIXME - temporary -->
175 <option name=
"USE_GUI">
177 <values-description>Base,GUI
</values-description>
178 <default-value>1</default-value>
184 <option name=
"USE_HTML">
186 <default-value>1</default-value>
188 Build wxHTML library (USE_GUI must be
1)?
192 <option name=
"USE_MEDIA">
194 <default-value>1</default-value>
196 Build multimedia library (USE_GUI must be
1)?
200 <option name=
"USE_XRC">
202 <default-value>1</default-value>
204 Build wxXRC library (USE_GUI must be
1)?
208 <option name=
"USE_AUI">
210 <default-value>1</default-value>
212 Build wxAUI library (USE_GUI must be
1)?
216 <option name=
"USE_PROPGRID">
218 <default-value>1</default-value>
220 Build wxPropertyGrid library (USE_GUI must be
1)?
224 <option name=
"USE_RICHTEXT">
226 <default-value>1</default-value>
228 Build wxRichTextCtrl library (USE_GUI must be
1)?
232 <option name=
"USE_STC">
234 <default-value>1</default-value>
236 Build wxStyledTextCtrl library (USE_GUI must be
1)?
240 <option name=
"USE_OPENGL">
242 <default-value>0</default-value>
244 Build OpenGL canvas library (USE_GUI must be
1)?
248 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
249 <set var=
"USE_QA_DEFAULT">
250 <if cond=
"FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">1</if>
251 <if cond=
"FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">0</if>
253 <option name=
"USE_QA">
255 <default-value>$(USE_QA_DEFAULT)
</default-value>
257 Build quality assurance classes library (USE_GUI must be
1)?
261 <option name=
"USE_EXCEPTIONS">
263 <default-value>1</default-value>
265 Enable exceptions in compiled code.
269 <option name=
"USE_RTTI">
271 <default-value>1</default-value>
273 Enable run-time type information (RTTI) in compiled code.
277 <option name=
"USE_THREADS">
279 <default-value>1</default-value>
281 Enable threading in compiled code.
285 <if cond=
"FORMAT!='autoconf'">
286 <option name=
"USE_GDIPLUS">
288 <default-value>0</default-value>
290 Link with gdiplus.lib? (Needed for wxGraphicsContext, will also set wxUSE_GRAPHICS_CONTEXT)
295 <option name=
"OFFICIAL_BUILD">
297 <default-value>0</default-value>
299 Is this official build by wxWidgets developers?
302 <option name=
"VENDOR">
303 <default-value>custom
</default-value>
305 Use this to name your customized DLLs differently
308 <!-- These basically do what vendor does in the places it didn't. -->
309 <!-- They should all be unified under some suitable descriptor -->
310 <option name=
"WX_FLAVOUR">
311 <default-value></default-value>
313 <option name=
"WX_LIB_FLAVOUR">
314 <default-value></default-value>
318 <default-value></default-value>
320 Name of your custom configuration. This affects directory
321 where object files are stored as well as the location of
322 compiled .lib files and setup.h under the lib/ toplevel directory.
326 <!-- unit tests support: -->
327 <option name=
"CPPUNIT_CFLAGS">
328 <default-value></default-value>
330 Compiler flags needed to compile test suite in tests directory. If you want
331 to run the tests, set it so that the compiler can find CppUnit headers.
335 <option name=
"CPPUNIT_LIBS">
336 <default-value></default-value>
338 Linker flags needed to link test suite in tests directory. If you want
339 to run the tests, include CppUnit library here.
344 <!-- ================================================================== -->
346 <!-- ================================================================== -->
348 <if cond=
"FORMAT=='autoconf'">
349 <option name=
"DEREZ"/>
350 <option name=
"TOOLKIT"/>
351 <option name=
"TOOLKIT_LOWERCASE"/>
352 <option name=
"TOOLKIT_VERSION"/>
353 <option name=
"TOOLCHAIN_NAME"/>
354 <option name=
"TOOLCHAIN_FULLNAME"/>
355 <option name=
"EXTRALIBS"/>
356 <option name=
"EXTRALIBS_XML"/>
357 <option name=
"EXTRALIBS_HTML"/>
358 <option name=
"EXTRALIBS_MEDIA"/>
359 <option name=
"EXTRALIBS_GUI"/>
360 <option name=
"EXTRALIBS_OPENGL"/>
361 <option name=
"EXTRALIBS_SDL"/>
362 <option name=
"EXTRALIBS_GNOMEPRINT"/>
363 <option name=
"CXXWARNINGS"/>
364 <option name=
"HOST_SUFFIX"/>
365 <option name=
"SAMPLES_RPATH_FLAG"/>
366 <option name=
"SAMPLES_RPATH_POSTLINK"/>
368 <set var=
"TOP_SRCDIR">$(top_srcdir)/
</set>
369 <set var=
"RUNTIME_LIBS">dynamic
</set>
370 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
372 <option name=
"WITH_PLUGIN_SDL">
376 <option name=
"wx_top_builddir"/>
380 <!-- ================================================================== -->
381 <!-- windows/dos/os2 compilers -->
382 <!-- ================================================================== -->
384 <if cond=
"FORMAT!='autoconf'">
385 <option name=
"RUNTIME_LIBS">
386 <values>dynamic,static
</values>
387 <default-value>dynamic
</default-value>
389 Version of C runtime library to use. You can change this to
390 static if SHARED=
0, but it is highly recommended to not do
391 it if SHARED=
1 unless you know what you are doing.
395 <set var=
"WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
397 <set var=
"TOOLKIT" overwrite=
"0">
398 <if cond=
"FORMAT=='msevc4prj'">WINCE
</if>
399 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE
</if>
400 <if cond=
"FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">MSW
</if>
401 <if cond=
"FORMAT not in ['msevc4prj','msvs2005prj'] and PLATFORM_WIN32=='1'">MSW
</if>
402 <if cond=
"PLATFORM_MSDOS=='1'">MGL
</if>
403 <if cond=
"PLATFORM_OS2=='1'">PM
</if>
405 <set var=
"TOOLKIT_LOWERCASE">$(TOOLKIT.lower())
</set>
406 <set var=
"TOOLKIT_VERSION"/>
407 <set var=
"HOST_SUFFIX"/>
408 <set var=
"EXTRACFLAGS"/>
409 <set var=
"EXTRALIBS"/>
410 <set var=
"EXTRALIBS_XML"/>
411 <set var=
"EXTRALIBS_HTML"/>
412 <set var=
"EXTRALIBS_MEDIA"/>
413 <set var=
"EXTRALIBS_GUI"/>
414 <set var=
"EXTRALIBS_OPENGL">
415 <if cond=
"COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib
</if>
416 <if cond=
"COMPILER in ['vc','evc']">opengl32.lib glu32.lib
</if>
417 <if cond=
"COMPILER=='gcc'">-lopengl32 -lglu32
</if>
419 <set var=
"EXTRALIBS_SDL"/>
420 <set var=
"EXTRALIBS_GNOMEPRINT"/>
422 <set var=
"WITH_PLUGIN_SDL">0</set>
424 <if cond=
"BUILDING_LIB=='1'">
425 <set-srcdir>../..
</set-srcdir>
427 <set var=
"TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)
</set>
430 <if cond=
"FORMAT=='mingw'">
431 <option name=
"GCC_VERSION">
432 <values>3,
2.95</values>
433 <default-value>3</default-value>
435 Set the version of your Mingw installation here.
436 "
3" ...... this is for Mingw
2.0 or newer (comes with gcc3)
437 "
2.95" ... for Mingw
1.1 or any of the older versions
441 <if cond=
"GCC_VERSION=='2.95'">-fvtable-thunks
</if>
443 <set var=
"EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H
</set>
447 <!-- ================================================================== -->
448 <!-- Project files - hardcode some defaults -->
449 <!-- ================================================================== -->
451 <if cond=
"FORMAT_SUPPORTS_CONDITIONS=='0'">
452 <set var=
"RUNTIME_LIBS">dynamic
</set>
453 <set var=
"OFFICIAL_BUILD">0</set>
454 <set var=
"USE_AUI">1</set>
455 <set var=
"USE_PROPGRID">1</set>
456 <set var=
"USE_RICHTEXT">1</set>
457 <set var=
"USE_STC">1</set>
458 <set var=
"USE_HTML">1</set>
459 <set var=
"USE_MEDIA">1</set>
460 <set var=
"USE_XRC">1</set>
461 <set var=
"USE_OPENGL">1</set>
462 <set var=
"USE_QA">1</set>
463 <set var=
"MONOLITHIC">0</set>
464 <set var=
"USE_GUI">1</set>
465 <set var=
"USE_EXCEPTIONS">1</set>
466 <set var=
"USE_RTTI">1</set>
467 <set var=
"USE_THREADS">1</set>
468 <if cond=
"FORMAT!='autoconf'"><set var=
"USE_GDIPLUS">0</set></if>
469 <set var=
"DEBUG_INFO">$(DEBUG_INFO_DEFAULT)
</set>
470 <set var=
"DEBUG_FLAG">default
</set>
471 <set var=
"MSLU">0</set>
475 <!-- DigitalMars make is braindead, it doesn't have conditional
477 <if cond=
"FORMAT=='dmars'">
478 <set var=
"RUNTIME_LIBS">static
</set>
479 <set var=
"BUILD">debug
</set>
480 <set var=
"SHARED">0</set>
481 <set var=
"WXUNIV">0</set>
482 <set var=
"UNICODE">1</set>
483 <!-- Free version does not distribute OpenGL,
484 in commercial distribution better use dmars_smake format -->
485 <set var=
"USE_OPENGL">0</set>
488 <!-- No need for wxUniv on embedded devices (yet): -->
489 <if cond=
"FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003')">
490 <set var=
"WXUNIV">0</set>
491 <!-- Uploading debug reports from PDAs seems impractical -->
492 <set var=
"USE_QA">0</set>
493 <set var=
"MONOLITHIC">1</set> <!-- sic! -->
494 <set var=
"USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
495 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
496 <if cond=
"FORMAT=='msevc4prj'">
497 <set var=
"USE_RTTI">0</set>
498 <set var=
"USE_EXCEPTIONS">0</set>
502 <!-- Need for wxUniv within wxMGL: -->
503 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MGL'">
504 <set var=
"WXUNIV">1</set>
505 <set var=
"USE_THREADS">0</set>
506 <set var=
"RUNTIME_LIBS">static
</set>