]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/config.bkl
Minor output simplification. Significantly influences all makefiles but nothing regen...
[wxWidgets.git] / build / bakefiles / config.bkl
CommitLineData
ddf98968
VS
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
498368e9
VS
5
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>
16
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>
29 <default-value>0</default-value>
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>
38 <default-value>0</default-value>
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>
56
57 <option name="DEBUG_INFO">
6990514b 58 <values>0,1,default</values>
4f6e1dac
VS
59 <default-value>default</default-value>
60 <description>
61Should debugging info be included in the executables? The default value
62"default" means that debug info will be included if BUILD=debug
63and not included if BUILD=release.
64 </description>
65 </option>
66
67 <option name="DEBUG_FLAG">
6990514b 68 <values>0,1,default</values>
4f6e1dac
VS
69 <default-value>default</default-value>
70 <description>
71Should __WXDEBUG__ be defined? The default value "default" means that it will
72be defined if BUILD=debug and not defined if BUILD=release.
73 </description>
74 </option>
75
76 <if cond="FORMAT=='msvc'">
77 <option name="DEBUG_RUNTIME_LIBS">
6990514b 78 <values>0,1,default</values>
4f6e1dac
VS
79 <default-value>default</default-value>
80 <description>
81Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
82Acts according to DEBUG_INFO by default.
83 </description>
84 </option>
85 </if>
86 <if cond="FORMAT!='msvc'">
87 <set var="DEBUG_RUNTIME_LIBS">default</set>
88 </if>
8998a324
VS
89
90 <set var="MONOLITHIC_DEFAULT">
91 <if cond="FORMAT=='watcom'">1</if>
92 <if cond="FORMAT!='watcom'">0</if>
93 </set>
ddf98968 94 <option name="MONOLITHIC">
6990514b
VS
95 <values>0,1</values>
96 <values-description>Multilib,Monolithic</values-description>
8998a324 97 <default-value>$(MONOLITHIC_DEFAULT)</default-value>
ddf98968
VS
98 <description>
99 Multiple libraries or single huge monolithic one?
100 </description>
101 </option>
102
c79241a2
VS
103 <if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary -->
104 <option name="USE_PLUGINS">
105 <values>0,1</values>
106 <default-value>1</default-value>
107 <description>
108 Build parts of the library as dynamically loadable plugins
109 (only supported in multilib build)?
110 </description>
111 </option>
112 </if>
113 <if cond="FORMAT!='autoconf'">
114 <set var="USE_PLUGINS">0</set> <!-- FIXME - temporary -->
115 </if>
116
ddf98968 117 <option name="USE_GUI">
6990514b
VS
118 <values>0,1</values>
119 <values-description>Base,GUI</values-description>
ddf98968
VS
120 <default-value>1</default-value>
121 <description>
122 Build GUI libraries?
123 </description>
124 </option>
4d264332
VS
125
126 <option name="USE_HTML">
6990514b 127 <values>0,1</values>
4d264332
VS
128 <default-value>1</default-value>
129 <description>
130 Build wxHTML library (USE_GUI must be 1)?
131 </description>
132 </option>
133
3849327b
VS
134 <option name="USE_XRC">
135 <values>0,1</values>
136 <default-value>1</default-value>
137 <description>
138 Build wxXRC library (USE_GUI must be 1)?
139 </description>
140 </option>
141
4d264332 142 <option name="USE_OPENGL">
6990514b 143 <values>0,1</values>
a3aa294d 144 <default-value>0</default-value>
4d264332
VS
145 <description>
146 Build OpenGL canvas library (USE_GUI must be 1)?
147 </description>
148 </option>
a69544bf 149
bb41dcbe 150 <option name="USE_ODBC">
6990514b 151 <values>0,1</values>
bb41dcbe
VS
152 <default-value>0</default-value>
153 <description>
154 Build ODBC database classes (USE_GUI must be 1)?
155 </description>
156 </option>
157
9833a21a
VS
158 <option name="USE_EXCEPTIONS">
159 <values>0,1</values>
160 <default-value>1</default-value>
161 <description>
162 Enable exceptions in compiled code.
163 </description>
164 </option>
165
4fc5f509 166 <option name="OFFICIAL_BUILD">
6990514b 167 <values>0,1</values>
4fc5f509
VS
168 <default-value>0</default-value>
169 <description>
77ffb593 170 Is this official build by wxWidgets developers?
4fc5f509
VS
171 </description>
172 </option>
173 <option name="VENDOR">
174 <default-value>custom</default-value>
175 <description>
176 Use this to name your customized DLLs differently
177 </description>
178 </option>
589e20d0
RL
179 <!-- These basically do what vendor does in the places it didn't. -->
180 <!-- They should all be unified under some suitable descriptor -->
181 <option name="WX_FLAVOUR">
182 <default-value></default-value>
183 </option>
184 <option name="WX_LIB_FLAVOUR">
185 <default-value></default-value>
186 </option>
cff5df9f
VS
187
188 <option name="CFG">
189 <default-value></default-value>
190 <description>
4f6e1dac
VS
191Name of your custom configuration. This affects directory
192where object files are stored as well as the location of
193compiled .lib files and setup.h under the lib/ toplevel directory.
cff5df9f 194 </description>
670ec357
VS
195 </option>
196
197 <!-- unit tests support: -->
198 <option name="CPPUNIT_CFLAGS">
199 <default-value></default-value>
200 <description>
201Compiler flags needed to compile test suite in tests directory. If you want
202to run the tests, set it so that the compiler can find CppUnit headers.
203 </description>
204 </option>
205
206 <option name="CPPUNIT_LIBS">
207 <default-value></default-value>
208 <description>
209Linker flags needed to link test suite in tests directory. If you want
210to run the tests, include CppUnit library here.
211 </description>
cff5df9f 212 </option>
e6e885fd
VS
213
214
eefdc53a
VS
215 <!-- ================================================================== -->
216 <!-- Autoconf -->
217 <!-- ================================================================== -->
218
ddf98968
VS
219 <if cond="FORMAT=='autoconf'">
220 <option name="DEREZ"/>
221 <option name="TOOLKIT"/>
222 <option name="TOOLKIT_LOWERCASE"/>
223 <option name="TOOLKIT_VERSION"/>
157a3440 224 <option name="TOOLCHAIN_NAME"/>
ceec2216 225 <option name="TOOLCHAIN_FULLNAME"/>
ddf98968 226 <option name="EXTRALIBS"/>
a69544bf 227 <option name="EXTRALIBS_XML"/>
c839485c 228 <option name="EXTRALIBS_HTML"/>
bb41dcbe 229 <option name="EXTRALIBS_ODBC"/>
c74dc163 230 <option name="EXTRALIBS_GUI"/>
34b08d2c 231 <option name="EXTRALIBS_OPENGL"/>
c79241a2 232 <option name="EXTRALIBS_SDL"/>
7fcba069 233 <option name="EXTRALIBS_GNOMEPRINT"/>
ea66c762 234 <option name="HOST_SUFFIX"/>
ef0add05
VS
235 <option name="SAMPLES_RPATH_FLAG"/>
236 <option name="SAMPLES_RPATH_POSTLINK"/>
4b44ea2b 237
4843dc4c 238 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
4b44ea2b 239 <set var="RUNTIME_LIBS">dynamic</set>
e54bb212 240 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
c79241a2
VS
241
242 <option name="WITH_PLUGIN_SDL">
243 <values>0,1</values>
244 </option>
ddf98968
VS
245 </if>
246
eefdc53a
VS
247
248 <!-- ================================================================== -->
e6e885fd 249 <!-- windows compilers -->
eefdc53a
VS
250 <!-- ================================================================== -->
251
ddf98968 252 <if cond="FORMAT!='autoconf'">
4b44ea2b 253 <option name="RUNTIME_LIBS">
6990514b 254 <values>dynamic,static</values>
4b44ea2b
VS
255 <default-value>dynamic</default-value>
256 <description>
4f6e1dac
VS
257Version of C runtime library to use. You can change this to
258static if SHARED=0, but it is highly recommended to not do
259it if SHARED=1 unless you know what you are doing.
4b44ea2b
VS
260 </description>
261 </option>
262
4843dc4c
VS
263 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
264
a92d711e 265 <set var="TOOLKIT" overwrite="0">
af594eca
VS
266 <if cond="FORMAT!='msevc4prj'">MSW</if>
267 <if cond="FORMAT=='msevc4prj'">WINCE</if>
268 </set>
eefdc53a
VS
269 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
270 <set var="TOOLKIT_VERSION"/>
ea66c762 271 <set var="HOST_SUFFIX"/>
22cef566 272 <set var="EXTRACFLAGS"/>
6f53cd7c 273 <set var="EXTRALIBS"/>
a69544bf 274 <set var="EXTRALIBS_XML"/>
c839485c 275 <set var="EXTRALIBS_HTML"/>
bb41dcbe 276 <set var="EXTRALIBS_ODBC"/>
c74dc163 277 <set var="EXTRALIBS_GUI"/>
22cef566
VS
278 <set var="EXTRALIBS_OPENGL">
279 <if cond="COMPILER=='wat'">opengl32.lib glu32.lib</if>
af594eca 280 <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
22cef566
VS
281 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
282 </set>
c79241a2 283 <set var="EXTRALIBS_SDL"/>
7fcba069 284 <set var="EXTRALIBS_GNOMEPRINT"/>
c79241a2
VS
285
286 <set var="WITH_PLUGIN_SDL">0</set>
eefdc53a 287
cdc0282e 288 <set var="SRCDIR">
6990514b 289 <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if>
cdc0282e
VS
290 <if cond="BUILDING_LIB=='0'">.</if>
291 </set>
4843dc4c 292 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
ddf98968 293 </if>
65fb1c11
VS
294
295 <if cond="FORMAT=='mingw'">
296 <option name="GCC_VERSION">
6990514b 297 <values>3,2.95</values>
65fb1c11
VS
298 <default-value>3</default-value>
299 <description>
4f6e1dac
VS
300Set the version of your Mingw installation here.
301 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
302 "2.95" ... for Mingw 1.1 or any of the older versions
65fb1c11
VS
303 </description>
304 </option>
305 <set var="GCCFLAGS">
306 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
307 </set>
308 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
309 </if>
d17bdeab 310
328f5196
VS
311 <if cond="FORMAT=='cbuilderx'">
312 <set var="EXTRACFLAGS">
313 <if cond="COMPILER=='gcc'">-DHAVE_W32API_H</if>
314 </set>
315 </if>
316
317
d17bdeab
VS
318 <!-- ================================================================== -->
319 <!-- Project files - hardcode some defaults -->
320 <!-- ================================================================== -->
321
322 <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
323 <set var="RUNTIME_LIBS">dynamic</set>
324 <set var="OFFICIAL_BUILD">0</set>
325 <set var="USE_HTML">1</set>
3849327b 326 <set var="USE_XRC">1</set>
d17bdeab
VS
327 <set var="USE_OPENGL">1</set>
328 <set var="USE_ODBC">1</set>
329 <set var="MONOLITHIC">0</set>
330 <set var="USE_GUI">1</set>
9833a21a 331 <set var="USE_EXCEPTIONS">1</set>
d17bdeab
VS
332 <set var="DEBUG_INFO">default</set>
333 <set var="DEBUG_FLAG">default</set>
334 <set var="MSLU">0</set>
335 </if>
336
e6e885fd 337
328f5196
VS
338 <!-- FIXME:
339 C++BuilderX supports only wxMSW, monolithic (sic!) static build
340 and the project can't be put into build/msw and store objects in
341 build/msw/something. This *must* be fixed! -->
342 <if cond="FORMAT=='cbuilderx'">
343 <set var="WXUNIV">0</set>
344 <set var="MONOLITHIC">1</set>
345 <set var="SRCDIR">.</set>
346 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
347 <set var="SHARED">0</set>
348 </if>
349
350
e6e885fd
VS
351 <!-- DigitalMars make is braindead, it doesn't have conditional
352 processing: -->
353 <if cond="FORMAT=='dmars'">
354 <set var="RUNTIME_LIBS">static</set>
355 <set var="BUILD">debug</set>
356 <set var="SHARED">0</set>
357 <set var="WXUNIV">0</set>
358 <set var="UNICODE">0</set>
f46a065c
WS
359 <!-- Free version does not distribute OpenGL,
360 in commercial distribution better use dmars_smake format -->
361 <set var="USE_OPENGL">0</set>
e6e885fd
VS
362 </if>
363
af594eca
VS
364 <!-- No need for wxUniv on embedded devices (yet): -->
365 <if cond="FORMAT=='msevc4prj'">
366 <set var="WXUNIV">0</set>
367 <set var="UNICODE">1</set>
368 <set var="MONOLITHIC">1</set> <!-- sic! -->
369 </if>
370
ddf98968 371</makefile>