]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/multilib.bkl
Remove RPM .spec files from the repository.
[wxWidgets.git] / build / bakefiles / multilib.bkl
CommitLineData
ddf98968 1<?xml version="1.0" ?>
cb8bbc13 2
ddf98968 3<makefile>
61639efb 4
e80118cf
VS
5 <define-rule name="wxshortcut" extends="phony">
6 <template>
7 <set var="name">$(id.replace('wx',''))</set>
8 <set var="namedll">
9 <if cond="SHARED=='1'">$(name)dll</if>
10 </set>
11 <set var="namelib">
12 <if cond="SHARED=='0'">$(name)lib</if>
13 </set>
14 <depends>$(namedll)</depends>
15 <depends>$(namelib)</depends>
16 </template>
17 </define-rule>
18
ddf98968 19 <!-- ================================================================= -->
e86e1522 20 <!-- wxBase library -->
ddf98968 21 <!-- ================================================================= -->
61639efb 22
3560dc76 23 <dll id="basedll" template="wx_base_dll"
ddf98968 24 cond="SHARED=='1' and MONOLITHIC=='0'">
81659205 25 <define>WXMAKINGDLL_BASE</define>
e86e1522 26 <define>wxUSE_BASE=1</define>
e86e1522 27 <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
390c0cfb 28 <msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
ddf98968 29 </dll>
61639efb 30
3560dc76 31 <lib id="baselib" template="wx_base_lib"
ddf98968 32 cond="SHARED=='0' and MONOLITHIC=='0'">
61639efb 33 <define>wxUSE_BASE=1</define>
e86e1522 34 <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
390c0cfb 35 <msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
e86e1522 36 </lib>
7bd54b68 37
e80118cf
VS
38 <wxshortcut id="wxbase" cond="MONOLITHIC=='0'"/>
39
af594eca 40 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">base=baselib+basedll</set>
61639efb
VZ
41
42
7c4728f6
VS
43 <!-- ================================================================= -->
44 <!-- wxNet library -->
45 <!-- ================================================================= -->
61639efb 46
7c4728f6
VS
47 <dll id="netdll" template="wx_base_dll"
48 cond="SHARED=='1' and MONOLITHIC=='0'">
49 <define>WXUSINGDLL</define>
50 <define>WXMAKINGDLL_NET</define>
51 <sources>$(NET_SRC)</sources>
52 <msvc-headers>$(NET_CMN_HDR) $(NET_PLATFORM_HDR)</msvc-headers>
53 <library>basedll</library>
54 </dll>
61639efb 55
7c4728f6
VS
56 <lib id="netlib" template="wx_base_lib"
57 cond="SHARED=='0' and MONOLITHIC=='0'">
7c4728f6 58 <sources>$(NET_SRC)</sources>
e2281645 59 <msvc-headers>$(NET_CMN_HDR) $(NET_PLATFORM_HDR)</msvc-headers>
7c4728f6 60 </lib>
61639efb 61
e80118cf
VS
62 <wxshortcut id="wxnet" cond="MONOLITHIC=='0'"/>
63
af594eca 64 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">net=netlib+netdll</set>
e86e1522 65
61639efb 66
e86e1522
VS
67 <!-- ================================================================= -->
68 <!-- Main GUI library -->
69 <!-- ================================================================= -->
61639efb 70
e86e1522
VS
71 <dll id="coredll" template="wx_dll"
72 cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
a7140600 73 <define>WXUSINGDLL</define>
81659205 74 <define>WXMAKINGDLL_CORE</define>
61639efb 75 <define>wxUSE_BASE=0</define>
e86e1522 76 <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
390c0cfb 77 <msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
6c6df83a 78 <library>basedll</library>
e86e1522 79 </dll>
61639efb 80
e86e1522
VS
81 <lib id="corelib" template="wx_lib"
82 cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
61639efb 83 <define>wxUSE_BASE=0</define>
e86e1522 84 <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
390c0cfb 85 <msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
ddf98968 86 </lib>
61639efb 87
e80118cf
VS
88 <wxshortcut id="wxcore" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
89
af594eca 90 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">core=corelib+coredll</set>
61639efb
VZ
91
92
13cb46e0
VS
93 <!-- ================================================================= -->
94 <!-- "Advanced" controls library -->
95 <!-- ================================================================= -->
61639efb 96
13cb46e0
VS
97 <dll id="advdll" template="wx_dll"
98 cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
99 <define>WXUSINGDLL</define>
100 <define>WXMAKINGDLL_ADV</define>
c79241a2 101 <sources>$(ADVANCED_SRC) $(PLUGIN_ADV_SRC)</sources>
13cb46e0
VS
102 <msvc-headers>$(ADVANCED_HDR)</msvc-headers>
103 <library>coredll</library>
104 <library>basedll</library>
c79241a2 105 <ldlibs>$(PLUGIN_ADV_EXTRALIBS)</ldlibs>
13cb46e0 106 </dll>
61639efb 107
13cb46e0
VS
108 <lib id="advlib" template="wx_lib"
109 cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
c79241a2 110 <sources>$(ADVANCED_SRC) $(PLUGIN_ADV_SRC)</sources>
13cb46e0
VS
111 <msvc-headers>$(ADVANCED_HDR)</msvc-headers>
112 </lib>
61639efb 113
e80118cf
VS
114 <wxshortcut id="wxadv" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
115
af594eca 116 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">adv=advlib+advdll</set>
61639efb
VZ
117
118
2ae3b602
RN
119 <!-- ================================================================= -->
120 <!-- wxMedia classes library -->
121 <!-- ================================================================= -->
61639efb 122
2ae3b602 123 <dll id="mediadll" template="wx_dll"
557002cf 124 cond="SHARED=='1' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
2ae3b602
RN
125 <define>WXUSINGDLL</define>
126 <define>WXMAKINGDLL_MEDIA</define>
127 <sources>$(MEDIA_SRC)</sources>
128 <msvc-headers>$(MEDIA_HDR)</msvc-headers>
129 <library>coredll</library>
130 <library>basedll</library>
2f8711ed 131 <ldlibs>$(EXTRALIBS_MEDIA)</ldlibs>
2ae3b602 132 </dll>
61639efb 133
2ae3b602 134 <lib id="medialib" template="wx_lib"
557002cf 135 cond="SHARED=='0' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
2ae3b602
RN
136 <sources>$(MEDIA_SRC)</sources>
137 <msvc-headers>$(MEDIA_HDR)</msvc-headers>
138 </lib>
61639efb 139
e80118cf
VS
140 <wxshortcut id="wxmedia" cond="MONOLITHIC=='0' and USE_GUI=='1' and USE_MEDIA=='1'"/>
141
2ae3b602
RN
142 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">media=medialib+mediadll</set>
143
144
ddf98968
VS
145 <!-- ================================================================ -->
146 <!-- wxHTML -->
147 <!-- ================================================================ -->
61639efb 148
ddf98968 149 <dll id="htmldll" template="wx_dll"
0bcf9597 150 cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
a7140600 151 <define>WXUSINGDLL</define>
81659205 152 <define>WXMAKINGDLL_HTML</define>
ddf98968 153 <sources>$(HTML_SRC)</sources>
6c6df83a
VS
154 <library>coredll</library>
155 <library>basedll</library>
c839485c 156 <ldlibs>$(EXTRALIBS_HTML)</ldlibs>
390c0cfb 157 <msvc-headers>$(HTML_HDR)</msvc-headers>
ddf98968 158 </dll>
61639efb 159
47b6ebde
VS
160 <!-- use this to conditonally link against htmldll with <library>: -->
161 <set var="htmldll_library_link">
162 <if cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">htmldll</if>
163 </set>
164
ddf98968 165 <lib id="htmllib" template="wx_lib"
0bcf9597 166 cond="SHARED=='0' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
ddf98968 167 <sources>$(HTML_SRC)</sources>
390c0cfb 168 <msvc-headers>$(HTML_HDR)</msvc-headers>
ddf98968 169 </lib>
61639efb 170
e80118cf
VS
171 <wxshortcut id="wxhtml" cond="MONOLITHIC=='0' and USE_HTML=='1'"/>
172
af594eca 173 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">html=htmllib+htmldll</set>
61639efb 174
cfcf1d6e 175 <!-- ================================================================ -->
467d261e 176 <!-- wxWEBVIEW -->
cfcf1d6e
SL
177 <!-- ================================================================ -->
178
467d261e
SL
179 <dll id="webviewdll" template="wx_dll"
180 cond="SHARED=='1' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
cfcf1d6e 181 <define>WXUSINGDLL</define>
467d261e
SL
182 <define>WXMAKINGDLL_WEBVIEW</define>
183 <sources>$(WEBVIEW_SRC)</sources>
cfcf1d6e
SL
184 <library>coredll</library>
185 <library>basedll</library>
467d261e 186 <msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
cfcf1d6e
SL
187 </dll>
188
467d261e
SL
189 <lib id="webviewlib" template="wx_lib"
190 cond="SHARED=='0' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
191 <sources>$(WEBVIEW_SRC)</sources>
192 <msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
cfcf1d6e
SL
193 </lib>
194
467d261e 195 <wxshortcut id="wxwebview" cond="MONOLITHIC=='0' and USE_WEBVIEW=='1'"/>
cfcf1d6e 196
467d261e 197 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">webview=webviewlib+webviewdll</set>
cfcf1d6e 198
4d264332
VS
199 <!-- ================================================================ -->
200 <!-- OpenGL -->
201 <!-- ================================================================ -->
202
203 <!-- included by wx.bkl from opengl.bkl -->
61639efb 204
af594eca 205 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">gl=gllib+gldll</set>
61639efb
VZ
206
207
208 <!-- ================================================================ -->
209 <!-- QA -->
210 <!-- ================================================================ -->
211
212 <dll id="qadll" template="wx_dll"
213 cond="SHARED=='1' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
214 <define>WXUSINGDLL</define>
215 <define>WXMAKINGDLL_QA</define>
216 <sources>$(QA_SRC)</sources>
217 <msvc-headers>$(QA_HDR)</msvc-headers>
4ebd02e9 218 <library>coredll</library>
61639efb
VZ
219 <library>basedll</library>
220 <library>xmldll</library>
221 </dll>
222
223 <lib id="qalib" template="wx_lib"
224 cond="SHARED=='0' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
225 <sources>$(QA_SRC)</sources>
226 <msvc-headers>$(QA_HDR)</msvc-headers>
227 </lib>
228
e80118cf
VS
229 <wxshortcut id="wxqa" cond="MONOLITHIC=='0' and USE_QA=='1'"/>
230
61639efb
VZ
231 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">qa=qalib+qadll</set>
232
a69544bf
VS
233 <!-- ================================================================ -->
234 <!-- XML -->
235 <!-- ================================================================ -->
61639efb 236
a69544bf
VS
237 <dll id="xmldll" template="wx_base_dll"
238 cond="SHARED=='1' and MONOLITHIC=='0'">
239 <define>WXUSINGDLL</define>
240 <define>WXMAKINGDLL_XML</define>
241 <sources>$(XML_SRC)</sources>
390c0cfb 242 <msvc-headers>$(XML_HDR)</msvc-headers>
a69544bf
VS
243 <library>basedll</library>
244 <ldlibs>$(EXTRALIBS_XML)</ldlibs>
245 </dll>
61639efb 246
a69544bf
VS
247 <lib id="xmllib" template="wx_base_lib"
248 cond="SHARED=='0' and MONOLITHIC=='0'">
249 <sources>$(XML_SRC)</sources>
390c0cfb 250 <msvc-headers>$(XML_HDR)</msvc-headers>
a69544bf 251 </lib>
61639efb 252
e80118cf
VS
253 <wxshortcut id="wxxml" cond="MONOLITHIC=='0'"/>
254
af594eca 255 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xml=xmllib+xmldll</set>
61639efb 256
3849327b
VS
257 <!-- ================================================================ -->
258 <!-- XRC -->
259 <!-- ================================================================ -->
61639efb 260
3849327b
VS
261 <dll id="xrcdll" template="wx_dll"
262 cond="SHARED=='1' and USE_XRC=='1' and MONOLITHIC=='0'">
263 <define>WXUSINGDLL</define>
264 <define>WXMAKINGDLL_XRC</define>
265 <sources>$(XRC_SRC)</sources>
47b6ebde 266 <library>$(htmldll_library_link)</library>
3849327b
VS
267 <library>advdll</library>
268 <library>coredll</library>
269 <library>xmldll</library>
270 <library>basedll</library>
271 <msvc-headers>$(XRC_HDR)</msvc-headers>
272 </dll>
61639efb 273
3849327b
VS
274 <lib id="xrclib" template="wx_lib"
275 cond="SHARED=='0' and USE_XRC=='1' and MONOLITHIC=='0'">
276 <sources>$(XRC_SRC)</sources>
277 <msvc-headers>$(XRC_HDR)</msvc-headers>
278 </lib>
61639efb 279
e80118cf
VS
280 <wxshortcut id="wxxrc" cond="MONOLITHIC=='0' and USE_XRC=='1'"/>
281
3849327b 282 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xrc=xrclib+xrcdll</set>
61639efb 283
50acee04
JS
284 <!-- ================================================================ -->
285 <!-- AUI -->
286 <!-- ================================================================ -->
287
288 <dll id="auidll" template="wx_dll"
289 cond="SHARED=='1' and USE_AUI=='1' and MONOLITHIC=='0'">
290 <define>WXUSINGDLL</define>
291 <define>WXMAKINGDLL_AUI</define>
292 <sources>$(AUI_SRC)</sources>
293 <library>advdll</library>
294 <library>coredll</library>
295 <library>basedll</library>
296 <msvc-headers>$(AUI_HDR)</msvc-headers>
297 </dll>
298
299 <lib id="auilib" template="wx_lib"
300 cond="SHARED=='0' and USE_AUI=='1' and MONOLITHIC=='0'">
301 <sources>$(AUI_SRC)</sources>
302 <msvc-headers>$(AUI_HDR)</msvc-headers>
303 </lib>
e80118cf
VS
304
305 <wxshortcut id="wxaui" cond="MONOLITHIC=='0' and USE_AUI=='1'"/>
50acee04
JS
306
307 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">aui=auilib+auidll</set>
3c3ead1d
PC
308
309 <!-- ================================================================ -->
310 <!-- RIBBON -->
311 <!-- ================================================================ -->
312
313 <dll id="ribbondll" template="wx_dll"
314 cond="SHARED=='1' and USE_RIBBON=='1' and MONOLITHIC=='0'">
315 <define>WXUSINGDLL</define>
316 <define>WXMAKINGDLL_RIBBON</define>
317 <sources>$(RIBBON_SRC)</sources>
318 <library>advdll</library>
319 <library>coredll</library>
320 <library>basedll</library>
321 <msvc-headers>$(RIBBON_HDR)</msvc-headers>
322 </dll>
323
324 <lib id="ribbonlib" template="wx_lib"
325 cond="SHARED=='0' and USE_RIBBON=='1' and MONOLITHIC=='0'">
326 <sources>$(RIBBON_SRC)</sources>
327 <msvc-headers>$(RIBBON_HDR)</msvc-headers>
328 </lib>
329
330 <wxshortcut id="wxribbon" cond="MONOLITHIC=='0' and USE_RIBBON=='1'"/>
331
332 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">ribbon=ribbonlib+ribbondll</set>
50acee04 333
1c4293cb
VZ
334 <!-- ================================================================ -->
335 <!-- PROPGRID -->
336 <!-- ================================================================ -->
337
338 <dll id="propgriddll" template="wx_dll"
339 cond="SHARED=='1' and USE_PROPGRID=='1' and MONOLITHIC=='0'">
340 <define>WXUSINGDLL</define>
341 <define>WXMAKINGDLL_PROPGRID</define>
342 <sources>$(PROPGRID_SRC)</sources>
343 <library>advdll</library>
344 <library>coredll</library>
345 <library>basedll</library>
346 <msvc-headers>$(PROPGRID_HDR)</msvc-headers>
347 </dll>
348
349 <lib id="propgridlib" template="wx_lib"
350 cond="SHARED=='0' and USE_PROPGRID=='1' and MONOLITHIC=='0'">
351 <sources>$(PROPGRID_SRC)</sources>
352 <msvc-headers>$(PROPGRID_HDR)</msvc-headers>
353 </lib>
354
355 <wxshortcut id="wxpropgrid" cond="MONOLITHIC=='0' and USE_PROPGRID=='1'"/>
356
357 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">propgrid=propgridlib+propgriddll</set>
358
3b2cb431
JS
359 <!-- ================================================================ -->
360 <!-- RICHTEXT -->
361 <!-- ================================================================ -->
362
363 <dll id="richtextdll" template="wx_dll"
364 cond="SHARED=='1' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
365 <define>WXUSINGDLL</define>
c69f9884 366 <define>WXMAKINGDLL_RICHTEXT</define>
3b2cb431
JS
367 <sources>$(RICHTEXT_SRC)</sources>
368 <library>advdll</library>
47b6ebde 369 <library>$(htmldll_library_link)</library>
a3f6a2cd 370 <library>xmldll</library>
3b2cb431
JS
371 <library>coredll</library>
372 <library>basedll</library>
373 <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
374 </dll>
375
376 <lib id="richtextlib" template="wx_lib"
377 cond="SHARED=='0' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
378 <sources>$(RICHTEXT_SRC)</sources>
379 <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
380 </lib>
e80118cf
VS
381
382 <wxshortcut id="wxrichtext" cond="MONOLITHIC=='0' and USE_RICHTEXT=='1'"/>
3b2cb431
JS
383
384 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">richtext=richtextlib+richtextdll</set>
385
54429bb3
RD
386 <!-- ================================================================ -->
387 <!-- STC -->
388 <!-- ================================================================ -->
389
1ba904fe 390 <template id="stc_base" template="wxscintilla_cppflags">
54429bb3
RD
391 <library>wxscintilla</library>
392 </template>
393
394 <dll id="stcdll" template="wx_dll,stc_base"
395 cond="SHARED=='1' and USE_STC=='1' and MONOLITHIC=='0'">
396 <define>WXUSINGDLL</define>
397 <define>WXMAKINGDLL_STC</define>
398 <sources>$(STC_SRC)</sources>
399 <library>coredll</library>
400 <library>basedll</library>
401 <msvc-headers>$(STC_HDR)</msvc-headers>
402 </dll>
403
404 <lib id="stclib" template="wx_lib,stc_base"
405 cond="SHARED=='0' and USE_STC=='1' and MONOLITHIC=='0'">
406 <sources>$(STC_SRC)</sources>
407 <msvc-headers>$(STC_HDR)</msvc-headers>
408 </lib>
409
410 <wxshortcut id="wxstc" cond="MONOLITHIC=='0' and USE_STC=='1'"/>
411
412 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">stc=stclib+stcdll</set>
413
ddf98968 414</makefile>