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