support for building multilib DLLs
[wxWidgets.git] / build / bakefiles / multilib.bkl
1 <?xml version="1.0" ?>
2 <makefile>
3     
4     <!-- ================================================================= -->
5     <!--                            wxBase library                         -->
6     <!-- ================================================================= -->
7     
8     <dll id="basedll" template="wx_dll"
9          cond="SHARED=='1' and MONOLITHIC=='0'">
10         <define>WXUSINGDLL</define>
11         <define>WXMAKINGDLL_BASE</define>
12         <define>wxUSE_BASE=1</define>
13         <define>wxUSE_GUI=0</define> 
14         <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
15     </dll>
16     
17     <lib id="baselib" template="wx_lib"
18          cond="SHARED=='0' and MONOLITHIC=='0'">
19         <define>wxUSE_BASE=1</define> 
20         <define>wxUSE_GUI=0</define> 
21         <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
22     </lib>
23
24     <!-- ================================================================= -->
25     <!--                           Main GUI library                        -->
26     <!-- ================================================================= -->
27     
28     <dll id="coredll" template="wx_dll"
29          cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
30         <define>WXUSINGDLL</define>
31         <define>WXMAKINGDLL_CORE</define>
32         <define>wxUSE_BASE=0</define> 
33         <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
34         <library>basedll</library>
35     </dll>
36     
37     <lib id="corelib" template="wx_lib"
38          cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
39         <define>wxUSE_BASE=0</define> 
40         <sources>$(BASE_AND_GUI_SRC) $(CORE_SRC)</sources>
41     </lib>
42
43     
44     <!-- ================================================================ -->
45     <!--                               wxHTML                             -->
46     <!-- ================================================================ -->
47     
48     <dll id="htmldll" template="wx_dll"
49          cond="SHARED=='1' and USE_GUI=='1' and MONOLITHIC=='0'">
50         <define>WXUSINGDLL</define>
51         <define>WXMAKINGDLL_HTML</define>
52         <sources>$(HTML_SRC)</sources>
53         <library>coredll</library>
54         <library>basedll</library>
55     </dll>
56     
57     <lib id="htmllib" template="wx_lib"
58          cond="SHARED=='0' and USE_GUI=='1' and MONOLITHIC=='0'">
59         <sources>$(HTML_SRC)</sources>
60     </lib>
61
62 </makefile>