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