]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
52de10ef VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 VS |
4 | <makefile> |
5 | ||
ddf98968 | 6 | <include file="common.bkl"/> |
52de10ef | 7 | <set var="file_common_samples_included">1</set> |
ddf98968 VS |
8 | |
9 | <!-- =============================================================== --> | |
10 | <!-- Template for wxWindows samples: --> | |
11 | <!-- =============================================================== --> | |
12 | ||
13 | <if cond="FORMAT=='autoconf'"> | |
14 | <set var="MACOSX_RESOURCES"> | |
15 | <if cond="TOOLKIT=='MAC'"> | |
71258947 | 16 | Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r |
ddf98968 VS |
17 | </if> |
18 | </set> | |
19 | </if> | |
cdc0282e VS |
20 | |
21 | <set var="DLLFLAG"> | |
22 | <if cond="SHARED=='1'">WXUSINGDLL</if> | |
23 | </set> | |
ddf98968 | 24 | |
4574209d | 25 | <template id="wx_sample_b" template="wx"> |
ddf98968 VS |
26 | <include>$(SRCDIR)</include> |
27 | <!-- Always link against the wxWin library in monolithic build: --> | |
28 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
29 | <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags> | |
cdc0282e | 30 | <define>$(DLLFLAG)</define> |
4574209d VS |
31 | </template> |
32 | ||
33 | <template id="wx_sample" template="wx_sample_b"> | |
cdc0282e | 34 | <app-type>gui</app-type> |
ddf98968 VS |
35 | <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res> |
36 | </template> | |
4574209d VS |
37 | |
38 | <template id="wx_sample_console" template="wx_sample_b"> | |
39 | <app-type>console</app-type> | |
40 | </template> | |
ddf98968 VS |
41 | |
42 | ||
43 | <!-- =============================================================== --> | |
44 | <!-- Support for samples data files: --> | |
45 | <!-- =============================================================== --> | |
46 | ||
47 | <define-rule name="wx-data" extends="copy-files"> | |
48 | <template> | |
49 | <dependency-of>all</dependency-of> | |
50 | <dstdir>$(BUILDDIR)</dstdir> | |
51 | <srcdir>$(SRCDIR)</srcdir> | |
52 | </template> | |
52de10ef VS |
53 | |
54 | <!-- | |
55 | VS - FIXME: | |
56 | Don't clean the files because it would wipe out sources files if | |
57 | BUILDDIR==SRCDIR. This is same behaviour as in the old build system, | |
58 | but it would be better to delete the files during "make clean" if | |
59 | BUILDDIR!=SRCDIR. | |
60 | ||
ddf98968 VS |
61 | <define-tag name="files"> |
62 | <clean-files> | |
63 | $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()])) | |
64 | </clean-files> | |
65 | </define-tag> | |
52de10ef | 66 | --> |
ddf98968 VS |
67 | </define-rule> |
68 | ||
69 | </makefile> |