]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/config.bkl
forgot to release capture
[wxWidgets.git] / build / bakefiles / config.bkl
CommitLineData
ddf98968
VS
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
61639efb 5
cc8953a6
VS
6 <set var="IS_MSVC_PRJ">
7 $(FORMAT in ['msvc6prj','msevc4prj','msvs2003prj','msvs2005prj'])
8 </set>
9
498368e9
VS
10 <set var="BUILDING_LIB" overwrite="0">0</set>
11
c8d58531
MW
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
6990514b
VS
35 <option name="SHARED">
36 <values>0,1</values>
37 <values-description>,DLL</values-description>
252b53f5 38 <default-value>0</default-value>
6990514b
VS
39 <description>
40 What type of library to build?
41 </description>
42 </option>
61639efb 43
6990514b
VS
44 <option name="WXUNIV">
45 <values>0,1</values>
d3e6602e 46 <values-description>,Universal</values-description>
6990514b
VS
47 <default-value>0</default-value>
48 <description>
49 Build wxUniversal instead of native port?
50 </description>
51 </option>
52
24dfe917
VS
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>
6990514b 69
416f5bc8
VS
70 <if cond="FORMAT!='autoconf' and FORMAT!='watcom'">
71 <option name="MSLU">
72 <values>0,1</values>
61639efb 73 <default-value>0</default-value>
416f5bc8
VS
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
4f6e1dac 83 <option name="BUILD">
6990514b
VS
84 <values>debug,release</values>
85 <values-description>Debug,Release</values-description>
252b53f5 86 <default-value>debug</default-value>
4f6e1dac
VS
87 <description>
88 Type of compiled binaries
89 </description>
90 </option>
1dba7b4c 91
e40b74ba
MW
92 <if cond="FORMAT=='msvc'">
93 <option name="TARGET_CPU">
e40b74ba
MW
94 <default-value>$(DOLLAR)(CPU)</default-value>
95 <description>
96The target processor architecture must be specified when it is not X86.
97This does not affect the compiler output, so you still need to make sure
98your environment is set up appropriately with the correct compiler in the
99PATH. Rather it affects some options passed to some of the common build
100utilities such as the resource compiler and the linker.
b1e411d9
VS
101
102Accepted values: AMD64, IA64.
e40b74ba
MW
103 </description>
104 </option>
105 </if>
106 <if cond="FORMAT!='msvc'">
107 <set var="TARGET_CPU"/>
108 </if>
109
8c249a59
VS
110 <!-- FIXME: restore this once bakefile is fixed to not use
111 /Gm /GZ (incompatible with /O2) w/ debug-info -->
9d33d6b8 112 <set var="DEBUG_INFO_DEFAULT">
7a4fa569
VS
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>
9d33d6b8 115 </set>
8c249a59
VS
116 -->
117 <set var="DEBUG_INFO_DEFAULT">default</set>
61639efb 118
4f6e1dac 119 <option name="DEBUG_INFO">
6990514b 120 <values>0,1,default</values>
9d33d6b8 121 <default-value>$(DEBUG_INFO_DEFAULT)</default-value>
4f6e1dac
VS
122 <description>
123Should debugging info be included in the executables? The default value
124"default" means that debug info will be included if BUILD=debug
125and not included if BUILD=release.
126 </description>
127 </option>
61639efb 128
4f6e1dac 129 <option name="DEBUG_FLAG">
6990514b 130 <values>0,1,default</values>
4f6e1dac
VS
131 <default-value>default</default-value>
132 <description>
133Should __WXDEBUG__ be defined? The default value "default" means that it will
134be 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">
6990514b 140 <values>0,1,default</values>
4f6e1dac
VS
141 <default-value>default</default-value>
142 <description>
143Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
9d33d6b8 144Acts according to BUILD by default.
4f6e1dac
VS
145 </description>
146 </option>
147 </if>
148 <if cond="FORMAT!='msvc'">
149 <set var="DEBUG_RUNTIME_LIBS">default</set>
150 </if>
8998a324
VS
151
152 <set var="MONOLITHIC_DEFAULT">
153 <if cond="FORMAT=='watcom'">1</if>
154 <if cond="FORMAT!='watcom'">0</if>
155 </set>
ddf98968 156 <option name="MONOLITHIC">
6990514b
VS
157 <values>0,1</values>
158 <values-description>Multilib,Monolithic</values-description>
8998a324 159 <default-value>$(MONOLITHIC_DEFAULT)</default-value>
ddf98968
VS
160 <description>
161 Multiple libraries or single huge monolithic one?
162 </description>
163 </option>
61639efb 164
c79241a2
VS
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>
61639efb 178
ddf98968 179 <option name="USE_GUI">
6990514b
VS
180 <values>0,1</values>
181 <values-description>Base,GUI</values-description>
ddf98968
VS
182 <default-value>1</default-value>
183 <description>
184 Build GUI libraries?
185 </description>
186 </option>
61639efb 187
4d264332 188 <option name="USE_HTML">
6990514b 189 <values>0,1</values>
4d264332
VS
190 <default-value>1</default-value>
191 <description>
192 Build wxHTML library (USE_GUI must be 1)?
193 </description>
194 </option>
61639efb 195
557002cf
VZ
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
3849327b
VS
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>
61639efb 211
50acee04
JS
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
3b2cb431
JS
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
54429bb3
RD
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
4d264332 236 <option name="USE_OPENGL">
6990514b 237 <values>0,1</values>
a3aa294d 238 <default-value>0</default-value>
4d264332
VS
239 <description>
240 Build OpenGL canvas library (USE_GUI must be 1)?
241 </description>
242 </option>
61639efb 243
aae7e12e
VZ
244 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
245 <set var="USE_QA_DEFAULT">
7a4fa569
VS
246 <if cond="FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">1</if>
247 <if cond="FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">0</if>
aae7e12e 248 </set>
61639efb
VZ
249 <option name="USE_QA">
250 <values>0,1</values>
b1ac62dd 251 <default-value>$(USE_QA_DEFAULT)</default-value>
61639efb
VZ
252 <description>
253 Build quality assurance classes library (USE_GUI must be 1)?
254 </description>
255 </option>
256
9833a21a
VS
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>
61639efb 264
c2efd890
VZ
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>
61639efb 272
d1e5aa07
VS
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>
61639efb 280
2713e629
RD
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
4fc5f509 291 <option name="OFFICIAL_BUILD">
6990514b 292 <values>0,1</values>
4fc5f509
VS
293 <default-value>0</default-value>
294 <description>
77ffb593 295 Is this official build by wxWidgets developers?
4fc5f509
VS
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>
589e20d0
RL
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>
cff5df9f
VS
312
313 <option name="CFG">
314 <default-value></default-value>
315 <description>
4f6e1dac
VS
316Name of your custom configuration. This affects directory
317where object files are stored as well as the location of
318compiled .lib files and setup.h under the lib/ toplevel directory.
cff5df9f 319 </description>
670ec357
VS
320 </option>
321
322 <!-- unit tests support: -->
323 <option name="CPPUNIT_CFLAGS">
324 <default-value></default-value>
325 <description>
326Compiler flags needed to compile test suite in tests directory. If you want
327to run the tests, set it so that the compiler can find CppUnit headers.
328 </description>
329 </option>
61639efb 330
670ec357
VS
331 <option name="CPPUNIT_LIBS">
332 <default-value></default-value>
333 <description>
334Linker flags needed to link test suite in tests directory. If you want
335to run the tests, include CppUnit library here.
336 </description>
cff5df9f 337 </option>
61639efb
VZ
338
339
eefdc53a
VS
340 <!-- ================================================================== -->
341 <!-- Autoconf -->
342 <!-- ================================================================== -->
61639efb
VZ
343
344 <if cond="FORMAT=='autoconf'">
ddf98968
VS
345 <option name="DEREZ"/>
346 <option name="TOOLKIT"/>
347 <option name="TOOLKIT_LOWERCASE"/>
348 <option name="TOOLKIT_VERSION"/>
157a3440 349 <option name="TOOLCHAIN_NAME"/>
ceec2216 350 <option name="TOOLCHAIN_FULLNAME"/>
ddf98968 351 <option name="EXTRALIBS"/>
a69544bf 352 <option name="EXTRALIBS_XML"/>
c839485c 353 <option name="EXTRALIBS_HTML"/>
2f8711ed 354 <option name="EXTRALIBS_MEDIA"/>
c74dc163 355 <option name="EXTRALIBS_GUI"/>
34b08d2c 356 <option name="EXTRALIBS_OPENGL"/>
c79241a2 357 <option name="EXTRALIBS_SDL"/>
7fcba069 358 <option name="EXTRALIBS_GNOMEPRINT"/>
b1b592ad 359 <option name="CXXWARNINGS"/>
ea66c762 360 <option name="HOST_SUFFIX"/>
ef0add05
VS
361 <option name="SAMPLES_RPATH_FLAG"/>
362 <option name="SAMPLES_RPATH_POSTLINK"/>
61639efb 363
4843dc4c 364 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
4b44ea2b 365 <set var="RUNTIME_LIBS">dynamic</set>
e54bb212 366 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
61639efb 367
c79241a2
VS
368 <option name="WITH_PLUGIN_SDL">
369 <values>0,1</values>
370 </option>
6589dc98
VS
371
372 <option name="wx_top_builddir"/>
ddf98968
VS
373 </if>
374
61639efb 375
eefdc53a 376 <!-- ================================================================== -->
1dba7b4c 377 <!-- windows/dos/os2 compilers -->
eefdc53a
VS
378 <!-- ================================================================== -->
379
ddf98968 380 <if cond="FORMAT!='autoconf'">
4b44ea2b 381 <option name="RUNTIME_LIBS">
6990514b 382 <values>dynamic,static</values>
4b44ea2b
VS
383 <default-value>dynamic</default-value>
384 <description>
4f6e1dac
VS
385Version of C runtime library to use. You can change this to
386static if SHARED=0, but it is highly recommended to not do
387it if SHARED=1 unless you know what you are doing.
4b44ea2b
VS
388 </description>
389 </option>
61639efb 390
4843dc4c
VS
391 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
392
a92d711e 393 <set var="TOOLKIT" overwrite="0">
af594eca 394 <if cond="FORMAT=='msevc4prj'">WINCE</if>
1dba7b4c 395 <if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if>
b8af111f 396 <if cond="PLATFORM_MSDOS=='1'">MGL</if>
1dba7b4c 397 <if cond="PLATFORM_OS2=='1'">PM</if>
af594eca 398 </set>
eefdc53a
VS
399 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
400 <set var="TOOLKIT_VERSION"/>
ea66c762 401 <set var="HOST_SUFFIX"/>
22cef566 402 <set var="EXTRACFLAGS"/>
6f53cd7c 403 <set var="EXTRALIBS"/>
a69544bf 404 <set var="EXTRALIBS_XML"/>
c839485c 405 <set var="EXTRALIBS_HTML"/>
2f8711ed 406 <set var="EXTRALIBS_MEDIA"/>
c74dc163 407 <set var="EXTRALIBS_GUI"/>
22cef566 408 <set var="EXTRALIBS_OPENGL">
43b0b6bc 409 <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if>
af594eca 410 <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
22cef566
VS
411 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
412 </set>
c79241a2 413 <set var="EXTRALIBS_SDL"/>
7fcba069 414 <set var="EXTRALIBS_GNOMEPRINT"/>
c79241a2
VS
415
416 <set var="WITH_PLUGIN_SDL">0</set>
eefdc53a 417
cdc0282e 418 <set var="SRCDIR">
6990514b 419 <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if>
cdc0282e
VS
420 <if cond="BUILDING_LIB=='0'">.</if>
421 </set>
4843dc4c 422 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
ddf98968 423 </if>
61639efb 424
65fb1c11
VS
425 <if cond="FORMAT=='mingw'">
426 <option name="GCC_VERSION">
6990514b 427 <values>3,2.95</values>
65fb1c11
VS
428 <default-value>3</default-value>
429 <description>
4f6e1dac
VS
430Set 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
65fb1c11
VS
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>
d17bdeab 440
328f5196 441
d17bdeab
VS
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>
32a52290 449 <set var="USE_AUI">1</set>
3b2cb431 450 <set var="USE_RICHTEXT">1</set>
54429bb3 451 <set var="USE_STC">1</set>
d17bdeab 452 <set var="USE_HTML">1</set>
32a52290 453 <set var="USE_MEDIA">1</set>
3849327b 454 <set var="USE_XRC">1</set>
d17bdeab 455 <set var="USE_OPENGL">1</set>
61639efb 456 <set var="USE_QA">1</set>
d17bdeab
VS
457 <set var="MONOLITHIC">0</set>
458 <set var="USE_GUI">1</set>
9833a21a 459 <set var="USE_EXCEPTIONS">1</set>
c2efd890 460 <set var="USE_RTTI">1</set>
d1e5aa07 461 <set var="USE_THREADS">1</set>
2713e629 462 <if cond="FORMAT!='autoconf'"><set var="USE_GDIPLUS">0</set></if>
9d33d6b8 463 <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
d17bdeab
VS
464 <set var="DEBUG_FLAG">default</set>
465 <set var="MSLU">0</set>
466 </if>
467
e6e885fd
VS
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>
4fc1c0f0 476 <set var="UNICODE">1</set>
f46a065c
WS
477 <!-- Free version does not distribute OpenGL,
478 in commercial distribution better use dmars_smake format -->
479 <set var="USE_OPENGL">0</set>
e6e885fd
VS
480 </if>
481
af594eca
VS
482 <!-- No need for wxUniv on embedded devices (yet): -->
483 <if cond="FORMAT=='msevc4prj'">
484 <set var="WXUNIV">0</set>
1dba7b4c 485 <!-- Uploading debug reports from PDAs seems impractical -->
61639efb 486 <set var="USE_QA">0</set>
bc858dcf 487 <set var="MONOLITHIC">1</set> <!-- sic! -->
5bcb84f8
VZ
488 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
489 <set var="USE_RTTI">0</set>
490 <set var="USE_EXCEPTIONS">0</set>
af594eca
VS
491 </if>
492
b8af111f 493 <!-- Need for wxUniv within wxMGL: -->
4c4863db 494 <if cond="FORMAT!='autoconf' and TOOLKIT=='MGL'">
b8af111f 495 <set var="WXUNIV">1</set>
43b0b6bc 496 <set var="USE_THREADS">0</set>
7ee1ea9d 497 <set var="RUNTIME_LIBS">static</set>
b8af111f
WS
498 </if>
499
ddf98968 500</makefile>