]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/config.bkl
added the cast to wxFontMapperBase erroneously removed by the last change
[wxWidgets.git] / build / bakefiles / config.bkl
CommitLineData
ddf98968
VS
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
61639efb 5
498368e9
VS
6 <set var="BUILDING_LIB" overwrite="0">0</set>
7
c8d58531
MW
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
6990514b
VS
31 <option name="SHARED">
32 <values>0,1</values>
33 <values-description>,DLL</values-description>
252b53f5 34 <default-value>0</default-value>
6990514b
VS
35 <description>
36 What type of library to build?
37 </description>
38 </option>
61639efb 39
6990514b
VS
40 <option name="WXUNIV">
41 <values>0,1</values>
d3e6602e 42 <values-description>,Universal</values-description>
6990514b
VS
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>
61639efb 52 <default-value>0</default-value>
6990514b 53 <description>
77ffb593 54 Compile Unicode build of wxWidgets?
6990514b
VS
55 </description>
56 </option>
57
416f5bc8
VS
58 <if cond="FORMAT!='autoconf' and FORMAT!='watcom'">
59 <option name="MSLU">
60 <values>0,1</values>
61639efb 61 <default-value>0</default-value>
416f5bc8
VS
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
4f6e1dac 71 <option name="BUILD">
6990514b
VS
72 <values>debug,release</values>
73 <values-description>Debug,Release</values-description>
252b53f5 74 <default-value>debug</default-value>
4f6e1dac
VS
75 <description>
76 Type of compiled binaries
77 </description>
78 </option>
1dba7b4c 79
e40b74ba
MW
80 <if cond="FORMAT=='msvc'">
81 <option name="TARGET_CPU">
e40b74ba
MW
82 <default-value>$(DOLLAR)(CPU)</default-value>
83 <description>
84The target processor architecture must be specified when it is not X86.
85This does not affect the compiler output, so you still need to make sure
86your environment is set up appropriately with the correct compiler in the
87PATH. Rather it affects some options passed to some of the common build
88utilities such as the resource compiler and the linker.
b1e411d9
VS
89
90Accepted values: AMD64, IA64.
e40b74ba
MW
91 </description>
92 </option>
93 </if>
94 <if cond="FORMAT!='msvc'">
95 <set var="TARGET_CPU"/>
96 </if>
97
8c249a59
VS
98 <!-- FIXME: restore this once bakefile is fixed to not use
99 /Gm /GZ (incompatible with /O2) w/ debug-info -->
9d33d6b8
VS
100 <set var="DEBUG_INFO_DEFAULT">
101 <if cond="FORMAT in ['msvc','msvc6prj','msevc4prj']">1</if>
102 <if cond="FORMAT not in ['msvc','msvc6prj','msevc4prj']">default</if>
103 </set>
8c249a59
VS
104 -->
105 <set var="DEBUG_INFO_DEFAULT">default</set>
61639efb 106
4f6e1dac 107 <option name="DEBUG_INFO">
6990514b 108 <values>0,1,default</values>
9d33d6b8 109 <default-value>$(DEBUG_INFO_DEFAULT)</default-value>
4f6e1dac
VS
110 <description>
111Should debugging info be included in the executables? The default value
112"default" means that debug info will be included if BUILD=debug
113and not included if BUILD=release.
114 </description>
115 </option>
61639efb 116
4f6e1dac 117 <option name="DEBUG_FLAG">
6990514b 118 <values>0,1,default</values>
4f6e1dac
VS
119 <default-value>default</default-value>
120 <description>
121Should __WXDEBUG__ be defined? The default value "default" means that it will
122be defined if BUILD=debug and not defined if BUILD=release.
123 </description>
124 </option>
125
126 <if cond="FORMAT=='msvc'">
127 <option name="DEBUG_RUNTIME_LIBS">
6990514b 128 <values>0,1,default</values>
4f6e1dac
VS
129 <default-value>default</default-value>
130 <description>
131Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
9d33d6b8 132Acts according to BUILD by default.
4f6e1dac
VS
133 </description>
134 </option>
135 </if>
136 <if cond="FORMAT!='msvc'">
137 <set var="DEBUG_RUNTIME_LIBS">default</set>
138 </if>
8998a324
VS
139
140 <set var="MONOLITHIC_DEFAULT">
141 <if cond="FORMAT=='watcom'">1</if>
142 <if cond="FORMAT!='watcom'">0</if>
143 </set>
ddf98968 144 <option name="MONOLITHIC">
6990514b
VS
145 <values>0,1</values>
146 <values-description>Multilib,Monolithic</values-description>
8998a324 147 <default-value>$(MONOLITHIC_DEFAULT)</default-value>
ddf98968
VS
148 <description>
149 Multiple libraries or single huge monolithic one?
150 </description>
151 </option>
61639efb 152
c79241a2
VS
153 <if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary -->
154 <option name="USE_PLUGINS">
155 <values>0,1</values>
156 <default-value>1</default-value>
157 <description>
158 Build parts of the library as dynamically loadable plugins
159 (only supported in multilib build)?
160 </description>
161 </option>
162 </if>
163 <if cond="FORMAT!='autoconf'">
164 <set var="USE_PLUGINS">0</set> <!-- FIXME - temporary -->
165 </if>
61639efb 166
ddf98968 167 <option name="USE_GUI">
6990514b
VS
168 <values>0,1</values>
169 <values-description>Base,GUI</values-description>
ddf98968
VS
170 <default-value>1</default-value>
171 <description>
172 Build GUI libraries?
173 </description>
174 </option>
61639efb 175
4d264332 176 <option name="USE_HTML">
6990514b 177 <values>0,1</values>
4d264332
VS
178 <default-value>1</default-value>
179 <description>
180 Build wxHTML library (USE_GUI must be 1)?
181 </description>
182 </option>
61639efb 183
557002cf
VZ
184 <option name="USE_MEDIA">
185 <values>0,1</values>
186 <default-value>1</default-value>
187 <description>
188 Build multimedia library (USE_GUI must be 1)?
189 </description>
190 </option>
191
3849327b
VS
192 <option name="USE_XRC">
193 <values>0,1</values>
194 <default-value>1</default-value>
195 <description>
196 Build wxXRC library (USE_GUI must be 1)?
197 </description>
198 </option>
61639efb 199
50acee04
JS
200 <option name="USE_AUI">
201 <values>0,1</values>
202 <default-value>1</default-value>
203 <description>
204 Build wxAUI library (USE_GUI must be 1)?
205 </description>
206 </option>
207
4d264332 208 <option name="USE_OPENGL">
6990514b 209 <values>0,1</values>
a3aa294d 210 <default-value>0</default-value>
4d264332
VS
211 <description>
212 Build OpenGL canvas library (USE_GUI must be 1)?
213 </description>
214 </option>
61639efb 215
bb41dcbe 216 <option name="USE_ODBC">
6990514b 217 <values>0,1</values>
bb41dcbe
VS
218 <default-value>0</default-value>
219 <description>
220 Build ODBC database classes (USE_GUI must be 1)?
221 </description>
222 </option>
61639efb 223
aae7e12e
VZ
224 <!-- currently only VC++ can compile wxDebugReport which is in QA lib -->
225 <set var="USE_QA_DEFAULT">
226 <if cond="FORMAT in ['msvc','msvc6prj']">1</if>
227 <if cond="FORMAT not in ['msvc','msvc6prj']">0</if>
228 </set>
61639efb
VZ
229 <option name="USE_QA">
230 <values>0,1</values>
b1ac62dd 231 <default-value>$(USE_QA_DEFAULT)</default-value>
61639efb
VZ
232 <description>
233 Build quality assurance classes library (USE_GUI must be 1)?
234 </description>
235 </option>
236
9833a21a
VS
237 <option name="USE_EXCEPTIONS">
238 <values>0,1</values>
239 <default-value>1</default-value>
240 <description>
241 Enable exceptions in compiled code.
242 </description>
243 </option>
61639efb 244
c2efd890
VZ
245 <option name="USE_RTTI">
246 <values>0,1</values>
247 <default-value>1</default-value>
248 <description>
249 Enable run-time type information (RTTI) in compiled code.
250 </description>
251 </option>
61639efb 252
d1e5aa07
VS
253 <option name="USE_THREADS">
254 <values>0,1</values>
255 <default-value>1</default-value>
256 <description>
257 Enable threading in compiled code.
258 </description>
259 </option>
61639efb 260
4fc5f509 261 <option name="OFFICIAL_BUILD">
6990514b 262 <values>0,1</values>
4fc5f509
VS
263 <default-value>0</default-value>
264 <description>
77ffb593 265 Is this official build by wxWidgets developers?
4fc5f509
VS
266 </description>
267 </option>
268 <option name="VENDOR">
269 <default-value>custom</default-value>
270 <description>
271 Use this to name your customized DLLs differently
272 </description>
273 </option>
589e20d0
RL
274 <!-- These basically do what vendor does in the places it didn't. -->
275 <!-- They should all be unified under some suitable descriptor -->
276 <option name="WX_FLAVOUR">
277 <default-value></default-value>
278 </option>
279 <option name="WX_LIB_FLAVOUR">
280 <default-value></default-value>
281 </option>
cff5df9f
VS
282
283 <option name="CFG">
284 <default-value></default-value>
285 <description>
4f6e1dac
VS
286Name of your custom configuration. This affects directory
287where object files are stored as well as the location of
288compiled .lib files and setup.h under the lib/ toplevel directory.
cff5df9f 289 </description>
670ec357
VS
290 </option>
291
292 <!-- unit tests support: -->
293 <option name="CPPUNIT_CFLAGS">
294 <default-value></default-value>
295 <description>
296Compiler flags needed to compile test suite in tests directory. If you want
297to run the tests, set it so that the compiler can find CppUnit headers.
298 </description>
299 </option>
61639efb 300
670ec357
VS
301 <option name="CPPUNIT_LIBS">
302 <default-value></default-value>
303 <description>
304Linker flags needed to link test suite in tests directory. If you want
305to run the tests, include CppUnit library here.
306 </description>
cff5df9f 307 </option>
61639efb
VZ
308
309
eefdc53a
VS
310 <!-- ================================================================== -->
311 <!-- Autoconf -->
312 <!-- ================================================================== -->
61639efb
VZ
313
314 <if cond="FORMAT=='autoconf'">
ddf98968
VS
315 <option name="DEREZ"/>
316 <option name="TOOLKIT"/>
317 <option name="TOOLKIT_LOWERCASE"/>
318 <option name="TOOLKIT_VERSION"/>
157a3440 319 <option name="TOOLCHAIN_NAME"/>
ceec2216 320 <option name="TOOLCHAIN_FULLNAME"/>
ddf98968 321 <option name="EXTRALIBS"/>
a69544bf 322 <option name="EXTRALIBS_XML"/>
c839485c 323 <option name="EXTRALIBS_HTML"/>
bb41dcbe 324 <option name="EXTRALIBS_ODBC"/>
c74dc163 325 <option name="EXTRALIBS_GUI"/>
34b08d2c 326 <option name="EXTRALIBS_OPENGL"/>
c79241a2 327 <option name="EXTRALIBS_SDL"/>
7fcba069 328 <option name="EXTRALIBS_GNOMEPRINT"/>
ea66c762 329 <option name="HOST_SUFFIX"/>
ef0add05
VS
330 <option name="SAMPLES_RPATH_FLAG"/>
331 <option name="SAMPLES_RPATH_POSTLINK"/>
61639efb 332
4843dc4c 333 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
4b44ea2b 334 <set var="RUNTIME_LIBS">dynamic</set>
e54bb212 335 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
61639efb 336
c79241a2
VS
337 <option name="WITH_PLUGIN_SDL">
338 <values>0,1</values>
339 </option>
ddf98968
VS
340 </if>
341
61639efb 342
eefdc53a 343 <!-- ================================================================== -->
1dba7b4c 344 <!-- windows/dos/os2 compilers -->
eefdc53a
VS
345 <!-- ================================================================== -->
346
ddf98968 347 <if cond="FORMAT!='autoconf'">
4b44ea2b 348 <option name="RUNTIME_LIBS">
6990514b 349 <values>dynamic,static</values>
4b44ea2b
VS
350 <default-value>dynamic</default-value>
351 <description>
4f6e1dac
VS
352Version of C runtime library to use. You can change this to
353static if SHARED=0, but it is highly recommended to not do
354it if SHARED=1 unless you know what you are doing.
4b44ea2b
VS
355 </description>
356 </option>
61639efb 357
4843dc4c
VS
358 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
359
a92d711e 360 <set var="TOOLKIT" overwrite="0">
af594eca 361 <if cond="FORMAT=='msevc4prj'">WINCE</if>
1dba7b4c 362 <if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if>
b8af111f 363 <if cond="PLATFORM_MSDOS=='1'">MGL</if>
1dba7b4c 364 <if cond="PLATFORM_OS2=='1'">PM</if>
af594eca 365 </set>
eefdc53a
VS
366 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
367 <set var="TOOLKIT_VERSION"/>
ea66c762 368 <set var="HOST_SUFFIX"/>
22cef566 369 <set var="EXTRACFLAGS"/>
6f53cd7c 370 <set var="EXTRALIBS"/>
a69544bf 371 <set var="EXTRALIBS_XML"/>
c839485c 372 <set var="EXTRALIBS_HTML"/>
bb41dcbe 373 <set var="EXTRALIBS_ODBC"/>
c74dc163 374 <set var="EXTRALIBS_GUI"/>
22cef566 375 <set var="EXTRALIBS_OPENGL">
43b0b6bc 376 <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if>
af594eca 377 <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
22cef566
VS
378 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
379 </set>
c79241a2 380 <set var="EXTRALIBS_SDL"/>
7fcba069 381 <set var="EXTRALIBS_GNOMEPRINT"/>
c79241a2
VS
382
383 <set var="WITH_PLUGIN_SDL">0</set>
eefdc53a 384
cdc0282e 385 <set var="SRCDIR">
6990514b 386 <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if>
cdc0282e
VS
387 <if cond="BUILDING_LIB=='0'">.</if>
388 </set>
4843dc4c 389 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
ddf98968 390 </if>
61639efb 391
65fb1c11
VS
392 <if cond="FORMAT=='mingw'">
393 <option name="GCC_VERSION">
6990514b 394 <values>3,2.95</values>
65fb1c11
VS
395 <default-value>3</default-value>
396 <description>
4f6e1dac
VS
397Set the version of your Mingw installation here.
398 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
399 "2.95" ... for Mingw 1.1 or any of the older versions
65fb1c11
VS
400 </description>
401 </option>
402 <set var="GCCFLAGS">
403 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
404 </set>
405 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
406 </if>
d17bdeab 407
328f5196
VS
408 <if cond="FORMAT=='cbuilderx'">
409 <set var="EXTRACFLAGS">
410 <if cond="COMPILER=='gcc'">-DHAVE_W32API_H</if>
411 </set>
412 </if>
413
414
d17bdeab
VS
415 <!-- ================================================================== -->
416 <!-- Project files - hardcode some defaults -->
417 <!-- ================================================================== -->
418
419 <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
420 <set var="RUNTIME_LIBS">dynamic</set>
421 <set var="OFFICIAL_BUILD">0</set>
422 <set var="USE_HTML">1</set>
557002cf 423 <set var="USE_MEDIA">1</set>
3849327b 424 <set var="USE_XRC">1</set>
d17bdeab
VS
425 <set var="USE_OPENGL">1</set>
426 <set var="USE_ODBC">1</set>
61639efb 427 <set var="USE_QA">1</set>
d17bdeab
VS
428 <set var="MONOLITHIC">0</set>
429 <set var="USE_GUI">1</set>
9833a21a 430 <set var="USE_EXCEPTIONS">1</set>
c2efd890 431 <set var="USE_RTTI">1</set>
d1e5aa07 432 <set var="USE_THREADS">1</set>
9d33d6b8 433 <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
d17bdeab
VS
434 <set var="DEBUG_FLAG">default</set>
435 <set var="MSLU">0</set>
436 </if>
437
e6e885fd 438
328f5196
VS
439 <!-- FIXME:
440 C++BuilderX supports only wxMSW, monolithic (sic!) static build
441 and the project can't be put into build/msw and store objects in
442 build/msw/something. This *must* be fixed! -->
443 <if cond="FORMAT=='cbuilderx'">
444 <set var="WXUNIV">0</set>
445 <set var="MONOLITHIC">1</set>
446 <set var="SRCDIR">.</set>
447 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
448 <set var="SHARED">0</set>
449 </if>
450
451
e6e885fd
VS
452 <!-- DigitalMars make is braindead, it doesn't have conditional
453 processing: -->
454 <if cond="FORMAT=='dmars'">
455 <set var="RUNTIME_LIBS">static</set>
456 <set var="BUILD">debug</set>
457 <set var="SHARED">0</set>
458 <set var="WXUNIV">0</set>
459 <set var="UNICODE">0</set>
f46a065c
WS
460 <!-- Free version does not distribute OpenGL,
461 in commercial distribution better use dmars_smake format -->
462 <set var="USE_OPENGL">0</set>
e6e885fd
VS
463 </if>
464
af594eca
VS
465 <!-- No need for wxUniv on embedded devices (yet): -->
466 <if cond="FORMAT=='msevc4prj'">
467 <set var="WXUNIV">0</set>
468 <set var="UNICODE">1</set>
1dba7b4c 469 <!-- Uploading debug reports from PDAs seems impractical -->
61639efb 470 <set var="USE_QA">0</set>
bc858dcf 471 <set var="MONOLITHIC">1</set> <!-- sic! -->
5bcb84f8
VZ
472 <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
473 <set var="USE_RTTI">0</set>
474 <set var="USE_EXCEPTIONS">0</set>
af594eca
VS
475 </if>
476
b8af111f 477 <!-- Need for wxUniv within wxMGL: -->
4c4863db 478 <if cond="FORMAT!='autoconf' and TOOLKIT=='MGL'">
b8af111f 479 <set var="WXUNIV">1</set>
43b0b6bc 480 <set var="USE_THREADS">0</set>
7ee1ea9d 481 <set var="RUNTIME_LIBS">static</set>
b8af111f
WS
482 </if>
483
ddf98968 484</makefile>