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