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