]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common_samples.bkl
Override CocoaSetEnabled() to call -[NSControl setEnabled:]
[wxWidgets.git] / build / bakefiles / common_samples.bkl
CommitLineData
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'">
1ccb4e5b 16 Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r sample.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
a69544bf 25 <template id="wx_util_b" template="wx">
ddf98968 26 <include>$(SRCDIR)</include>
cdc0282e 27 <define>$(DLLFLAG)</define>
4574209d
VS
28 </template>
29
a69544bf 30 <template id="wx_util" template="wx_util_b">
cdc0282e 31 <app-type>gui</app-type>
ddf98968 32 <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
1ccb4e5b 33 <include>$(SRCDIR)/$(WXTOPDIR)samples</include> <!-- for .rc files -->
e54bb212 34 <win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
ddf98968 35 </template>
4574209d 36
a69544bf 37 <template id="wx_util_console" template="wx_util_b">
4574209d
VS
38 <app-type>console</app-type>
39 </template>
a69544bf
VS
40
41 <template id="wx_sample" template="wx_util">
ef0add05 42 <if cond="FORMAT=='autoconf'">
425c0d76 43 <wx-mac-app-bundle/>
ef0add05
VS
44 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
45 <__command>$(LF)$(SAMPLES_RPATH_POSTLINK)</__command>
46 </if>
a69544bf
VS
47 </template>
48 <template id="wx_sample_console" template="wx_util_console">
ef0add05
VS
49 <if cond="FORMAT=='autoconf'">
50 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
51 <__command>$(SAMPLES_RPATH_POSTLINK)</__command>
52 </if>
a69544bf 53 </template>
ddf98968
VS
54
55
56 <!-- =============================================================== -->
57 <!-- Support for samples data files: -->
58 <!-- =============================================================== -->
59
60 <define-rule name="wx-data" extends="copy-files">
61 <template>
62 <dependency-of>all</dependency-of>
63 <dstdir>$(BUILDDIR)</dstdir>
64 <srcdir>$(SRCDIR)</srcdir>
65 </template>
52de10ef
VS
66
67 <!--
68 VS - FIXME:
69 Don't clean the files because it would wipe out sources files if
70 BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
71 but it would be better to delete the files during "make clean" if
72 BUILDDIR!=SRCDIR.
73
ddf98968
VS
74 <define-tag name="files">
75 <clean-files>
76 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
77 </clean-files>
78 </define-tag>
52de10ef 79 -->
ddf98968
VS
80 </define-rule>
81
425c0d76
VS
82 <if cond="FORMAT=='autoconf'">
83 <include file="mac_bundles.bkl"/>
84 </if>
85
ddf98968 86</makefile>