]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" ?> | |
2 | <!-- $Id$ --> | |
3 | ||
4 | <makefile> | |
5 | ||
6 | <set var="BUILDING_LIB" overwrite="0">0</set> | |
7 | ||
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 | ||
31 | <option name="SHARED"> | |
32 | <values>0,1</values> | |
33 | <values-description>,DLL</values-description> | |
34 | <default-value>0</default-value> | |
35 | <description> | |
36 | What type of library to build? | |
37 | </description> | |
38 | </option> | |
39 | ||
40 | <option name="WXUNIV"> | |
41 | <values>0,1</values> | |
42 | <values-description>,Universal</values-description> | |
43 | <default-value>0</default-value> | |
44 | <description> | |
45 | Build wxUniversal instead of native port? | |
46 | </description> | |
47 | </option> | |
48 | ||
49 | <!-- don't include ANSI configuration in project files, it's going to be | |
50 | eventually removed anyway and it only doubles the number of build | |
51 | configs in projects: --> | |
52 | <if cond="IS_MSVC_PRJ=='1'"> | |
53 | <set var="UNICODE">1</set> | |
54 | </if> | |
55 | <if cond="IS_MSVC_PRJ=='0'"> | |
56 | <option name="UNICODE"> | |
57 | <values>0,1</values> | |
58 | <values-description>,Unicode</values-description> | |
59 | <default-value>1</default-value> | |
60 | <description> | |
61 | Compile Unicode build of wxWidgets? | |
62 | </description> | |
63 | </option> | |
64 | </if> | |
65 | ||
66 | <if cond="FORMAT!='autoconf' and FORMAT!='watcom'"> | |
67 | <option name="MSLU"> | |
68 | <values>0,1</values> | |
69 | <default-value>0</default-value> | |
70 | <description> | |
71 | Use MSLU library when building Unicode version. | |
72 | </description> | |
73 | </option> | |
74 | </if> | |
75 | <if cond="FORMAT=='autoconf' or FORMAT=='watcom'"> | |
76 | <set var="MSLU">0</set> | |
77 | </if> | |
78 | ||
79 | <option name="BUILD"> | |
80 | <values>debug,release</values> | |
81 | <values-description>Debug,Release</values-description> | |
82 | <default-value>debug</default-value> | |
83 | <description> | |
84 | Type of compiled binaries | |
85 | </description> | |
86 | </option> | |
87 | ||
88 | <if cond="FORMAT=='msvc'"> | |
89 | <option name="TARGET_CPU"> | |
90 | <default-value>$(DOLLAR)(CPU)</default-value> | |
91 | <description> | |
92 | The target processor architecture must be specified when it is not X86. | |
93 | This does not affect the compiler output, so you still need to make sure | |
94 | your environment is set up appropriately with the correct compiler in the | |
95 | PATH. Rather it affects some options passed to some of the common build | |
96 | utilities such as the resource compiler and the linker. | |
97 | ||
98 | Accepted values: AMD64, IA64. | |
99 | </description> | |
100 | </option> | |
101 | </if> | |
102 | <if cond="FORMAT!='msvc'"> | |
103 | <set var="TARGET_CPU"/> | |
104 | </if> | |
105 | ||
106 | <!-- FIXME: restore this once bakefile is fixed to not use | |
107 | /Gm /GZ (incompatible with /O2) w/ debug-info --> | |
108 | <set var="DEBUG_INFO_DEFAULT"> | |
109 | <if cond="FORMAT in ['msvc','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj']">1</if> | |
110 | <if cond="FORMAT not in ['msvc','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj']">default</if> | |
111 | </set> | |
112 | --> | |
113 | <set var="DEBUG_INFO_DEFAULT">default</set> | |
114 | ||
115 | <option name="DEBUG_INFO"> | |
116 | <values>0,1,default</values> | |
117 | <default-value>$(DEBUG_INFO_DEFAULT)</default-value> | |
118 | <description> | |
119 | Should debugging info be included in the executables? The default value | |
120 | "default" means that debug info will be included if BUILD=debug | |
121 | and not included if BUILD=release. | |
122 | </description> | |
123 | </option> | |
124 | ||
125 | <option name="DEBUG_FLAG"> | |
126 | <values>0,1,default</values> | |
127 | <default-value>default</default-value> | |
128 | <description> | |
129 | Should __WXDEBUG__ be defined? The default value "default" means that it will | |
130 | be defined if BUILD=debug and not defined if BUILD=release. | |
131 | </description> | |
132 | </option> | |
133 | ||
134 | <if cond="FORMAT=='msvc'"> | |
135 | <option name="DEBUG_RUNTIME_LIBS"> | |
136 | <values>0,1,default</values> | |
137 | <default-value>default</default-value> | |
138 | <description> | |
139 | Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)? | |
140 | Acts according to BUILD by default. | |
141 | </description> | |
142 | </option> | |
143 | </if> | |
144 | <if cond="FORMAT!='msvc'"> | |
145 | <set var="DEBUG_RUNTIME_LIBS">default</set> | |
146 | </if> | |
147 | ||
148 | <set var="MONOLITHIC_DEFAULT"> | |
149 | <if cond="FORMAT=='watcom'">1</if> | |
150 | <if cond="FORMAT!='watcom'">0</if> | |
151 | </set> | |
152 | <option name="MONOLITHIC"> | |
153 | <values>0,1</values> | |
154 | <values-description>Multilib,Monolithic</values-description> | |
155 | <default-value>$(MONOLITHIC_DEFAULT)</default-value> | |
156 | <description> | |
157 | Multiple libraries or single huge monolithic one? | |
158 | </description> | |
159 | </option> | |
160 | ||
161 | <if cond="FORMAT=='autoconf'"> <!-- FIXME - temporary --> | |
162 | <option name="USE_PLUGINS"> | |
163 | <values>0,1</values> | |
164 | <default-value>1</default-value> | |
165 | <description> | |
166 | Build parts of the library as dynamically loadable plugins | |
167 | (only supported in multilib build)? | |
168 | </description> | |
169 | </option> | |
170 | </if> | |
171 | <if cond="FORMAT!='autoconf'"> | |
172 | <set var="USE_PLUGINS">0</set> <!-- FIXME - temporary --> | |
173 | </if> | |
174 | ||
175 | <option name="USE_GUI"> | |
176 | <values>0,1</values> | |
177 | <values-description>Base,GUI</values-description> | |
178 | <default-value>1</default-value> | |
179 | <description> | |
180 | Build GUI libraries? | |
181 | </description> | |
182 | </option> | |
183 | ||
184 | <option name="USE_HTML"> | |
185 | <values>0,1</values> | |
186 | <default-value>1</default-value> | |
187 | <description> | |
188 | Build wxHTML library (USE_GUI must be 1)? | |
189 | </description> | |
190 | </option> | |
191 | ||
192 | <option name="USE_MEDIA"> | |
193 | <values>0,1</values> | |
194 | <default-value>1</default-value> | |
195 | <description> | |
196 | Build multimedia library (USE_GUI must be 1)? | |
197 | </description> | |
198 | </option> | |
199 | ||
200 | <option name="USE_XRC"> | |
201 | <values>0,1</values> | |
202 | <default-value>1</default-value> | |
203 | <description> | |
204 | Build wxXRC library (USE_GUI must be 1)? | |
205 | </description> | |
206 | </option> | |
207 | ||
208 | <option name="USE_AUI"> | |
209 | <values>0,1</values> | |
210 | <default-value>1</default-value> | |
211 | <description> | |
212 | Build wxAUI library (USE_GUI must be 1)? | |
213 | </description> | |
214 | </option> | |
215 | ||
216 | <option name="USE_RICHTEXT"> | |
217 | <values>0,1</values> | |
218 | <default-value>1</default-value> | |
219 | <description> | |
220 | Build wxRichTextCtrl library (USE_GUI must be 1)? | |
221 | </description> | |
222 | </option> | |
223 | ||
224 | <option name="USE_STC"> | |
225 | <values>0,1</values> | |
226 | <default-value>1</default-value> | |
227 | <description> | |
228 | Build wxStyledTextCtrl library (USE_GUI must be 1)? | |
229 | </description> | |
230 | </option> | |
231 | ||
232 | <option name="USE_OPENGL"> | |
233 | <values>0,1</values> | |
234 | <default-value>0</default-value> | |
235 | <description> | |
236 | Build OpenGL canvas library (USE_GUI must be 1)? | |
237 | </description> | |
238 | </option> | |
239 | ||
240 | <!-- currently only VC++ can compile wxDebugReport which is in QA lib --> | |
241 | <set var="USE_QA_DEFAULT"> | |
242 | <if cond="FORMAT in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">1</if> | |
243 | <if cond="FORMAT not in ['msvc','msvc6prj','msvs2003prj','msvs2005prj']">0</if> | |
244 | </set> | |
245 | <option name="USE_QA"> | |
246 | <values>0,1</values> | |
247 | <default-value>$(USE_QA_DEFAULT)</default-value> | |
248 | <description> | |
249 | Build quality assurance classes library (USE_GUI must be 1)? | |
250 | </description> | |
251 | </option> | |
252 | ||
253 | <option name="USE_EXCEPTIONS"> | |
254 | <values>0,1</values> | |
255 | <default-value>1</default-value> | |
256 | <description> | |
257 | Enable exceptions in compiled code. | |
258 | </description> | |
259 | </option> | |
260 | ||
261 | <option name="USE_RTTI"> | |
262 | <values>0,1</values> | |
263 | <default-value>1</default-value> | |
264 | <description> | |
265 | Enable run-time type information (RTTI) in compiled code. | |
266 | </description> | |
267 | </option> | |
268 | ||
269 | <option name="USE_THREADS"> | |
270 | <values>0,1</values> | |
271 | <default-value>1</default-value> | |
272 | <description> | |
273 | Enable threading in compiled code. | |
274 | </description> | |
275 | </option> | |
276 | ||
277 | <if cond="FORMAT!='autoconf'"> | |
278 | <option name="USE_GDIPLUS"> | |
279 | <values>0,1</values> | |
280 | <default-value>0</default-value> | |
281 | <description> | |
282 | Link with gdiplus.lib? (Needed for wxGraphicsContext, will also set wxUSE_GRAPHICS_CONTEXT) | |
283 | </description> | |
284 | </option> | |
285 | </if> | |
286 | ||
287 | <option name="OFFICIAL_BUILD"> | |
288 | <values>0,1</values> | |
289 | <default-value>0</default-value> | |
290 | <description> | |
291 | Is this official build by wxWidgets developers? | |
292 | </description> | |
293 | </option> | |
294 | <option name="VENDOR"> | |
295 | <default-value>custom</default-value> | |
296 | <description> | |
297 | Use this to name your customized DLLs differently | |
298 | </description> | |
299 | </option> | |
300 | <!-- These basically do what vendor does in the places it didn't. --> | |
301 | <!-- They should all be unified under some suitable descriptor --> | |
302 | <option name="WX_FLAVOUR"> | |
303 | <default-value></default-value> | |
304 | </option> | |
305 | <option name="WX_LIB_FLAVOUR"> | |
306 | <default-value></default-value> | |
307 | </option> | |
308 | ||
309 | <option name="CFG"> | |
310 | <default-value></default-value> | |
311 | <description> | |
312 | Name of your custom configuration. This affects directory | |
313 | where object files are stored as well as the location of | |
314 | compiled .lib files and setup.h under the lib/ toplevel directory. | |
315 | </description> | |
316 | </option> | |
317 | ||
318 | <!-- unit tests support: --> | |
319 | <option name="CPPUNIT_CFLAGS"> | |
320 | <default-value></default-value> | |
321 | <description> | |
322 | Compiler flags needed to compile test suite in tests directory. If you want | |
323 | to run the tests, set it so that the compiler can find CppUnit headers. | |
324 | </description> | |
325 | </option> | |
326 | ||
327 | <option name="CPPUNIT_LIBS"> | |
328 | <default-value></default-value> | |
329 | <description> | |
330 | Linker flags needed to link test suite in tests directory. If you want | |
331 | to run the tests, include CppUnit library here. | |
332 | </description> | |
333 | </option> | |
334 | ||
335 | ||
336 | <!-- ================================================================== --> | |
337 | <!-- Autoconf --> | |
338 | <!-- ================================================================== --> | |
339 | ||
340 | <if cond="FORMAT=='autoconf'"> | |
341 | <option name="DEREZ"/> | |
342 | <option name="TOOLKIT"/> | |
343 | <option name="TOOLKIT_LOWERCASE"/> | |
344 | <option name="TOOLKIT_VERSION"/> | |
345 | <option name="TOOLCHAIN_NAME"/> | |
346 | <option name="TOOLCHAIN_FULLNAME"/> | |
347 | <option name="EXTRALIBS"/> | |
348 | <option name="EXTRALIBS_XML"/> | |
349 | <option name="EXTRALIBS_HTML"/> | |
350 | <option name="EXTRALIBS_MEDIA"/> | |
351 | <option name="EXTRALIBS_GUI"/> | |
352 | <option name="EXTRALIBS_OPENGL"/> | |
353 | <option name="EXTRALIBS_SDL"/> | |
354 | <option name="EXTRALIBS_GNOMEPRINT"/> | |
355 | <option name="CXXWARNINGS"/> | |
356 | <option name="HOST_SUFFIX"/> | |
357 | <option name="SAMPLES_RPATH_FLAG"/> | |
358 | <option name="SAMPLES_RPATH_POSTLINK"/> | |
359 | ||
360 | <set var="TOP_SRCDIR">$(top_srcdir)/</set> | |
361 | <set var="RUNTIME_LIBS">dynamic</set> | |
362 | <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line --> | |
363 | ||
364 | <option name="WITH_PLUGIN_SDL"> | |
365 | <values>0,1</values> | |
366 | </option> | |
367 | ||
368 | <option name="wx_top_builddir"/> | |
369 | </if> | |
370 | ||
371 | ||
372 | <!-- ================================================================== --> | |
373 | <!-- windows/dos/os2 compilers --> | |
374 | <!-- ================================================================== --> | |
375 | ||
376 | <if cond="FORMAT!='autoconf'"> | |
377 | <option name="RUNTIME_LIBS"> | |
378 | <values>dynamic,static</values> | |
379 | <default-value>dynamic</default-value> | |
380 | <description> | |
381 | Version of C runtime library to use. You can change this to | |
382 | static if SHARED=0, but it is highly recommended to not do | |
383 | it if SHARED=1 unless you know what you are doing. | |
384 | </description> | |
385 | </option> | |
386 | ||
387 | <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line --> | |
388 | ||
389 | <set var="TOOLKIT" overwrite="0"> | |
390 | <if cond="FORMAT=='msevc4prj'">WINCE</if> | |
391 | <if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if> | |
392 | <if cond="PLATFORM_MSDOS=='1'">MGL</if> | |
393 | <if cond="PLATFORM_OS2=='1'">PM</if> | |
394 | </set> | |
395 | <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set> | |
396 | <set var="TOOLKIT_VERSION"/> | |
397 | <set var="HOST_SUFFIX"/> | |
398 | <set var="EXTRACFLAGS"/> | |
399 | <set var="EXTRALIBS"/> | |
400 | <set var="EXTRALIBS_XML"/> | |
401 | <set var="EXTRALIBS_HTML"/> | |
402 | <set var="EXTRALIBS_MEDIA"/> | |
403 | <set var="EXTRALIBS_GUI"/> | |
404 | <set var="EXTRALIBS_OPENGL"> | |
405 | <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if> | |
406 | <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if> | |
407 | <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if> | |
408 | </set> | |
409 | <set var="EXTRALIBS_SDL"/> | |
410 | <set var="EXTRALIBS_GNOMEPRINT"/> | |
411 | ||
412 | <set var="WITH_PLUGIN_SDL">0</set> | |
413 | ||
414 | <set var="SRCDIR"> | |
415 | <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if> | |
416 | <if cond="BUILDING_LIB=='0'">.</if> | |
417 | </set> | |
418 | <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set> | |
419 | </if> | |
420 | ||
421 | <if cond="FORMAT=='mingw'"> | |
422 | <option name="GCC_VERSION"> | |
423 | <values>3,2.95</values> | |
424 | <default-value>3</default-value> | |
425 | <description> | |
426 | Set the version of your Mingw installation here. | |
427 | "3" ...... this is for Mingw 2.0 or newer (comes with gcc3) | |
428 | "2.95" ... for Mingw 1.1 or any of the older versions | |
429 | </description> | |
430 | </option> | |
431 | <set var="GCCFLAGS"> | |
432 | <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if> | |
433 | </set> | |
434 | <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set> | |
435 | </if> | |
436 | ||
437 | ||
438 | <!-- ================================================================== --> | |
439 | <!-- Project files - hardcode some defaults --> | |
440 | <!-- ================================================================== --> | |
441 | ||
442 | <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'"> | |
443 | <set var="RUNTIME_LIBS">dynamic</set> | |
444 | <set var="OFFICIAL_BUILD">0</set> | |
445 | <set var="USE_AUI">1</set> | |
446 | <set var="USE_RICHTEXT">1</set> | |
447 | <set var="USE_STC">1</set> | |
448 | <set var="USE_HTML">1</set> | |
449 | <set var="USE_MEDIA">1</set> | |
450 | <set var="USE_XRC">1</set> | |
451 | <set var="USE_OPENGL">1</set> | |
452 | <set var="USE_QA">1</set> | |
453 | <set var="MONOLITHIC">0</set> | |
454 | <set var="USE_GUI">1</set> | |
455 | <set var="USE_EXCEPTIONS">1</set> | |
456 | <set var="USE_RTTI">1</set> | |
457 | <set var="USE_THREADS">1</set> | |
458 | <if cond="FORMAT!='autoconf'"><set var="USE_GDIPLUS">0</set></if> | |
459 | <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set> | |
460 | <set var="DEBUG_FLAG">default</set> | |
461 | <set var="MSLU">0</set> | |
462 | </if> | |
463 | ||
464 | ||
465 | <!-- DigitalMars make is braindead, it doesn't have conditional | |
466 | processing: --> | |
467 | <if cond="FORMAT=='dmars'"> | |
468 | <set var="RUNTIME_LIBS">static</set> | |
469 | <set var="BUILD">debug</set> | |
470 | <set var="SHARED">0</set> | |
471 | <set var="WXUNIV">0</set> | |
472 | <set var="UNICODE">1</set> | |
473 | <!-- Free version does not distribute OpenGL, | |
474 | in commercial distribution better use dmars_smake format --> | |
475 | <set var="USE_OPENGL">0</set> | |
476 | </if> | |
477 | ||
478 | <!-- No need for wxUniv on embedded devices (yet): --> | |
479 | <if cond="FORMAT=='msevc4prj'"> | |
480 | <set var="WXUNIV">0</set> | |
481 | <!-- Uploading debug reports from PDAs seems impractical --> | |
482 | <set var="USE_QA">0</set> | |
483 | <set var="MONOLITHIC">1</set> <!-- sic! --> | |
484 | <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 --> | |
485 | <set var="USE_RTTI">0</set> | |
486 | <set var="USE_EXCEPTIONS">0</set> | |
487 | </if> | |
488 | ||
489 | <!-- Need for wxUniv within wxMGL: --> | |
490 | <if cond="FORMAT!='autoconf' and TOOLKIT=='MGL'"> | |
491 | <set var="WXUNIV">1</set> | |
492 | <set var="USE_THREADS">0</set> | |
493 | <set var="RUNTIME_LIBS">static</set> | |
494 | </if> | |
495 | ||
496 | </makefile> |