]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common_samples.bkl
fixed dependencies
[wxWidgets.git] / build / bakefiles / common_samples.bkl
CommitLineData
ddf98968
VS
1<?xml version="1.0" ?>
2<makefile>
3
4 <set var="BUILDING_LIB">0</set>
5
6 <include file="common.bkl"/>
7
8
9 <!-- =============================================================== -->
10 <!-- Template for wxWindows samples: -->
11 <!-- =============================================================== -->
12
13 <if cond="FORMAT=='autoconf'">
14 <set var="MACOSX_RESOURCES">
15 <if cond="TOOLKIT=='MAC'">
16 Carbon.r ../../lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r
17 </if>
18 </set>
19 </if>
20
21 <template id="wx_sample" template="wx">
22 <include>$(SRCDIR)</include>
23 <!-- Always link against the wxWin library in monolithic build: -->
24 <sys-lib>$(WXLIB_MONO)</sys-lib>
25 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
26
27 <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
28 </template>
29
30
31 <!-- =============================================================== -->
32 <!-- Support for samples data files: -->
33 <!-- =============================================================== -->
34
35 <define-rule name="wx-data" extends="copy-files">
36 <template>
37 <dependency-of>all</dependency-of>
38 <dstdir>$(BUILDDIR)</dstdir>
39 <srcdir>$(SRCDIR)</srcdir>
40 </template>
41 <define-tag name="files">
42 <clean-files>
43 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
44 </clean-files>
45 </define-tag>
46 </define-rule>
47
48</makefile>