]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/config.bkl
more bakefile-based makefiles
[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="BUILD">
9 <values>debug release</values>
10 <values-description>Debug Release</values-description>
11 <default-value>release</default-value>
12 <description>
13 Type of compiled binaries
14 </description>
15 </option>
16
17 <option name="DEBUG_INFO">
18 <values>0 1 default</values>
19 <default-value>default</default-value>
20 <description>
21 Should debugging info be included in the executables? The default value
22 "default" means that debug info will be included if BUILD=debug
23 and not included if BUILD=release.
24 </description>
25 </option>
26
27 <option name="DEBUG_FLAG">
28 <values>0 1 default</values>
29 <default-value>default</default-value>
30 <description>
31 Should __WXDEBUG__ be defined? The default value "default" means that it will
32 be defined if BUILD=debug and not defined if BUILD=release.
33 </description>
34 </option>
35
36 <if cond="FORMAT=='msvc'">
37 <option name="DEBUG_RUNTIME_LIBS">
38 <values>0 1 default</values>
39 <default-value>default</default-value>
40 <description>
41 Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
42 Acts according to DEBUG_INFO by default.
43 </description>
44 </option>
45 </if>
46 <if cond="FORMAT!='msvc'">
47 <set var="DEBUG_RUNTIME_LIBS">default</set>
48 </if>
49
50 <option name="UNICODE">
51 <values>0 1</values>
52 <values-description>Ansi Unicode</values-description>
53 <default-value>0</default-value>
54 <description>
55 Compile Unicode build of wxWindows?
56 </description>
57 </option>
58
59 <option name="SHARED">
60 <values>0 1</values>
61 <values-description>LIB DLL</values-description>
62 <default-value>1</default-value>
63 <description>
64 What type of library to build?
65 </description>
66 </option>
67
68 <option name="MONOLITHIC">
69 <values>0 1</values>
70 <values-description>Multilib Monolithic</values-description>
71 <default-value>1</default-value>
72 <description>
73 Multiple libraries or single huge monolithic one?
74 </description>
75 </option>
76
77 <option name="USE_GUI">
78 <values>0 1</values>
79 <values-description>Base GUI</values-description>
80 <default-value>1</default-value>
81 <description>
82 Build GUI libraries?
83 </description>
84 </option>
85
86 <option name="USE_HTML">
87 <values>0 1</values>
88 <default-value>1</default-value>
89 <description>
90 Build wxHTML library (USE_GUI must be 1)?
91 </description>
92 </option>
93
94 <option name="USE_OPENGL">
95 <values>0 1</values>
96 <default-value>0</default-value>
97 <description>
98 Build OpenGL canvas library (USE_GUI must be 1)?
99 </description>
100 </option>
101
102 <option name="USE_ODBC">
103 <values>0 1</values>
104 <default-value>0</default-value>
105 <description>
106 Build ODBC database classes (USE_GUI must be 1)?
107 </description>
108 </option>
109
110 <option name="WXUNIV">
111 <values>0 1</values>
112 <values-description>Native wxUniv</values-description>
113 <default-value>0</default-value>
114 <description>
115 Build wxUniversal instead of native port?
116 </description>
117 </option>
118
119 <option name="OFFICIAL_BUILD">
120 <values>0 1</values>
121 <default-value>0</default-value>
122 <description>
123 Is this official build by wxWindows developers?
124 </description>
125 </option>
126 <option name="VENDOR">
127 <default-value>custom</default-value>
128 <description>
129 Use this to name your customized DLLs differently
130 </description>
131 </option>
132
133 <option name="CFG">
134 <default-value></default-value>
135 <description>
136 Name of your custom configuration. This affects directory
137 where object files are stored as well as the location of
138 compiled .lib files and setup.h under the lib/ toplevel directory.
139 </description>
140 </option>
141
142
143 <!-- ================================================================== -->
144 <!-- Autoconf -->
145 <!-- ================================================================== -->
146
147 <if cond="FORMAT=='autoconf'">
148 <option name="DEREZ"/>
149 <option name="TOOLKIT"/>
150 <option name="TOOLKIT_LOWERCASE"/>
151 <option name="TOOLKIT_VERSION"/>
152 <option name="TOOLCHAIN_NAME"/>
153 <option name="EXTRALIBS"/>
154 <option name="EXTRALIBS_XML"/>
155 <option name="EXTRALIBS_ODBC"/>
156 <option name="EXTRALIBS_GUI"/>
157 <option name="EXTRALIBS_OPENGL"/>
158 <option name="SAMPLES_RPATH_FLAG"/>
159 <option name="HOST_SUFFIX"/>
160
161 <set var="TOP_SRCDIR">$(top_srcdir)/</set>
162 <set var="RUNTIME_LIBS">dynamic</set>
163 </if>
164
165
166 <!-- ================================================================== -->
167 <!-- Windows compilers -->
168 <!-- ================================================================== -->
169
170 <if cond="FORMAT!='autoconf'">
171 <option name="RUNTIME_LIBS">
172 <values>dynamic static</values>
173 <default-value>dynamic</default-value>
174 <description>
175 Version of C runtime library to use. You can change this to
176 static if SHARED=0, but it is highly recommended to not do
177 it if SHARED=1 unless you know what you are doing.
178 </description>
179 </option>
180
181 <set var="WXTOPDIR"/> <!-- to be overriden on bakefile cmd line -->
182
183 <set var="TOOLKIT">MSW</set>
184 <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
185 <set var="TOOLKIT_VERSION"/>
186 <set var="SAMPLES_RPATH_FLAG"/>
187 <set var="HOST_SUFFIX"/>
188 <set var="EXTRALIBS"/>
189 <set var="EXTRALIBS_XML"/>
190 <set var="EXTRALIBS_ODBC"/>
191 <set var="EXTRALIBS_GUI"/>
192 <set var="EXTRACFLAGS"/>
193
194 <set var="SRCDIR">
195 <if cond="BUILDING_LIB=='1'">..</if>
196 <if cond="BUILDING_LIB=='0'">.</if>
197 </set>
198 <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
199 </if>
200
201 <if cond="FORMAT=='mingw'">
202 <option name="GCC_VERSION">
203 <values>3 2.95</values>
204 <default-value>3</default-value>
205 <description>
206 Set the version of your Mingw installation here.
207 "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
208 "2.95" ... for Mingw 1.1 or any of the older versions
209 </description>
210 </option>
211 <set var="GCCFLAGS">
212 <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
213 </set>
214 <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
215 </if>
216
217 </makefile>