]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/multilib.bkl
build fix: return type for AutoComplete is bool
[wxWidgets.git] / build / bakefiles / multilib.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5
6 <define-rule name="wxshortcut" extends="phony">
7 <template>
8 <set var="name">$(id.replace('wx',''))</set>
9 <set var="namedll">
10 <if cond="SHARED=='1'">$(name)dll</if>
11 </set>
12 <set var="namelib">
13 <if cond="SHARED=='0'">$(name)lib</if>
14 </set>
15 <depends>$(namedll)</depends>
16 <depends>$(namelib)</depends>
17 </template>
18 </define-rule>
19
20 <!-- ================================================================= -->
21 <!-- wxBase library -->
22 <!-- ================================================================= -->
23
24 <dll id="basedll" template="wx_base_dll"
25 cond="SHARED=='1' and MONOLITHIC=='0'">
26 <define>WXMAKINGDLL_BASE</define>
27 <define>wxUSE_BASE=1</define>
28 <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
29 <msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
30 </dll>
31
32 <lib id="baselib" template="wx_base_lib"
33 cond="SHARED=='0' and MONOLITHIC=='0'">
34 <define>wxUSE_BASE=1</define>
35 <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
36 <msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
37 </lib>
38
39 <wxshortcut id="wxbase" cond="MONOLITHIC=='0'"/>
40
41 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">base=baselib+basedll</set>
42
43
44 <!-- ================================================================= -->
45 <!-- wxNet library -->
46 <!-- ================================================================= -->
47
48 <dll id="netdll" template="wx_base_dll"
49 cond="SHARED=='1' and MONOLITHIC=='0'">
50 <define>WXUSINGDLL</define>
51 <define>WXMAKINGDLL_NET</define>
52 <sources>$(NET_SRC)</sources>
53 <msvc-headers>$(NET_CMN_HDR) $(NET_PLATFORM_HDR)</msvc-headers>
54 <library>basedll</library>
55 </dll>
56
57 <lib id="netlib" template="wx_base_lib"
58 cond="SHARED=='0' and MONOLITHIC=='0'">
59 <sources>$(NET_SRC)</sources>
60 <msvc-headers>$(NET_CMN_HDR) $(NET_PLATFORM_HDR)</msvc-headers>
61 </lib>
62
63 <wxshortcut id="wxnet" cond="MONOLITHIC=='0'"/>
64
65 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">net=netlib+netdll</set>
66
67
68 <!-- ================================================================= -->
69 <!-- Main GUI library -->
70 <!-- ================================================================= -->
71
72 <dll id="coredll" template="wx_dll"
73 cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
74 <define>WXUSINGDLL</define>
75 <define>WXMAKINGDLL_CORE</define>
76 <define>wxUSE_BASE=0</define>
77 <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
78 <msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
79 <library>basedll</library>
80 </dll>
81
82 <lib id="corelib" template="wx_lib"
83 cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
84 <define>wxUSE_BASE=0</define>
85 <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
86 <msvc-headers>$(ALL_GUI_HEADERS)</msvc-headers>
87 </lib>
88
89 <wxshortcut id="wxcore" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
90
91 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">core=corelib+coredll</set>
92
93
94 <!-- ================================================================= -->
95 <!-- "Advanced" controls library -->
96 <!-- ================================================================= -->
97
98 <dll id="advdll" template="wx_dll"
99 cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
100 <define>WXUSINGDLL</define>
101 <define>WXMAKINGDLL_ADV</define>
102 <sources>$(ADVANCED_SRC) $(PLUGIN_ADV_SRC)</sources>
103 <msvc-headers>$(ADVANCED_HDR)</msvc-headers>
104 <library>coredll</library>
105 <library>basedll</library>
106 <ldlibs>$(PLUGIN_ADV_EXTRALIBS)</ldlibs>
107 </dll>
108
109 <lib id="advlib" template="wx_lib"
110 cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
111 <sources>$(ADVANCED_SRC) $(PLUGIN_ADV_SRC)</sources>
112 <msvc-headers>$(ADVANCED_HDR)</msvc-headers>
113 </lib>
114
115 <wxshortcut id="wxadv" cond="MONOLITHIC=='0' and USE_GUI=='1'"/>
116
117 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">adv=advlib+advdll</set>
118
119
120 <!-- ================================================================= -->
121 <!-- wxMedia classes library -->
122 <!-- ================================================================= -->
123
124 <dll id="mediadll" template="wx_dll"
125 cond="SHARED=='1' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
126 <define>WXUSINGDLL</define>
127 <define>WXMAKINGDLL_MEDIA</define>
128 <sources>$(MEDIA_SRC)</sources>
129 <msvc-headers>$(MEDIA_HDR)</msvc-headers>
130 <library>coredll</library>
131 <library>basedll</library>
132 </dll>
133
134 <lib id="medialib" template="wx_lib"
135 cond="SHARED=='0' and USE_MEDIA=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
136 <sources>$(MEDIA_SRC)</sources>
137 <msvc-headers>$(MEDIA_HDR)</msvc-headers>
138 </lib>
139
140 <wxshortcut id="wxmedia" cond="MONOLITHIC=='0' and USE_GUI=='1' and USE_MEDIA=='1'"/>
141
142 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">media=medialib+mediadll</set>
143
144
145 <!-- ================================================================ -->
146 <!-- wxHTML -->
147 <!-- ================================================================ -->
148
149 <dll id="htmldll" template="wx_dll"
150 cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
151 <define>WXUSINGDLL</define>
152 <define>WXMAKINGDLL_HTML</define>
153 <sources>$(HTML_SRC)</sources>
154 <library>coredll</library>
155 <library>basedll</library>
156 <ldlibs>$(EXTRALIBS_HTML)</ldlibs>
157 <msvc-headers>$(HTML_HDR)</msvc-headers>
158 </dll>
159
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
165 <lib id="htmllib" template="wx_lib"
166 cond="SHARED=='0' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
167 <sources>$(HTML_SRC)</sources>
168 <msvc-headers>$(HTML_HDR)</msvc-headers>
169 </lib>
170
171 <wxshortcut id="wxhtml" cond="MONOLITHIC=='0' and USE_HTML=='1'"/>
172
173 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">html=htmllib+htmldll</set>
174
175 <!-- ================================================================ -->
176 <!-- OpenGL -->
177 <!-- ================================================================ -->
178
179 <!-- included by wx.bkl from opengl.bkl -->
180
181 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">gl=gllib+gldll</set>
182
183
184 <!-- ================================================================ -->
185 <!-- QA -->
186 <!-- ================================================================ -->
187
188 <dll id="qadll" template="wx_dll"
189 cond="SHARED=='1' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
190 <define>WXUSINGDLL</define>
191 <define>WXMAKINGDLL_QA</define>
192 <sources>$(QA_SRC)</sources>
193 <msvc-headers>$(QA_HDR)</msvc-headers>
194 <library>coredll</library>
195 <library>basedll</library>
196 <library>xmldll</library>
197 </dll>
198
199 <lib id="qalib" template="wx_lib"
200 cond="SHARED=='0' and USE_GUI=='1' and USE_QA=='1' and MONOLITHIC=='0'">
201 <sources>$(QA_SRC)</sources>
202 <msvc-headers>$(QA_HDR)</msvc-headers>
203 </lib>
204
205 <wxshortcut id="wxqa" cond="MONOLITHIC=='0' and USE_QA=='1'"/>
206
207 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">qa=qalib+qadll</set>
208
209 <!-- ================================================================ -->
210 <!-- XML -->
211 <!-- ================================================================ -->
212
213 <dll id="xmldll" template="wx_base_dll"
214 cond="SHARED=='1' and MONOLITHIC=='0'">
215 <define>WXUSINGDLL</define>
216 <define>WXMAKINGDLL_XML</define>
217 <sources>$(XML_SRC)</sources>
218 <msvc-headers>$(XML_HDR)</msvc-headers>
219 <library>basedll</library>
220 <ldlibs>$(EXTRALIBS_XML)</ldlibs>
221 </dll>
222
223 <lib id="xmllib" template="wx_base_lib"
224 cond="SHARED=='0' and MONOLITHIC=='0'">
225 <sources>$(XML_SRC)</sources>
226 <msvc-headers>$(XML_HDR)</msvc-headers>
227 </lib>
228
229 <wxshortcut id="wxxml" cond="MONOLITHIC=='0'"/>
230
231 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xml=xmllib+xmldll</set>
232
233 <!-- ================================================================ -->
234 <!-- XRC -->
235 <!-- ================================================================ -->
236
237 <dll id="xrcdll" template="wx_dll"
238 cond="SHARED=='1' and USE_XRC=='1' and MONOLITHIC=='0'">
239 <define>WXUSINGDLL</define>
240 <define>WXMAKINGDLL_XRC</define>
241 <sources>$(XRC_SRC)</sources>
242 <library>$(htmldll_library_link)</library>
243 <library>advdll</library>
244 <library>coredll</library>
245 <library>xmldll</library>
246 <library>basedll</library>
247 <msvc-headers>$(XRC_HDR)</msvc-headers>
248 </dll>
249
250 <lib id="xrclib" template="wx_lib"
251 cond="SHARED=='0' and USE_XRC=='1' and MONOLITHIC=='0'">
252 <sources>$(XRC_SRC)</sources>
253 <msvc-headers>$(XRC_HDR)</msvc-headers>
254 </lib>
255
256 <wxshortcut id="wxxrc" cond="MONOLITHIC=='0' and USE_XRC=='1'"/>
257
258 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">xrc=xrclib+xrcdll</set>
259
260 <!-- ================================================================ -->
261 <!-- AUI -->
262 <!-- ================================================================ -->
263
264 <dll id="auidll" template="wx_dll"
265 cond="SHARED=='1' and USE_AUI=='1' and MONOLITHIC=='0'">
266 <define>WXUSINGDLL</define>
267 <define>WXMAKINGDLL_AUI</define>
268 <sources>$(AUI_SRC)</sources>
269 <library>advdll</library>
270 <library>coredll</library>
271 <library>basedll</library>
272 <msvc-headers>$(AUI_HDR)</msvc-headers>
273 </dll>
274
275 <lib id="auilib" template="wx_lib"
276 cond="SHARED=='0' and USE_AUI=='1' and MONOLITHIC=='0'">
277 <sources>$(AUI_SRC)</sources>
278 <msvc-headers>$(AUI_HDR)</msvc-headers>
279 </lib>
280
281 <wxshortcut id="wxaui" cond="MONOLITHIC=='0' and USE_AUI=='1'"/>
282
283 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">aui=auilib+auidll</set>
284
285 <!-- ================================================================ -->
286 <!-- RICHTEXT -->
287 <!-- ================================================================ -->
288
289 <dll id="richtextdll" template="wx_dll"
290 cond="SHARED=='1' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
291 <define>WXUSINGDLL</define>
292 <define>WXMAKINGDLL_RICHTEXT</define>
293 <sources>$(RICHTEXT_SRC)</sources>
294 <library>advdll</library>
295 <library>$(htmldll_library_link)</library>
296 <library>xmldll</library>
297 <library>coredll</library>
298 <library>basedll</library>
299 <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
300 </dll>
301
302 <lib id="richtextlib" template="wx_lib"
303 cond="SHARED=='0' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
304 <sources>$(RICHTEXT_SRC)</sources>
305 <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
306 </lib>
307
308 <wxshortcut id="wxrichtext" cond="MONOLITHIC=='0' and USE_RICHTEXT=='1'"/>
309
310 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">richtext=richtextlib+richtextdll</set>
311
312 <!-- ================================================================ -->
313 <!-- STC -->
314 <!-- ================================================================ -->
315
316 <template id="stc_base">
317 <include>$(TOP_SRCDIR)src/stc/scintilla/include</include>
318 <include>$(TOP_SRCDIR)src/stc/scintilla/src</include>
319 <define>__WX__</define>
320 <define>SCI_LEXER</define>
321 <define>LINK_LEXERS</define>
322 <cppflags-borland>-w-8027</cppflags-borland>
323 <library>wxscintilla</library>
324 </template>
325
326 <dll id="stcdll" template="wx_dll,stc_base"
327 cond="SHARED=='1' and USE_STC=='1' and MONOLITHIC=='0'">
328 <define>WXUSINGDLL</define>
329 <define>WXMAKINGDLL_STC</define>
330 <sources>$(STC_SRC)</sources>
331 <library>coredll</library>
332 <library>basedll</library>
333 <msvc-headers>$(STC_HDR)</msvc-headers>
334 </dll>
335
336 <lib id="stclib" template="wx_lib,stc_base"
337 cond="SHARED=='0' and USE_STC=='1' and MONOLITHIC=='0'">
338 <sources>$(STC_SRC)</sources>
339 <msvc-headers>$(STC_HDR)</msvc-headers>
340 </lib>
341
342 <wxshortcut id="wxstc" cond="MONOLITHIC=='0' and USE_STC=='1'"/>
343
344 <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">stc=stclib+stcdll</set>
345
346 </makefile>