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