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