]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common_samples.bkl
Added wxRenderer method for drawing selection
[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 <!-- =============================================================== -->
77ffb593 10 <!-- Template for wxWidgets samples: -->
ddf98968
VS
11 <!-- =============================================================== -->
12
13 <if cond="FORMAT=='autoconf'">
14 <set var="MACOSX_RESOURCES">
15 <if cond="TOOLKIT=='MAC'">
d391f667 16 Carbon.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>
b6dc1b90
VS
33 <!-- resource files includes: -->
34 <include>$(SRCDIR)/$(WXTOPDIR)samples</include>
35 <!-- this include is not added via <include> for autoconf, see
36 common.bkl: -->
c8d58531 37 <if cond="FORMAT=='autoconf'">
c8d58531 38 <res-include>$(RCDEFDIR)</res-include>
92641c0d 39 <res-include>$(TOP_SRCDIR)include</res-include>
c8d58531 40 </if>
b6dc1b90 41
e54bb212 42 <win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
9e983cb2
VS
43 <if cond="FORMAT=='autoconf'">
44 <wx-os2-lib-resource/>
45 </if>
649f7053
VS
46
47 <!-- FIXME: temporary, until bakefile can reuse existing pch files -->
48 <if cond="FORMAT!='autoconf'">
49 <define>NOPCH</define>
50 </if>
ddf98968 51 </template>
4574209d 52
a69544bf 53 <template id="wx_util_console" template="wx_util_b">
4574209d 54 <app-type>console</app-type>
070e8453 55 <define>wxUSE_GUI=0</define>
4574209d 56 </template>
a69544bf
VS
57
58 <template id="wx_sample" template="wx_util">
ef0add05 59 <if cond="FORMAT=='autoconf'">
425c0d76 60 <wx-mac-app-bundle/>
ef0add05 61 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
2fd4bec3 62 <postlink-command>$(SAMPLES_RPATH_POSTLINK)</postlink-command>
ef0add05 63 </if>
a69544bf
VS
64 </template>
65 <template id="wx_sample_console" template="wx_util_console">
ef0add05
VS
66 <if cond="FORMAT=='autoconf'">
67 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
2fd4bec3 68 <postlink-command>$(SAMPLES_RPATH_POSTLINK)</postlink-command>
ef0add05 69 </if>
a69544bf 70 </template>
670ec357 71
ddf98968
VS
72
73 <!-- =============================================================== -->
74 <!-- Support for samples data files: -->
75 <!-- =============================================================== -->
76
77 <define-rule name="wx-data" extends="copy-files">
78 <template>
79 <dependency-of>all</dependency-of>
80 <dstdir>$(BUILDDIR)</dstdir>
81 <srcdir>$(SRCDIR)</srcdir>
82 </template>
52de10ef
VS
83
84 <!--
85 VS - FIXME:
86 Don't clean the files because it would wipe out sources files if
87 BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
88 but it would be better to delete the files during "make clean" if
89 BUILDDIR!=SRCDIR.
90
ddf98968
VS
91 <define-tag name="files">
92 <clean-files>
93 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
94 </clean-files>
95 </define-tag>
52de10ef 96 -->
ddf98968 97 </define-rule>
9e983cb2
VS
98
99
100 <!-- =============================================================== -->
101 <!-- Misc platform specialities: -->
102 <!-- =============================================================== -->
ddf98968 103
425c0d76
VS
104 <if cond="FORMAT=='autoconf'">
105 <include file="mac_bundles.bkl"/>
9e983cb2
VS
106
107 <!--
108 A hack to include precompiled OS/2 resource file in apps instead of
109 compiling it from .rc file (gcc on OS/2 doesn't ship with resource
110 compiler):
111 -->
112 <define-tag name="wx-os2-lib-resource" rules="exe">
113 <set var="os2_lib_res">
114 <if cond="PLATFORM_OS2=='1'">
115 $(TOP_SRCDIR)include/wx/os2/wx.res
116 </if>
117 </set>
118 <set var="__objects" append="1">$(os2_lib_res)</set>
119 </define-tag>
425c0d76 120 </if>
9e983cb2 121
425c0d76 122
ddf98968 123</makefile>