]> git.saurik.com Git - wxWidgets.git/blame_incremental - build/bakefiles/config.bkl
Fix a crash in wxExecute() in wxMSW too.
[wxWidgets.git] / build / bakefiles / config.bkl
... / ...
CommitLineData
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
5
6 <set var="IS_MSVC_PRJ">
7 $(FORMAT in ['msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj'])
8 </set>
9 <set var="IS_MSVC">
10 $(IS_MSVC_PRJ=='1' or FORMAT=='msvc')
11 </set>
12
13
14 <set var="BUILDING_LIB" overwrite="0">0</set>
15
16 <set var="CPP_DEFAULT_VALUE">
17 <if cond="FORMAT=='borland'">
18 cpp32 -Sr -oCON
19 </if>
20 <if cond="FORMAT=='mingw'">
21 $(DOLLAR)(CC) -E
22 </if>
23 <if cond="FORMAT=='msvc'">
24 $(DOLLAR)(CC) /EP /nologo
25 </if>
26 <if cond="FORMAT=='watcom'">
27 $(DOLLAR)(CC) -p
28 </if>
29 </set>
30 <option name="CPP">
31 <default-value>
32 $(CPP_DEFAULT_VALUE)
33 </default-value>
34 <description>
35 The C preprocessor
36 </description>
37 </option>
38
39 <option name="SHARED">
40 <values>0,1</values>
41 <values-description>,DLL</values-description>
42 <default-value>0</default-value>
43 <description>
44 What type of library to build?
45 </description>
46 </option>
47
48 <if cond="FORMAT!='autoconf'">
49 <option name="TOOLKIT">
50 <values>MSW,GTK</values>
51 <values-description>,GTK+</values-description>
52 <default-value>MSW</default-value>
53 <description>
54 Used toolkit
55 </description>
56 </option>
57
58 <if cond="FORMAT not in ['autoconf','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj']">
59 <option name="TOOLKIT_VERSION">
60 <values>,2</values>
61 <values-description>,2</values-description>
62 <default-value></default-value>
63 <description>
64 GTK+ toolkit version
65 </description>
66 </option>
67 </if>
68
69 <if cond="FORMAT in ['msvc6prj', 'msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
70 <set var="TOOLKIT">MSW</set>
71 </if>
72 </if>
73
74 <option name="WXUNIV">
75 <values>0,1</values>
76 <values-description>,Universal</values-description>
77 <default-value>0</default-value>
78 <description>
79 Build wxUniversal instead of native port?
80 </description>
81 </option>
82
83 <!-- don't include ANSI configuration in project files, it's going to be
84 eventually removed anyway and it only doubles the number of build
85 configs in projects: -->
86 <if cond="IS_MSVC_PRJ=='1'">
87 <set var="UNICODE">1</set>
88 </if>
89 <if cond="IS_MSVC_PRJ=='0'">
90 <option name="UNICODE">
91 <values>0,1</values>
92 <values-description>,Unicode</values-description>
93 <default-value>1</default-value>
94 <description>
95 Compile Unicode build of wxWidgets?
96 </description>
97 </option>
98 </if>
99
100 <if cond="FORMAT!='autoconf' and FORMAT!='watcom'">
101 <option name="MSLU">
102 <values>0,1</values>
103 <default-value>0</default-value>
104 <description>
105 Use MSLU library when building Unicode version.
106 </description>
107 </option>
108 </if>
109 <if cond="FORMAT=='autoconf' or FORMAT=='watcom'">
110 <set var="MSLU">0</set>
111 </if>
112
113 <option name="BUILD">
114 <values>debug,release</values>
115 <values-description>Debug,Release</values-description>
116 <default-value>debug</default-value>
117 <description>
118 Type of compiled binaries
119 </description>
120 </option>
121
122 <if cond="FORMAT=='msvc'">
123 <option name="TARGET_CPU">
124 <default-value>$(DOLLAR)(CPU)</default-value>
125 <description>
126The target processor architecture must be specified when it is not X86.
127This does not affect the compiler output, so you still need to make sure
128your environment is set up appropriately with the correct compiler in the
129PATH. Rather it affects some options passed to some of the common build
130utilities such as the resource compiler and the linker.
131
132Accepted values: IA64, X64
133(AMD64 accepted as synonym for X64 but should not be used any more).
134 </description>
135 </option>
136 </if>
137 <if cond="FORMAT!='msvc'">
138 <set var="TARGET_CPU"/>
139 </if>
140
141 <!--
142 For MSVC enable debug information in all builds: it is needed to be
143 able to debug the crash dumps produced by wxDebugReport and as it
144 generates it in separate PDB files it doesn't cost us much to enable it
145 (except for disk space...).
146 -->
147 <set var="DEBUG_INFO_DEFAULT">
148 <if cond="IS_MSVC=='1'">1</if>
149 <if cond="IS_MSVC=='0'">default</if>
150 </set>
151
152 <option name="DEBUG_INFO">
153 <values>0,1,default</values>
154 <default-value>$(DEBUG_INFO_DEFAULT)</default-value>
155 <description>
156Should debugging info be included in the executables? The default value
157"default" means that debug info will be included if BUILD=debug
158and not included if BUILD=release.
159 </description>
160 </option>
161
162 <option name="DEBUG_FLAG">
163 <values>0,1,default</values>
164 <default-value>1</default-value>
165 <description>
166Value of wxDEBUG_LEVEL. The default value is the same as 1 and means that all
167but expensive assert checks are enabled, use 0 to completely remove debugging
168code.
169 </description>
170 </option>
171
172 <if cond="FORMAT=='msvc'">
173 <option name="DEBUG_RUNTIME_LIBS">
174 <values>0,1,default</values>
175 <default-value>default</default-value>
176 <description>
177Link against debug (e.g. msvcrtd.dll) or release (msvcrt.dll) RTL?
178Default is to use debug CRT if and only if BUILD==debug.
179 </description>
180 </option>
181 </if>
182 <if cond="FORMAT!='msvc'">
183 <set var="DEBUG_RUNTIME_LIBS">default</set>
184 </if>
185
186 <set var="MONOLITHIC_DEFAULT">
187 <if cond="FORMAT=='watcom'">1</if>
188 <if cond="FORMAT!='watcom'">0</if>
189 </set>
190 <option name="MONOLITHIC">
191 <values>0,1</values>
192 <values-description>Multilib,Monolithic</values-description>
193 <default-value>$(MONOLITHIC_DEFAULT)</default-value>
194 <description>
195 Multiple libraries or single huge monolithic one?
196 </description>
197 </option>
198
199 <if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary -->
200 <option name="USE_PLUGINS">
201 <values>0,1</values>
202 <default-value>1</default-value>
203 <description>
204 Build parts of the library as dynamically loadable plugins
205 (only supported in multilib build)?
206 </description>
207 </option>
208 </if>
209 <if cond="FORMAT!='autoconf'">
210 <set var="USE_PLUGINS">0</set> <!-- FIXME - temporary -->
211 </if>
212
213 <option name="USE_GUI">
214 <values>0,1</values>
215 <values-description>Base,GUI</values-description>
216 <default-value>1</default-value>
217 <description>
218 Build GUI libraries?
219 </description>
220 </option>
221
222 <option name="USE_HTML">
223 <values>0,1</values>
224 <default-value>1</default-value>
225 <description>
226 Build wxHTML library (USE_GUI must be 1)?
227 </description>
228 </option>
229
230 <option name="USE_WEBVIEW">
231 <values>0,1</values>
232 <default-value>1</default-value>
233 <description>
234 Build wxWebView library (USE_GUI must be 1)?
235 </description>
236 </option>
237
238 <option name="USE_MEDIA">
239 <values>0,1</values>
240 <default-value>1</default-value>
241 <description>
242 Build multimedia library (USE_GUI must be 1)?
243 </description>
244 </option>
245
246 <option name="USE_XRC">
247 <values>0,1</values>
248 <default-value>1</default-value>
249 <description>
250 Build wxXRC library (USE_GUI must be 1)?
251 </description>
252 </option>
253
254 <option name="USE_AUI">
255 <values>0,1</values>
256 <default-value>1</default-value>
257 <description>
258 Build wxAUI library (USE_GUI must be 1)?
259 </description>
260 </option>
261
262 <option name="USE_RIBBON">
263 <values>0,1</values>
264 <default-value>1</default-value>
265 <description>
266 Build wxRibbon library (USE_GUI must be 1)?
267 </description>
268 </option>
269
270 <option name="USE_PROPGRID">
271 <values>0,1</values>
272 <default-value>1</default-value>
273 <description>
274 Build wxPropertyGrid library (USE_GUI must be 1)?
275 </description>
276 </option>
277
278 <option name="USE_RICHTEXT">
279 <values>0,1</values>
280 <default-value>1</default-value>
281 <description>
282 Build wxRichTextCtrl library (USE_GUI must be 1)?
283 </description>
284 </option>
285
286 <option name="USE_STC">
287 <values>0,1</values>
288 <default-value>1</default-value>
289 <description>
290 Build wxStyledTextCtrl library (USE_GUI must be 1)?
291 </description>
292 </option>
293
294 <option name="USE_OPENGL">
295 <values>0,1</values>
296 <default-value>1</default-value>
297 <description>
298 Build OpenGL canvas library (USE_GUI must be 1)?
299 </description>
300 </option>
301
302 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
303 <set var="USE_QA_DEFAULT">
304 <if cond="FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">1</if>
305 <if cond="FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">0</if>
306 </set>
307 <option name="USE_QA">
308 <values>0,1</values>
309 <default-value>$(USE_QA_DEFAULT)</default-value>
310 <description>
311 Build quality assurance classes library (USE_GUI must be 1)?
312 </description>
313 </option>
314
315 <option name="USE_EXCEPTIONS">
316 <values>0,1</values>
317 <default-value>1</default-value>
318 <description>
319 Enable exceptions in compiled code.
320 </description>
321 </option>
322
323 <option name="USE_RTTI">
324 <values>0,1</values>
325 <default-value>1</default-value>
326 <description>
327 Enable run-time type information (RTTI) in compiled code.
328 </description>
329 </option>
330
331 <option name="USE_THREADS">
332 <values>0,1</values>
333 <default-value>1</default-value>
334 <description>
335 Enable threading in compiled code.
336 </description>
337 </option>
338
339 <option name="USE_CAIRO">
340 <values>0,1</values>
341 <default-value>0</default-value>
342 <description>
343 Enable wxCairoContext for platforms other than Linux/GTK.
344 </description>
345 </option>
346
347 <option name="OFFICIAL_BUILD">
348 <values>0,1</values>
349 <default-value>0</default-value>
350 <description>
351 Is this official build by wxWidgets developers?
352 </description>
353 </option>
354 <option name="VENDOR">
355 <default-value>custom</default-value>
356 <description>
357 Use this to name your customized DLLs differently
358 </description>
359 </option>
360 <!-- These basically do what vendor does in the places it didn't. -->
361 <!-- They should all be unified under some suitable descriptor -->
362 <option name="WX_FLAVOUR">
363 <default-value></default-value>
364 </option>
365 <option name="WX_LIB_FLAVOUR">
366 <default-value></default-value>
367 </option>
368
369 <option name="CFG">
370 <default-value></default-value>
371 <description>
372Name of your custom configuration. This affects directory
373where object files are stored as well as the location of
374compiled .lib files and setup.h under the lib/ toplevel directory.
375 </description>
376 </option>
377
378 <!-- unit tests support: -->
379 <option name="CPPUNIT_CFLAGS">
380 <default-value></default-value>
381 <description>
382Compiler flags needed to compile test suite in tests directory. If you want
383to run the tests, set it so that the compiler can find CppUnit headers.
384 </description>
385 </option>
386
387 <option name="CPPUNIT_LIBS">
388 <default-value></default-value>
389 <description>
390Linker flags needed to link test suite in tests directory. If you want
391to run the tests, include CppUnit library here.
392 </description>
393 </option>
394
395
396 <!-- ================================================================== -->
397 <!-- Autoconf -->
398 <!-- ================================================================== -->
399
400 <if cond="FORMAT=='autoconf'">
401 <option name="DEREZ"/>
402 <option name="TOOLKIT"/>
403 <option name="TOOLKIT_LOWERCASE"/>
404 <option name="TOOLKIT_VERSION"/>
405 <option name="TOOLCHAIN_NAME"/>
406 <option name="TOOLCHAIN_FULLNAME"/>
407 <option name="EXTRALIBS"/>
408 <option name="EXTRALIBS_XML"/>
409 <option name="EXTRALIBS_HTML"/>
410 <option name="EXTRALIBS_MEDIA"/>
411 <option name="EXTRALIBS_GUI"/>
412 <option name="EXTRALIBS_OPENGL"/>
413 <option name="EXTRALIBS_SDL"/>
414 <option name="CXXWARNINGS"/>
415 <option name="HOST_SUFFIX"/>
416 <option name="DYLIB_RPATH_INSTALL"/>
417 <option name="DYLIB_RPATH_POSTLINK"/>
418 <option name="SAMPLES_RPATH_FLAG"/>
419
420 <!-- see configure.in; it's required by some samples on Mac OS X -->
421 <option name="HEADER_PAD_OPTION"/>
422
423 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
424 <set var="RUNTIME_LIBS">dynamic</set>
425 <set var="WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
426
427 <option name="WITH_PLUGIN_SDL">
428 <values>0,1</values>
429 </option>
430
431 <option name="wx_top_builddir"/>
432 </if>
433
434
435 <!-- ================================================================== -->
436 <!-- windows/dos/os2 compilers -->
437 <!-- ================================================================== -->
438
439 <if cond="FORMAT!='autoconf'">
440 <option name="RUNTIME_LIBS">
441 <values>dynamic,static</values>
442 <default-value>dynamic</default-value>
443 <description>
444Version of C runtime library to use. You can change this to
445static if SHARED=0, but it is highly recommended to not do
446it if SHARED=1 unless you know what you are doing.
447 </description>
448 </option>
449
450 <set var="WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
451
452 <set var="WIN32_TOOLKIT">
453 <if cond="TOOLKIT=='MSW'">MSW</if>
454 <if cond="TOOLKIT=='GTK'">GTK</if>
455 </set>
456 <set var="WIN32_TOOLKIT_LOWERCASE">
457 <if cond="TOOLKIT=='MSW'">msw</if>
458 <if cond="TOOLKIT=='GTK'">gtk</if>
459 </set>
460
461 <set var="TOOLKIT" overwrite="0">
462 <if cond="FORMAT=='msevc4prj'">WINCE</if>
463 <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE</if>
464 <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE</if>
465 <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)</if>
466 <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT)</if>
467 <if cond="FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT)</if>
468 <if cond="PLATFORM_OS2=='1'">PM</if>
469 </set>
470 <set var="TOOLKIT_LOWERCASE">
471 <if cond="FORMAT=='msevc4prj'">wince</if>
472 <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">wince</if>
473 <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">wince</if>
474 <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)</if>
475 <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">$(WIN32_TOOLKIT_LOWERCASE)</if>
476 <if cond="FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">$(WIN32_TOOLKIT_LOWERCASE)</if>
477 <if cond="PLATFORM_OS2=='1'">pm</if>
478 </set>
479 <if cond="FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj','msvs2008prj']">
480 <set var="TOOLKIT_VERSION">
481 <if cond="PLATFORM_WIN32=='1' and TOOLKIT=='GTK'">2</if>
482 </set>
483 </if>
484 <set var="HOST_SUFFIX"/>
485 <set var="EXTRACFLAGS"/>
486 <set var="EXTRALIBS"/>
487 <set var="EXTRALIBS_XML"/>
488 <set var="EXTRALIBS_HTML"/>
489 <set var="EXTRALIBS_MEDIA"/>
490 <set var="EXTRALIBS_GUI"/>
491 <set var="EXTRALIBS_OPENGL">
492 <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if>
493 <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
494 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
495 </set>
496 <set var="EXTRALIBS_SDL"/>
497 <set var="EXTRALIBS_GNOMEPRINT"/>
498
499 <set var="WITH_PLUGIN_SDL">0</set>
500
501 <if cond="BUILDING_LIB=='1'">
502 <set-srcdir>../..</set-srcdir>
503 </if>
504 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
505 </if>
506
507 <if cond="FORMAT=='mingw'">
508 <option name="GCC_VERSION">
509 <values>3,2.95</values>
510 <default-value>3</default-value>
511 <description>
512Set the version of your Mingw installation here.
513 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
514 "2.95" ... for Mingw 1.1 or any of the older versions
515 </description>
516 </option>
517 <set var="GCCFLAGS">
518 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
519 </set>
520 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
521 </if>
522
523
524 <!-- ================================================================== -->
525 <!-- Project files - hardcode some defaults -->
526 <!-- ================================================================== -->
527
528 <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
529 <set var="RUNTIME_LIBS">dynamic</set>
530 <set var="OFFICIAL_BUILD">0</set>
531 <set var="USE_AUI">1</set>
532 <set var="USE_RIBBON">1</set>
533 <set var="USE_PROPGRID">1</set>
534 <set var="USE_RICHTEXT">1</set>
535 <set var="USE_STC">1</set>
536 <set var="USE_HTML">1</set>
537 <set var="USE_WEBVIEW">1</set>
538 <set var="USE_MEDIA">1</set>
539 <set var="USE_XRC">1</set>
540 <set var="USE_OPENGL">1</set>
541 <set var="USE_QA">1</set>
542 <set var="MONOLITHIC">0</set>
543 <set var="USE_GUI">1</set>
544 <set var="USE_EXCEPTIONS">1</set>
545 <set var="USE_RTTI">1</set>
546 <set var="USE_THREADS">1</set>
547 <set var="USE_CAIRO">0</set>
548 <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
549 <set var="DEBUG_FLAG">default</set>
550 <set var="MSLU">0</set>
551 </if>
552
553
554 <!-- DigitalMars make is braindead, it doesn't have conditional
555 processing: -->
556 <if cond="FORMAT=='dmars'">
557 <set var="RUNTIME_LIBS">static</set>
558 <set var="BUILD">debug</set>
559 <set var="SHARED">0</set>
560 <set var="WXUNIV">0</set>
561 <set var="UNICODE">1</set>
562 <!-- Free version does not distribute OpenGL,
563 in commercial distribution better use dmars_smake format -->
564 <set var="USE_OPENGL">0</set>
565 </if>
566
567 <!-- No need for wxUniv on embedded devices (yet): -->
568 <if cond="FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
569 <set var="WXUNIV">0</set>
570 <!-- Uploading debug reports from PDAs seems impractical -->
571 <set var="USE_QA">0</set>
572 <set var="MONOLITHIC">1</set> <!-- sic! -->
573 <set var="USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
574 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
575 <if cond="FORMAT=='msevc4prj'">
576 <set var="USE_RTTI">0</set>
577 <set var="USE_EXCEPTIONS">0</set>
578 </if>
579 </if>
580
581</makefile>