]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/wx.bkl
XML library moved to the core
[wxWidgets.git] / build / bakefiles / wx.bkl
CommitLineData
ddf98968
VS
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: -->
e86e1522 20 <include file="multilib.bkl"/>
4d264332
VS
21 <!-- OpenGL canvas is built as separate library in both cases: -->
22 <include file="opengl.bkl"/>
ddf98968
VS
23
24
25 <!-- Samples target (not dependency of 'all'): -->
26 <!-- [ FIXME disabled; currently causes make install to go into samples ]
27 <subproject id="samples">
28 <dir>samples</dir>
29 </subproject>
30 -->
31
32 <if cond="FORMAT=='autoconf'">
33 <!-- "make install": -->
34
35 <data-files>
36 <files>wxwin.m4</files>
37 <install-to>$(DATADIR)/aclocal</install-to>
38 </data-files>
39
40 <data-files-tg id="install-afm" cond="USE_GUI=='1'">
41 <files>misc/afm/*.afm</files>
42 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/afm</install-to>
43 </data-files-tg>
44 <data-files-tg id="install-gsafm" cond="USE_GUI=='1'">
45 <files>misc/gs_afm/*.afm</files>
46 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/gs_afm</install-to>
47 </data-files-tg>
48
49 <action id="install-wxconfig">
50 <dependency-of>install</dependency-of>
51 <command>
52 $(INSTALL_DIR) $(BINDIR)
53 $(INSTALL_PROGRAM) wx$(TOOLCHAIN_NAME)-config $(BINDIR)
54 (cd $(BINDIR) &amp;&amp; rm -f wx-config &amp;&amp; $(LN_S) wx$(TOOLCHAIN_NAME)-config wx-config)
55 </command>
56 </action>
57
58 <data-files>
59 <srcdir>$(BUILDDIR)</srcdir>
60 <files>lib/wx/include/$(TOOLCHAIN_NAME)/wx/setup.h</files>
61 <install-to>$(LIBDIR)/wx/include/$(TOOLCHAIN_NAME)/wx</install-to>
62 </data-files>
63
64 <headers>
65 <srcdir>$(SRCDIR)/include</srcdir>
66 <files>$(ALL_HEADERS)</files>
67 </headers>
68
69
70 <!-- Mac OS X resources: -->
71 <set var="MACOS_R">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r</set>
72 <set var="MACOS_RSRC">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).rsrc</set>
73 <action id="macos-res" cond="TOOLKIT=='MAC'">
74 <dependency-of>all</dependency-of>
75 <set var="__targetname">$(MACOS_R)</set>
76 <command>
622dca25 77 $(RESCOMP) -d __UNIX__ -useDF $(top_srcdir)/src/mac/apprsrc.r $(top_srcdir)/src/mac/carbrsrc.r $(top_srcdir)/src/mac/corersrc.r -o $(MACOS_RSRC)
ddf98968
VS
78 $(DEREZ) $(MACOS_RSRC) Carbon.r -useDF >$(MACOS_R)
79 </command>
80 <clean-files>$(MACOS_RSRC) $(MACOS_R)</clean-files>
81 </action>
82 <action id="macos-res-install" cond="TOOLKIT=='MAC'">
83 <dependency-of>install</dependency-of>
84 <depends>macos-res</depends>
85 <command>
86 $(INSTALL_DATA) $(MACOS_R) $(LIBDIR)
87 $(INSTALL_DATA) $(MACOS_RSRC) $(LIBDIR)
88 </command>
89 </action>
90
91 </if>
92
4cd612f9
VS
93
94 <!-- copy setup.h on Windows: -->
95 <if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
96 <mkdir id="libdir">
47652170
VS
97 <dir>$(LIBDIRNAME)</dir>
98 </mkdir>
99 <mkdir id="libdir_wx">
100 <depends>libdir</depends>
4cd612f9
VS
101 <dir>$(LIBDIRNAME)/wx</dir>
102 </mkdir>
47652170 103
4cd612f9
VS
104 <copy-file-to-file id="msw/setup.h">
105 <src>$(SRCDIR)/include/wx/msw/setup0.h</src>
106 <dst>$(SRCDIR)/include/wx/msw/setup.h</dst>
107 </copy-file-to-file>
108 <copy-file-to-file id="setup.h">
109 <depends>msw/setup.h</depends>
47652170 110 <depends>libdir_wx</depends>
4cd612f9
VS
111 <src>$(SRCDIR)/include/wx/msw/setup.h</src>
112 <dst>$(LIBDIRNAME)/wx/setup.h</dst>
113 </copy-file-to-file>
47652170
VS
114 <phony id="setup_h">
115 <depends>setup.h</depends>
116 </phony>
4cd612f9
VS
117 </if>
118
ddf98968 119</makefile>