]>
Commit | Line | Data |
---|---|---|
83c7f6a7 VS |
1 | <?xml version="1.0" ?> |
2 | <!-- $Id$ --> | |
3 | ||
4 | <!-- Original source: http://wiki.wxwidgets.org/wiki.pl?Bakefile --> | |
5 | <!-- Modified by: Francesco Montorsi <frm@users.sourceforge.net> --> | |
6 | <!-- Vaclav Slavik <vslavik@fastmail.fm> to better fit | |
7 | into Bakefile's presets --> | |
8 | <!-- Creation date: 6/9/2004 --> | |
9 | <!-- Last revision: 22/1/2005 off-CVS --> | |
10 | <!-- $Id$ --> | |
11 | ||
12 | ||
13 | <!-- | |
14 | ||
15 | FIXME: this template has (at least) the following bugs: | |
16 | ||
17 | * it's MSW-only, the port is assumed to be wxMSW unconditionally | |
18 | ||
19 | * multiple wx configurations (CFG variable set when building the | |
20 | library) are not supported | |
21 | ||
22 | --> | |
23 | ||
24 | <!-- makefile tag signifies the beginning of the bakefile --> | |
25 | <makefile> | |
26 | ||
27 | <requires version="0.1.5"/> | |
28 | ||
29 | <!-- OPTIONS --> | |
30 | <!-- --> | |
31 | <!-- These are essentially the configurations you --> | |
32 | <!-- want in bakefile. --> | |
33 | <!-- --> | |
34 | <!-- In MSVC these are the different build --> | |
35 | <!-- configurations you can have (in the build menu), --> | |
36 | <!-- and in autoconf is enabled with enable-xxx=xx. --> | |
3103e8a9 | 37 | <!-- For other compilers a separate configuration --> |
83c7f6a7 VS |
38 | <!-- file is created (such as config.gcc on gcc) --> |
39 | <!-- which has several options a user can modify. --> | |
40 | <!-- --> | |
41 | <!-- Note that the above only happens if an option --> | |
42 | <!-- is not constant, i.e. if it cannot be determined --> | |
43 | <!-- by bakefile itself. --> | |
44 | ||
a20169a4 WS |
45 | <!-- Presets for limited dmars make.exe format: --> |
46 | <if cond="FORMAT=='dmars'"> | |
47 | <set var="WX_UNICODE">0</set> | |
48 | <set var="WX_DEBUG">1</set> | |
49 | <set var="WX_SHARED">0</set> | |
50 | </if> | |
51 | ||
52 | ||
83c7f6a7 VS |
53 | <!-- This is a standard option that determines --> |
54 | <!-- whether the user wants to build this library as --> | |
55 | <!-- a dll or as a static library. --> | |
1ed52f8c VS |
56 | <if cond="not isdefined('WX_SHARED')"> |
57 | <set var="WX_SHARED_DEFAULT" overwrite="0">0</set> | |
58 | <option name="WX_SHARED"> | |
59 | <values>0,1</values> | |
60 | <values-description>,DLL</values-description> | |
61 | <default-value>$(WX_SHARED_DEFAULT)</default-value> | |
62 | <description> | |
63 | Use DLL build of wx library to use? | |
64 | </description> | |
65 | </option> | |
66 | </if> | |
83c7f6a7 VS |
67 | |
68 | <!-- Configuration for building the bakefile with --> | |
69 | <!-- unicode strings or not (unicode or ansi). --> | |
1ed52f8c VS |
70 | <if cond="not isdefined('WX_UNICODE')"> |
71 | <set var="WX_UNICODE_DEFAULT" overwrite="0">0</set> | |
72 | <option name="WX_UNICODE"> | |
73 | <values>0,1</values> | |
74 | <values-description>,Unicode</values-description> | |
6af800ff | 75 | <default-value>$(WX_UNICODE_DEFAULT)</default-value> |
1ed52f8c VS |
76 | <description> |
77 | Compile Unicode build of wxWidgets? | |
78 | </description> | |
79 | </option> | |
80 | </if> | |
81 | ||
e943ebd8 | 82 | <if cond="not isdefined('WX_DEBUG')"> |
1ed52f8c | 83 | <set var="WX_DEBUG_DEFAULT" overwrite="0">1</set> |
e943ebd8 VS |
84 | <option name="WX_DEBUG"> |
85 | <values>0,1</values> | |
1ed52f8c VS |
86 | <values-description>Release,Debug</values-description> |
87 | <default-value>$(WX_DEBUG_DEFAULT)</default-value> | |
88 | <description> | |
89 | Use debug build of wxWidgets (define __WXDEBUG__)? | |
90 | </description> | |
91 | </option> | |
92 | </if> | |
93 | ||
94 | <if cond="not isdefined('WX_VERSION')"> | |
01cca03e | 95 | <set var="WX_VERSION_DEFAULT" overwrite="0">27</set> |
1ed52f8c VS |
96 | <option name="WX_VERSION"> |
97 | <default-value>$(WX_VERSION_DEFAULT)</default-value> | |
98 | <description> | |
99 | Version of the wx library to build against. | |
100 | </description> | |
101 | </option> | |
102 | </if> | |
83c7f6a7 | 103 | |
ad6f7122 VZ |
104 | <if cond="not isdefined('WX_MONOLITHIC')"> |
105 | <set var="WX_MONOLITHIC_DEFAULT" overwrite="0">0</set> | |
106 | <option name="WX_MONOLITHIC"> | |
107 | <values>0,1</values> | |
f814ff33 | 108 | <values-description>Multilib,Monolithic</values-description> |
ad6f7122 VZ |
109 | <default-value>$(WX_MONOLITHIC_DEFAULT)</default-value> |
110 | <description> | |
111 | Use monolithic build of wxWidgets? | |
112 | </description> | |
113 | </option> | |
114 | </if> | |
115 | ||
116 | ||
83c7f6a7 VS |
117 | <!-- HELPER VARIABLES --> |
118 | <!-- --> | |
6af800ff VZ |
119 | |
120 | ||
83c7f6a7 VS |
121 | <!-- The unicode define we want. By default bakefile --> |
122 | <!-- makes variables an empty string, so if unicode --> | |
123 | <!-- is not defined $(UNICODE_DEFINE) would expand --> | |
124 | <!-- to nothing (literally). --> | |
125 | <set var="WXUNICODE_DEFINE"> | |
126 | <if cond="WX_UNICODE=='1'">_UNICODE</if> | |
6af800ff VZ |
127 | </set> |
128 | ||
129 | <!-- The debug define we need with win32 compilers --> | |
130 | <!-- (on Linux, the wx-config program is used). --> | |
131 | <set var="WXDEBUG_DEFINE"> | |
132 | <if cond="WX_DEBUG=='1'">__WXDEBUG__</if> | |
83c7f6a7 VS |
133 | </set> |
134 | ||
135 | <!-- These are handy ways of dealing with the --> | |
6af800ff | 136 | <!-- extensions in the library names of the --> |
83c7f6a7 VS |
137 | <!-- wxWindows library. --> |
138 | <set var="WXLIBPOSTFIX"> | |
e943ebd8 VS |
139 | <if cond="WX_DEBUG=='1' and WX_UNICODE=='1'">ud</if> |
140 | <if cond="WX_DEBUG=='1' and WX_UNICODE=='0'">d</if> | |
141 | <if cond="WX_DEBUG=='0' and WX_UNICODE=='1'">u</if> | |
83c7f6a7 | 142 | </set> |
c7ca49e4 | 143 | <set var="WX3RDPARTYLIBPOSTFIX"> |
e943ebd8 | 144 | <if cond="WX_DEBUG=='1'">d</if> |
965122c4 VS |
145 | </set> |
146 | ||
147 | <set var="WXCPU"> | |
148 | <if cond="FORMAT=='msevc4prj'">_$(CPU)</if> | |
83c7f6a7 VS |
149 | </set> |
150 | ||
151 | <set var="WXLIBPATH"> | |
965122c4 VS |
152 | <if cond="WX_SHARED=='0'">$(DIRSEP)lib$(DIRSEP)$(COMPILER)$(WXCPU)_lib</if> |
153 | <if cond="WX_SHARED=='1'">$(DIRSEP)lib$(DIRSEP)$(COMPILER)$(WXCPU)_dll</if> | |
83c7f6a7 VS |
154 | </set> |
155 | ||
6af800ff VZ |
156 | <set var="WXPORT"> |
157 | <if cond="FORMAT=='msevc4prj'">wince</if> | |
158 | <if cond="FORMAT!='msevc4prj'">msw</if> | |
159 | </set> | |
160 | <set var="WXLIBINCLUDE">$(WXLIBPATH)$(DIRSEP)$(WXPORT)$(WXLIBPOSTFIX)</set> | |
161 | ||
162 | ||
ad6f7122 VZ |
163 | <!-- All the possible mixes for the wx library names --> |
164 | <set var="WXLIB_BASE_NAME"> | |
165 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wxbase$(WX_VERSION)</if> | |
166 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wxbase$(WX_VERSION)d</if> | |
167 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wxbase$(WX_VERSION)u</if> | |
168 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wxbase$(WX_VERSION)ud</if> | |
169 | ||
170 | <!-- | |
171 | the trick used to support monolithic builds is here: when the | |
172 | <wx-lib>base</wx-lib> tag is found, and user selected | |
173 | WX_MONOLITHIC=1, then the base library is translated to the | |
174 | monolithic library | |
175 | --> | |
176 | <if cond="WX_MONOLITHIC=='1' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)</if> | |
177 | <if cond="WX_MONOLITHIC=='1' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d</if> | |
178 | <if cond="WX_MONOLITHIC=='1' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u</if> | |
179 | <if cond="WX_MONOLITHIC=='1' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud</if> | |
180 | </set> | |
181 | ||
182 | <!-- Libraries whose name is prefixed with 'wxbase' --> | |
183 | <set var="WXLIB_NET_NAME"> | |
184 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wxbase$(WX_VERSION)_net</if> | |
185 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wxbase$(WX_VERSION)d_net</if> | |
186 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wxbase$(WX_VERSION)u_net</if> | |
187 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wxbase$(WX_VERSION)ud_net</if> | |
188 | </set> | |
189 | <set var="WXLIB_XML_NAME"> | |
190 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wxbase$(WX_VERSION)_xml</if> | |
191 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wxbase$(WX_VERSION)d_xml</if> | |
192 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wxbase$(WX_VERSION)u_xml</if> | |
193 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wxbase$(WX_VERSION)ud_xml</if> | |
194 | </set> | |
195 | <set var="WXLIB_ODBC_NAME"> | |
196 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wxbase$(WX_VERSION)_odbc</if> | |
197 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wxbase$(WX_VERSION)d_odbc</if> | |
198 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wxbase$(WX_VERSION)u_odbc</if> | |
199 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wxbase$(WX_VERSION)ud_odbc</if> | |
200 | </set> | |
201 | ||
202 | <!-- Libraries whose name is prefixed with 'wx' only --> | |
203 | <set var="WXLIB_CORE_NAME"> | |
204 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_core</if> | |
205 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_core</if> | |
206 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_core</if> | |
207 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_core</if> | |
208 | </set> | |
f814ff33 KO |
209 | <set var="WXLIB_MEDIA_NAME"> |
210 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_media</if> | |
211 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_media</if> | |
212 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_media</if> | |
213 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_media</if> | |
214 | </set> | |
ad6f7122 VZ |
215 | <set var="WXLIB_XRC_NAME"> |
216 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_xrc</if> | |
217 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_xrc</if> | |
218 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_xrc</if> | |
219 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_xrc</if> | |
220 | </set> | |
221 | <set var="WXLIB_HTML_NAME"> | |
222 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_html</if> | |
223 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_html</if> | |
224 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_html</if> | |
225 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_html</if> | |
226 | </set> | |
227 | <set var="WXLIB_ADV_NAME"> | |
228 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_adv</if> | |
229 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_adv</if> | |
230 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_adv</if> | |
231 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_adv</if> | |
232 | </set> | |
f814ff33 KO |
233 | <set var="WXLIB_QA_NAME"> |
234 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_qa</if> | |
235 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_qa</if> | |
236 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_qa</if> | |
237 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_qa</if> | |
238 | </set> | |
239 | <set var="WXLIB_DBGRID_NAME"> | |
240 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_dbgrid</if> | |
241 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_dbgrid</if> | |
242 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_dbgrid</if> | |
243 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_dbgrid</if> | |
244 | </set> | |
245 | <set var="WXLIB_GL_NAME"> | |
246 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)_gl</if> | |
247 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='0' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)d_gl</if> | |
248 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='0'">wx$(WXPORT)$(WX_VERSION)u_gl</if> | |
249 | <if cond="WX_MONOLITHIC=='0' and WX_UNICODE=='1' and WX_DEBUG=='1'">wx$(WXPORT)$(WX_VERSION)ud_gl</if> | |
250 | </set> | |
ad6f7122 VZ |
251 | |
252 | ||
253 | ||
254 | ||
255 | ||
256 | ||
83c7f6a7 VS |
257 | <!-- WX TEMPLATE --> |
258 | <!-- --> | |
259 | <!-- --> | |
260 | <!-- While not required, templates make your --> | |
261 | <!-- bakefiles much more readable. Templates, in --> | |
262 | <!-- essence, are abstract classes like c++. --> | |
263 | <!-- --> | |
264 | <!-- Your build targets "inherit" the template, --> | |
265 | <!-- along with the info associated with the template --> | |
266 | ||
267 | <!-- --> | |
268 | <!-- wxWidgets LIBRARY/APP TEMPLATE --> | |
269 | <!-- --> | |
270 | <!-- The "base class" of all our build targets --> | |
271 | <!-- This links with the appropriate native --> | |
3103e8a9 | 272 | <!-- libraries required by the platform, the libraries --> |
83c7f6a7 VS |
273 | <!-- we want for our stuff, and the wxWindows libs. --> |
274 | ||
83c7f6a7 VS |
275 | <!-- this tag is used to include wx libraries: --> |
276 | <define-tag name="wx-lib" rules="exe,dll,module"> | |
ad6f7122 VZ |
277 | <if cond="value=='base'"><sys-lib>$(WXLIB_BASE_NAME)</sys-lib></if> |
278 | <if cond="value=='core'"><sys-lib>$(WXLIB_CORE_NAME)</sys-lib></if> | |
279 | ||
280 | <if cond="value=='net'"><sys-lib>$(WXLIB_NET_NAME)</sys-lib></if> | |
281 | <if cond="value=='xml'"><sys-lib>$(WXLIB_XML_NAME)</sys-lib></if> | |
282 | <if cond="value=='odbc'"><sys-lib>$(WXLIB_ODBC_NAME)</sys-lib></if> | |
283 | ||
f814ff33 | 284 | <if cond="value=='media'"><sys-lib>$(WXLIB_MEDIA_NAME)</sys-lib></if> |
ad6f7122 VZ |
285 | <if cond="value=='xrc'"><sys-lib>$(WXLIB_XRC_NAME)</sys-lib></if> |
286 | <if cond="value=='html'"><sys-lib>$(WXLIB_HTML_NAME)</sys-lib></if> | |
287 | <if cond="value=='adv'"><sys-lib>$(WXLIB_ADV_NAME)</sys-lib></if> | |
f814ff33 KO |
288 | <if cond="value=='gl'"><sys-lib>$(WXLIB_GL_NAME)</sys-lib></if> |
289 | <if cond="value=='dbgrid'"><sys-lib>$(WXLIB_DBGRID_NAME)</sys-lib></if> | |
290 | <if cond="value=='qa'"><sys-lib>$(WXLIB_QA_NAME)</sys-lib></if> | |
291 | ||
292 | <!-- wx-lib can be used also to link against contrib libraries | |
293 | (which always have the same name, regardless of WX_MONOLITHIC value) --> | |
294 | <if cond="value in CONTRIBLIB_LIST.split()"> | |
295 | <sys-lib>wx$(WXPORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)</sys-lib> | |
296 | </if> | |
ad6f7122 | 297 | |
f814ff33 | 298 | <if cond="value not in ALLLIB_LIST.split()"> |
ad6f7122 | 299 | <error>Unknown wxWidgets library given in the wx-lib tag</error> |
83c7f6a7 VS |
300 | </if> |
301 | </define-tag> | |
302 | ||
303 | <!-- just a placeholder to mark the place where <wx-lib> will be placed, | |
304 | thanks to the order precedence declaration below it: --> | |
305 | <define-tag name="__wx-libs-point" rules="exe,dll,module"/> | |
306 | <tag-info name="wx-lib" | |
307 | position="before:__wx-libs-point"/> | |
bb51876f VS |
308 | <tag-info name="__wx-syslibs" |
309 | position="after:__wx-libs-point"/> | |
6af800ff | 310 | |
83c7f6a7 | 311 | |
c07e76fa VS |
312 | <!-- template for static wx libraries: --> |
313 | <template id="wx-lib"> | |
83c7f6a7 | 314 | <!-- MISCELLANEOUS --> |
6af800ff | 315 | <if cond="FORMAT=='mingw'"> |
83c7f6a7 VS |
316 | <define>HAVE_W32API_H</define> |
317 | <ldflags>-mthreads</ldflags> | |
318 | </if> | |
319 | ||
320 | <define>$(WXUNICODE_DEFINE)</define> | |
6af800ff | 321 | <define>$(WXDEBUG_DEFINE)</define> |
83c7f6a7 VS |
322 | <define>__WXMSW__</define> |
323 | ||
324 | <include>$(WX_DIR)$(WXLIBINCLUDE)</include> | |
325 | <include>$(WX_DIR)/include</include> | |
c07e76fa | 326 | </template> |
6af800ff VZ |
327 | |
328 | ||
bb51876f VS |
329 | <!-- this ugly tag contains all sys-lib tags used by "wx" template, |
330 | in order to make sure they are not reorder when wx-lib is moved | |
331 | after __wx-libs-point: --> | |
332 | <define-tag name="__wx-syslibs" rules="exe,dll,module"> | |
83c7f6a7 | 333 | <!-- wx 3rd party libs, always use them: --> |
a20169a4 WS |
334 | <sys-lib cond="FORMAT!='msevc4prj'">wxtiff$(WX3RDPARTYLIBPOSTFIX)</sys-lib> |
335 | <sys-lib>wxjpeg$(WX3RDPARTYLIBPOSTFIX)</sys-lib> | |
336 | <sys-lib>wxpng$(WX3RDPARTYLIBPOSTFIX)</sys-lib> | |
337 | <sys-lib>wxzlib$(WX3RDPARTYLIBPOSTFIX)</sys-lib> | |
338 | <!-- For regex we won't use the WX3RDPARTYLIBPOSTIX postfix: | |
83c7f6a7 VS |
339 | unliked tiff, jpeg, png, zlib, expat, when building |
340 | in Unicode mode, the "u" suffix is appended to regex --> | |
a20169a4 | 341 | <sys-lib cond="FORMAT!='msevc4prj'">wxregex$(WXLIBPOSTFIX)</sys-lib> |
c7ca49e4 | 342 | <sys-lib>wxexpat$(WX3RDPARTYLIBPOSTFIX)</sys-lib> |
6af800ff | 343 | |
83c7f6a7 VS |
344 | <!-- link-in system libs that wx depends on: --> |
345 | <!-- If on borland, we don't need to do much --> | |
346 | <if cond="FORMAT=='borland'"> | |
347 | <sys-lib>ole2w32</sys-lib> | |
650372cf | 348 | <sys-lib>odbc32</sys-lib> |
83c7f6a7 VS |
349 | </if> |
350 | ||
351 | <!-- Non-borland, on the other hand... --> | |
965122c4 | 352 | <if cond="FORMAT not in ['borland','msevc4prj']"> |
83c7f6a7 VS |
353 | <sys-lib>kernel32</sys-lib> |
354 | <sys-lib>user32</sys-lib> | |
355 | <sys-lib>gdi32</sys-lib> | |
356 | <sys-lib>comdlg32</sys-lib> | |
357 | <sys-lib>winspool</sys-lib> | |
358 | <sys-lib>winmm</sys-lib> | |
359 | <sys-lib>shell32</sys-lib> | |
360 | <sys-lib>comctl32</sys-lib> | |
361 | <sys-lib>ole32</sys-lib> | |
362 | <sys-lib>oleaut32</sys-lib> | |
363 | <sys-lib>uuid</sys-lib> | |
364 | <sys-lib>rpcrt4</sys-lib> | |
365 | <sys-lib>advapi32</sys-lib> | |
366 | <sys-lib>wsock32</sys-lib> | |
367 | <sys-lib>odbc32</sys-lib> | |
368 | </if> | |
369 | ||
370 | <!-- Libs common to both borland and MSVC --> | |
371 | <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'"> | |
372 | <sys-lib>oleacc</sys-lib> | |
373 | </if> | |
bb51876f | 374 | </define-tag> |
6af800ff | 375 | |
bb51876f VS |
376 | <!-- template for wx executables/dlls: --> |
377 | <template id="wx" template="wx-lib"> | |
378 | <lib-path>$(WX_DIR)$(WXLIBPATH)</lib-path> | |
379 | ||
380 | <!-- wx libs must come before 3rd party and sys libs, this is | |
381 | the place where the hack explained above is carried on: --> | |
382 | <__wx-libs-point/> | |
383 | <__wx-syslibs/> | |
83c7f6a7 VS |
384 | </template> |
385 | ||
386 | </makefile> |