]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/wx.bkl
different name for release and debug build of third party libraries
[wxWidgets.git] / build / bakefiles / wx.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4
5 <!-- Master bakefile for wxWindows -->
6
7 <makefile>
8
9 <set var="BUILDING_LIB">1</set>
10
11 <!-- common rules, names etc. for wx: -->
12 <include file="common.bkl"/>
13
14 <!-- list of files sorted into categories: -->
15 <include file="files.bkl"/>
16
17 <!-- wxWindows variant where everything is in one library: -->
18 <include file="monolithic.bkl"/>
19 <!-- ...and when there are multiple libraries: -->
20 <include file="multilib.bkl"/>
21
22
23 <!-- Samples target (not dependency of 'all'): -->
24 <!-- [ FIXME disabled; currently causes make install to go into samples ]
25 <subproject id="samples">
26 <dir>samples</dir>
27 </subproject>
28 -->
29
30 <if cond="FORMAT=='autoconf'">
31 <!-- "make install": -->
32
33 <data-files>
34 <files>wxwin.m4</files>
35 <install-to>$(DATADIR)/aclocal</install-to>
36 </data-files>
37
38 <data-files-tg id="install-afm" cond="USE_GUI=='1'">
39 <files>misc/afm/*.afm</files>
40 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/afm</install-to>
41 </data-files-tg>
42 <data-files-tg id="install-gsafm" cond="USE_GUI=='1'">
43 <files>misc/gs_afm/*.afm</files>
44 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/gs_afm</install-to>
45 </data-files-tg>
46
47 <action id="install-wxconfig">
48 <dependency-of>install</dependency-of>
49 <command>
50 $(INSTALL_DIR) $(BINDIR)
51 $(INSTALL_PROGRAM) wx$(TOOLCHAIN_NAME)-config $(BINDIR)
52 (cd $(BINDIR) &amp;&amp; rm -f wx-config &amp;&amp; $(LN_S) wx$(TOOLCHAIN_NAME)-config wx-config)
53 </command>
54 </action>
55
56 <data-files>
57 <srcdir>$(BUILDDIR)</srcdir>
58 <files>lib/wx/include/$(TOOLCHAIN_NAME)/wx/setup.h</files>
59 <install-to>$(LIBDIR)/wx/include/$(TOOLCHAIN_NAME)/wx</install-to>
60 </data-files>
61
62 <headers>
63 <srcdir>$(SRCDIR)/include</srcdir>
64 <files>$(ALL_HEADERS)</files>
65 </headers>
66
67
68 <!-- Mac OS X resources: -->
69 <set var="MACOS_R">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r</set>
70 <set var="MACOS_RSRC">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).rsrc</set>
71 <action id="macos-res" cond="TOOLKIT=='MAC'">
72 <dependency-of>all</dependency-of>
73 <set var="__targetname">$(MACOS_R)</set>
74 <command>
75 $(RESCOMP) -d __UNIX__ -useDF $(top_srcdir)/src/mac/apprsrc.r $(top_srcdir)/src/mac/carbrsrc.r ../src/mac/corersrc.r -o $(MACOS_RSRC)
76 $(DEREZ) $(MACOS_RSRC) Carbon.r -useDF >$(MACOS_R)
77 </command>
78 <clean-files>$(MACOS_RSRC) $(MACOS_R)</clean-files>
79 </action>
80 <action id="macos-res-install" cond="TOOLKIT=='MAC'">
81 <dependency-of>install</dependency-of>
82 <depends>macos-res</depends>
83 <command>
84 $(INSTALL_DATA) $(MACOS_R) $(LIBDIR)
85 $(INSTALL_DATA) $(MACOS_RSRC) $(LIBDIR)
86 </command>
87 </action>
88
89 </if>
90
91
92 <!-- copy setup.h on Windows: -->
93 <if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
94 <mkdir id="libdir">
95 <dir>$(LIBDIRNAME)/wx</dir>
96 </mkdir>
97 <copy-file-to-file id="msw/setup.h">
98 <src>$(SRCDIR)/include/wx/msw/setup0.h</src>
99 <dst>$(SRCDIR)/include/wx/msw/setup.h</dst>
100 </copy-file-to-file>
101 <copy-file-to-file id="setup.h">
102 <depends>msw/setup.h</depends>
103 <depends>libdir</depends>
104 <src>$(SRCDIR)/include/wx/msw/setup.h</src>
105 <dst>$(LIBDIRNAME)/wx/setup.h</dst>
106 </copy-file-to-file>
107 </if>
108
109 </makefile>