]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/config.bkl
Updated for eVC4
[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 wxWindows?
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 <option name="MONOLITHIC">
91 <values>0,1</values>
92 <values-description>Multilib,Monolithic</values-description>
93 <default-value>0</default-value>
94 <description>
95 Multiple libraries or single huge monolithic one?
96 </description>
97 </option>
98
99 <option name="USE_GUI">
100 <values>0,1</values>
101 <values-description>Base,GUI</values-description>
102 <default-value>1</default-value>
103 <description>
104 Build GUI libraries?
105 </description>
106 </option>
107
108 <option name="USE_HTML">
109 <values>0,1</values>
110 <default-value>1</default-value>
111 <description>
112 Build wxHTML library (USE_GUI must be 1)?
113 </description>
114 </option>
115
116 <option name="USE_OPENGL">
117 <values>0,1</values>
118 <default-value>0</default-value>
119 <description>
120 Build OpenGL canvas library (USE_GUI must be 1)?
121 </description>
122 </option>
123
124 <option name="USE_ODBC">
125 <values>0,1</values>
126 <default-value>0</default-value>
127 <description>
128 Build ODBC database classes (USE_GUI must be 1)?
129 </description>
130 </option>
131
132 <option name="USE_EXCEPTIONS">
133 <values>0,1</values>
134 <default-value>1</default-value>
135 <description>
136 Enable exceptions in compiled code.
137 </description>
138 </option>
139
140 <option name="OFFICIAL_BUILD">
141 <values>0,1</values>
142 <default-value>0</default-value>
143 <description>
144 Is this official build by wxWindows developers?
145 </description>
146 </option>
147 <option name="VENDOR">
148 <default-value>custom</default-value>
149 <description>
150 Use this to name your customized DLLs differently
151 </description>
152 </option>
153
154 <option name="CFG">
155 <default-value></default-value>
156 <description>
157 Name of your custom configuration. This affects directory
158 where object files are stored as well as the location of
159 compiled .lib files and setup.h under the lib/ toplevel directory.
160 </description>
161 </option>
162
163
164 <!-- ================================================================== -->
165 <!-- Autoconf -->
166 <!-- ================================================================== -->
167
168 <if cond="FORMAT=='autoconf'">
169 <option name="DEREZ"/>
170 <option name="TOOLKIT"/>
171 <option name="TOOLKIT_LOWERCASE"/>
172 <option name="TOOLKIT_VERSION"/>
173 <option name="TOOLCHAIN_NAME"/>
174 <option name="EXTRALIBS"/>
175 <option name="EXTRALIBS_XML"/>
176 <option name="EXTRALIBS_HTML"/>
177 <option name="EXTRALIBS_ODBC"/>
178 <option name="EXTRALIBS_GUI"/>
179 <option name="EXTRALIBS_OPENGL"/>
180 <option name="HOST_SUFFIX"/>
181 <option name="SAMPLES_RPATH_FLAG"/>
182 <option name="SAMPLES_RPATH_POSTLINK"/>
183
184 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
185 <set var="RUNTIME_LIBS">dynamic</set>
186 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
187 </if>
188
189
190 <!-- ================================================================== -->
191 <!-- windows compilers -->
192 <!-- ================================================================== -->
193
194 <if cond="FORMAT!='autoconf'">
195 <option name="RUNTIME_LIBS">
196 <values>dynamic,static</values>
197 <default-value>dynamic</default-value>
198 <description>
199 Version of C runtime library to use. You can change this to
200 static if SHARED=0, but it is highly recommended to not do
201 it if SHARED=1 unless you know what you are doing.
202 </description>
203 </option>
204
205 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
206
207 <set var="TOOLKIT">MSW</set>
208 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
209 <set var="TOOLKIT_VERSION"/>
210 <set var="HOST_SUFFIX"/>
211 <set var="EXTRACFLAGS"/>
212 <set var="EXTRALIBS"/>
213 <set var="EXTRALIBS_XML"/>
214 <set var="EXTRALIBS_HTML"/>
215 <set var="EXTRALIBS_ODBC"/>
216 <set var="EXTRALIBS_GUI"/>
217 <set var="EXTRALIBS_OPENGL">
218 <if cond="COMPILER=='wat'">opengl32.lib glu32.lib</if>
219 <if cond="COMPILER=='vc'">opengl32.lib glu32.lib</if>
220 <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
221 </set>
222
223 <set var="SRCDIR">
224 <if cond="BUILDING_LIB=='1'">..$(DIRSEP)..</if>
225 <if cond="BUILDING_LIB=='0'">.</if>
226 </set>
227 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
228 </if>
229
230 <if cond="FORMAT=='mingw'">
231 <option name="GCC_VERSION">
232 <values>3,2.95</values>
233 <default-value>3</default-value>
234 <description>
235 Set the version of your Mingw installation here.
236 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
237 "2.95" ... for Mingw 1.1 or any of the older versions
238 </description>
239 </option>
240 <set var="GCCFLAGS">
241 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
242 </set>
243 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
244 </if>
245
246 <if cond="FORMAT=='cbuilderx'">
247 <set var="EXTRACFLAGS">
248 <if cond="COMPILER=='gcc'">-DHAVE_W32API_H</if>
249 </set>
250 </if>
251
252
253 <!-- ================================================================== -->
254 <!-- Project files - hardcode some defaults -->
255 <!-- ================================================================== -->
256
257 <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
258 <set var="RUNTIME_LIBS">dynamic</set>
259 <set var="OFFICIAL_BUILD">0</set>
260 <set var="USE_HTML">1</set>
261 <set var="USE_OPENGL">1</set>
262 <set var="USE_ODBC">1</set>
263 <set var="MONOLITHIC">0</set>
264 <set var="USE_GUI">1</set>
265 <set var="USE_EXCEPTIONS">1</set>
266 <set var="DEBUG_INFO">default</set>
267 <set var="DEBUG_FLAG">default</set>
268 <set var="MSLU">0</set>
269 </if>
270
271
272 <!-- FIXME:
273 C++BuilderX supports only wxMSW, monolithic (sic!) static build
274 and the project can't be put into build/msw and store objects in
275 build/msw/something. This *must* be fixed! -->
276 <if cond="FORMAT=='cbuilderx'">
277 <set var="WXUNIV">0</set>
278 <set var="MONOLITHIC">1</set>
279 <set var="SRCDIR">.</set>
280 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
281 <set var="SHARED">0</set>
282 </if>
283
284
285 <!-- DigitalMars make is braindead, it doesn't have conditional
286 processing: -->
287 <if cond="FORMAT=='dmars'">
288 <set var="RUNTIME_LIBS">static</set>
289 <set var="BUILD">debug</set>
290 <set var="SHARED">0</set>
291 <set var="WXUNIV">0</set>
292 <set var="UNICODE">0</set>
293 </if>
294
295 </makefile>