]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/config.bkl
Tweaks for demos on MacOSX
[wxWidgets.git] / build / bakefiles / config.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5
6 <set var="BUILDING_LIB" overwrite="0">0</set>
7
8 <set var="CPP_DEFAULT_VALUE">
9 <if cond="FORMAT=='borland'">
10 cpp32 -Sr -oCON
11 </if>
12 <if cond="FORMAT=='mingw'">
13 $(DOLLAR)(CC) -E
14 </if>
15 <if cond="FORMAT=='msvc'">
16 $(DOLLAR)(CC) /EP /nologo
17 </if>
18 <if cond="FORMAT=='watcom'">
19 $(DOLLAR)(CC) -p
20 </if>
21 </set>
22 <option name="CPP">
23 <default-value>
24 $(CPP_DEFAULT_VALUE)
25 </default-value>
26 <description>
27 The C preprocessor
28 </description>
29 </option>
30
31 <option name="SHARED">
32 <values>0,1</values>
33 <values-description>,DLL</values-description>
34 <default-value>0</default-value>
35 <description>
36 What type of library to build?
37 </description>
38 </option>
39
40 <option name="WXUNIV">
41 <values>0,1</values>
42 <values-description>,Universal</values-description>
43 <default-value>0</default-value>
44 <description>
45 Build wxUniversal instead of native port?
46 </description>
47 </option>
48
49 <option name="UNICODE">
50 <values>0,1</values>
51 <values-description>,Unicode</values-description>
52 <default-value>0</default-value>
53 <description>
54 Compile Unicode build of wxWidgets?
55 </description>
56 </option>
57
58 <if cond="FORMAT!='autoconf' and FORMAT!='watcom'">
59 <option name="MSLU">
60 <values>0,1</values>
61 <default-value>0</default-value>
62 <description>
63 Use MSLU library when building Unicode version.
64 </description>
65 </option>
66 </if>
67 <if cond="FORMAT=='autoconf' or FORMAT=='watcom'">
68 <set var="MSLU">0</set>
69 </if>
70
71 <option name="BUILD">
72 <values>debug,release</values>
73 <values-description>Debug,Release</values-description>
74 <default-value>debug</default-value>
75 <description>
76 Type of compiled binaries
77 </description>
78 </option>
79
80 <if cond="FORMAT=='msvc'">
81 <option name="TARGET_CPU">
82 <values>AMD64,IA64</values>
83 <default-value>$(DOLLAR)(CPU)</default-value>
84 <description>
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.
90 </description>
91 </option>
92 </if>
93 <if cond="FORMAT!='msvc'">
94 <set var="TARGET_CPU"/>
95 </if>
96
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>
102 </set>
103 -->
104 <set var="DEBUG_INFO_DEFAULT">default</set>
105
106 <option name="DEBUG_INFO">
107 <values>0,1,default</values>
108 <default-value>$(DEBUG_INFO_DEFAULT)</default-value>
109 <description>
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.
113 </description>
114 </option>
115
116 <option name="DEBUG_FLAG">
117 <values>0,1,default</values>
118 <default-value>default</default-value>
119 <description>
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.
122 </description>
123 </option>
124
125 <if cond="FORMAT=='msvc'">
126 <option name="DEBUG_RUNTIME_LIBS">
127 <values>0,1,default</values>
128 <default-value>default</default-value>
129 <description>
130 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
131 Acts according to BUILD by default.
132 </description>
133 </option>
134 </if>
135 <if cond="FORMAT!='msvc'">
136 <set var="DEBUG_RUNTIME_LIBS">default</set>
137 </if>
138
139 <set var="MONOLITHIC_DEFAULT">
140 <if cond="FORMAT=='watcom'">1</if>
141 <if cond="FORMAT!='watcom'">0</if>
142 </set>
143 <option name="MONOLITHIC">
144 <values>0,1</values>
145 <values-description>Multilib,Monolithic</values-description>
146 <default-value>$(MONOLITHIC_DEFAULT)</default-value>
147 <description>
148 Multiple libraries or single huge monolithic one?
149 </description>
150 </option>
151
152 <if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary -->
153 <option name="USE_PLUGINS">
154 <values>0,1</values>
155 <default-value>1</default-value>
156 <description>
157 Build parts of the library as dynamically loadable plugins
158 (only supported in multilib build)?
159 </description>
160 </option>
161 </if>
162 <if cond="FORMAT!='autoconf'">
163 <set var="USE_PLUGINS">0</set> <!-- FIXME - temporary -->
164 </if>
165
166 <option name="USE_GUI">
167 <values>0,1</values>
168 <values-description>Base,GUI</values-description>
169 <default-value>1</default-value>
170 <description>
171 Build GUI libraries?
172 </description>
173 </option>
174
175 <option name="USE_HTML">
176 <values>0,1</values>
177 <default-value>1</default-value>
178 <description>
179 Build wxHTML library (USE_GUI must be 1)?
180 </description>
181 </option>
182
183 <option name="USE_MEDIA">
184 <values>0,1</values>
185 <default-value>1</default-value>
186 <description>
187 Build multimedia library (USE_GUI must be 1)?
188 </description>
189 </option>
190
191 <option name="USE_XRC">
192 <values>0,1</values>
193 <default-value>1</default-value>
194 <description>
195 Build wxXRC library (USE_GUI must be 1)?
196 </description>
197 </option>
198
199 <option name="USE_OPENGL">
200 <values>0,1</values>
201 <default-value>0</default-value>
202 <description>
203 Build OpenGL canvas library (USE_GUI must be 1)?
204 </description>
205 </option>
206
207 <option name="USE_ODBC">
208 <values>0,1</values>
209 <default-value>0</default-value>
210 <description>
211 Build ODBC database classes (USE_GUI must be 1)?
212 </description>
213 </option>
214
215 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
216 <set var="USE_QA_DEFAULT">
217 <if cond="FORMAT in ['msvc','msvc6prj']">1</if>
218 <if cond="FORMAT not in ['msvc','msvc6prj']">0</if>
219 </set>
220 <option name="USE_QA">
221 <values>0,1</values>
222 <default-value>$(USE_QA_DEFAULT)</default-value>
223 <description>
224 Build quality assurance classes library (USE_GUI must be 1)?
225 </description>
226 </option>
227
228 <option name="USE_EXCEPTIONS">
229 <values>0,1</values>
230 <default-value>1</default-value>
231 <description>
232 Enable exceptions in compiled code.
233 </description>
234 </option>
235
236 <option name="USE_RTTI">
237 <values>0,1</values>
238 <default-value>1</default-value>
239 <description>
240 Enable run-time type information (RTTI) in compiled code.
241 </description>
242 </option>
243
244 <option name="USE_THREADS">
245 <values>0,1</values>
246 <default-value>1</default-value>
247 <description>
248 Enable threading in compiled code.
249 </description>
250 </option>
251
252 <option name="OFFICIAL_BUILD">
253 <values>0,1</values>
254 <default-value>0</default-value>
255 <description>
256 Is this official build by wxWidgets developers?
257 </description>
258 </option>
259 <option name="VENDOR">
260 <default-value>custom</default-value>
261 <description>
262 Use this to name your customized DLLs differently
263 </description>
264 </option>
265 <!-- These basically do what vendor does in the places it didn't. -->
266 <!-- They should all be unified under some suitable descriptor -->
267 <option name="WX_FLAVOUR">
268 <default-value></default-value>
269 </option>
270 <option name="WX_LIB_FLAVOUR">
271 <default-value></default-value>
272 </option>
273
274 <option name="CFG">
275 <default-value></default-value>
276 <description>
277 Name of your custom configuration. This affects directory
278 where object files are stored as well as the location of
279 compiled .lib files and setup.h under the lib/ toplevel directory.
280 </description>
281 </option>
282
283 <!-- unit tests support: -->
284 <option name="CPPUNIT_CFLAGS">
285 <default-value></default-value>
286 <description>
287 Compiler flags needed to compile test suite in tests directory. If you want
288 to run the tests, set it so that the compiler can find CppUnit headers.
289 </description>
290 </option>
291
292 <option name="CPPUNIT_LIBS">
293 <default-value></default-value>
294 <description>
295 Linker flags needed to link test suite in tests directory. If you want
296 to run the tests, include CppUnit library here.
297 </description>
298 </option>
299
300
301 <!-- ================================================================== -->
302 <!-- Autoconf -->
303 <!-- ================================================================== -->
304
305 <if cond="FORMAT=='autoconf'">
306 <option name="DEREZ"/>
307 <option name="TOOLKIT"/>
308 <option name="TOOLKIT_LOWERCASE"/>
309 <option name="TOOLKIT_VERSION"/>
310 <option name="TOOLCHAIN_NAME"/>
311 <option name="TOOLCHAIN_FULLNAME"/>
312 <option name="EXTRALIBS"/>
313 <option name="EXTRALIBS_XML"/>
314 <option name="EXTRALIBS_HTML"/>
315 <option name="EXTRALIBS_ODBC"/>
316 <option name="EXTRALIBS_GUI"/>
317 <option name="EXTRALIBS_OPENGL"/>
318 <option name="EXTRALIBS_SDL"/>
319 <option name="EXTRALIBS_GNOMEPRINT"/>
320 <option name="HOST_SUFFIX"/>
321 <option name="SAMPLES_RPATH_FLAG"/>
322 <option name="SAMPLES_RPATH_POSTLINK"/>
323
324 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
325 <set var="RUNTIME_LIBS">dynamic</set>
326 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
327
328 <option name="WITH_PLUGIN_SDL">
329 <values>0,1</values>
330 </option>
331 </if>
332
333
334 <!-- ================================================================== -->
335 <!-- windows/dos/os2 compilers -->
336 <!-- ================================================================== -->
337
338 <if cond="FORMAT!='autoconf'">
339 <option name="RUNTIME_LIBS">
340 <values>dynamic,static</values>
341 <default-value>dynamic</default-value>
342 <description>
343 Version of C runtime library to use. You can change this to
344 static if SHARED=0, but it is highly recommended to not do
345 it if SHARED=1 unless you know what you are doing.
346 </description>
347 </option>
348
349 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
350
351 <set var="TOOLKIT" overwrite="0">
352 <if cond="FORMAT=='msevc4prj'">WINCE</if>
353 <if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if>
354 <if cond="PLATFORM_MSDOS=='1'">MGL</if>
355 <if cond="PLATFORM_OS2=='1'">PM</if>
356 </set>
357 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
358 <set var="TOOLKIT_VERSION"/>
359 <set var="HOST_SUFFIX"/>
360 <set var="EXTRACFLAGS"/>
361 <set var="EXTRALIBS"/>
362 <set var="EXTRALIBS_XML"/>
363 <set var="EXTRALIBS_HTML"/>
364 <set var="EXTRALIBS_ODBC"/>
365 <set var="EXTRALIBS_GUI"/>
366 <set var="EXTRALIBS_OPENGL">
367 <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if>
368 <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
369 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
370 </set>
371 <set var="EXTRALIBS_SDL"/>
372 <set var="EXTRALIBS_GNOMEPRINT"/>
373
374 <set var="WITH_PLUGIN_SDL">0</set>
375
376 <set var="SRCDIR">
377 <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if>
378 <if cond="BUILDING_LIB=='0'">.</if>
379 </set>
380 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
381 </if>
382
383 <if cond="FORMAT=='mingw'">
384 <option name="GCC_VERSION">
385 <values>3,2.95</values>
386 <default-value>3</default-value>
387 <description>
388 Set the version of your Mingw installation here.
389 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
390 "2.95" ... for Mingw 1.1 or any of the older versions
391 </description>
392 </option>
393 <set var="GCCFLAGS">
394 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
395 </set>
396 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
397 </if>
398
399 <if cond="FORMAT=='cbuilderx'">
400 <set var="EXTRACFLAGS">
401 <if cond="COMPILER=='gcc'">-DHAVE_W32API_H</if>
402 </set>
403 </if>
404
405
406 <!-- ================================================================== -->
407 <!-- Project files - hardcode some defaults -->
408 <!-- ================================================================== -->
409
410 <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
411 <set var="RUNTIME_LIBS">dynamic</set>
412 <set var="OFFICIAL_BUILD">0</set>
413 <set var="USE_HTML">1</set>
414 <set var="USE_MEDIA">1</set>
415 <set var="USE_XRC">1</set>
416 <set var="USE_OPENGL">1</set>
417 <set var="USE_ODBC">1</set>
418 <set var="USE_QA">1</set>
419 <set var="MONOLITHIC">0</set>
420 <set var="USE_GUI">1</set>
421 <set var="USE_EXCEPTIONS">1</set>
422 <set var="USE_RTTI">1</set>
423 <set var="USE_THREADS">1</set>
424 <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
425 <set var="DEBUG_FLAG">default</set>
426 <set var="MSLU">0</set>
427 </if>
428
429
430 <!-- FIXME:
431 C++BuilderX supports only wxMSW, monolithic (sic!) static build
432 and the project can't be put into build/msw and store objects in
433 build/msw/something. This *must* be fixed! -->
434 <if cond="FORMAT=='cbuilderx'">
435 <set var="WXUNIV">0</set>
436 <set var="MONOLITHIC">1</set>
437 <set var="SRCDIR">.</set>
438 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
439 <set var="SHARED">0</set>
440 </if>
441
442
443 <!-- DigitalMars make is braindead, it doesn't have conditional
444 processing: -->
445 <if cond="FORMAT=='dmars'">
446 <set var="RUNTIME_LIBS">static</set>
447 <set var="BUILD">debug</set>
448 <set var="SHARED">0</set>
449 <set var="WXUNIV">0</set>
450 <set var="UNICODE">0</set>
451 <!-- Free version does not distribute OpenGL,
452 in commercial distribution better use dmars_smake format -->
453 <set var="USE_OPENGL">0</set>
454 </if>
455
456 <!-- No need for wxUniv on embedded devices (yet): -->
457 <if cond="FORMAT=='msevc4prj'">
458 <set var="WXUNIV">0</set>
459 <set var="UNICODE">1</set>
460 <!-- Uploading debug reports from PDAs seems impractical -->
461 <set var="USE_QA">0</set>
462 <set var="MONOLITHIC">1</set> <!-- sic! -->
463 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
464 <set var="USE_RTTI">0</set>
465 <set var="USE_EXCEPTIONS">0</set>
466 </if>
467
468 <!-- Need for wxUniv within wxMGL: -->
469 <if cond="FORMAT!='autoconf' and TOOLKIT=='MGL'">
470 <set var="WXUNIV">1</set>
471 <set var="USE_THREADS">0</set>
472 <set var="RUNTIME_LIBS">static</set>
473 </if>
474
475 </makefile>