]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/common_samples.bkl
6d9d4aa53c1266d72d98327c79841dadabe08c74
[wxWidgets.git] / build / bakefiles / common_samples.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5
6 <include file="common.bkl"/>
7 <set var="file_common_samples_included">1</set>
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 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r
17 </if>
18 </set>
19 </if>
20
21 <set var="DLLFLAG">
22 <if cond="SHARED=='1'">WXUSINGDLL</if>
23 </set>
24
25 <template id="wx_sample_b" template="wx">
26 <include>$(SRCDIR)</include>
27 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
28 <define>$(DLLFLAG)</define>
29 </template>
30
31 <template id="wx_sample" template="wx_sample_b">
32 <app-type>gui</app-type>
33 <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
34 </template>
35
36 <template id="wx_sample_console" template="wx_sample_b">
37 <app-type>console</app-type>
38 </template>
39
40
41 <!-- =============================================================== -->
42 <!-- Support for samples data files: -->
43 <!-- =============================================================== -->
44
45 <define-rule name="wx-data" extends="copy-files">
46 <template>
47 <dependency-of>all</dependency-of>
48 <dstdir>$(BUILDDIR)</dstdir>
49 <srcdir>$(SRCDIR)</srcdir>
50 </template>
51
52 <!--
53 VS - FIXME:
54 Don't clean the files because it would wipe out sources files if
55 BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
56 but it would be better to delete the files during "make clean" if
57 BUILDDIR!=SRCDIR.
58
59 <define-tag name="files">
60 <clean-files>
61 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
62 </clean-files>
63 </define-tag>
64 -->
65 </define-rule>
66
67 </makefile>