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