6 <include file=
"common.bkl"/>
7 <set var=
"file_common_samples_included">1</set>
9 <!-- =============================================================== -->
10 <!-- Template for wxWindows samples: -->
11 <!-- =============================================================== -->
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 sample.r
22 <if cond=
"SHARED=='1'">WXUSINGDLL
</if>
25 <template id=
"wx_util_b" template=
"wx">
26 <include>$(SRCDIR)
</include>
27 <define>$(DLLFLAG)
</define>
30 <template id=
"wx_util" template=
"wx_util_b">
31 <app-type>gui
</app-type>
32 <mac-res cond=
"FORMAT=='autoconf'">$(MACOSX_RESOURCES)
</mac-res>
33 <include>$(SRCDIR)/$(WXTOPDIR)samples
</include> <!-- for .rc files -->
34 <win32-res>$(WXTOPDIR)samples/sample.rc
</win32-res>
37 <template id=
"wx_util_console" template=
"wx_util_b">
38 <app-type>console
</app-type>
41 <template id=
"wx_sample" template=
"wx_util">
42 <if cond=
"FORMAT=='autoconf'">
44 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
45 <__command>$(LF)$(SAMPLES_RPATH_POSTLINK)
</__command>
48 <template id=
"wx_sample_console" template=
"wx_util_console">
49 <if cond=
"FORMAT=='autoconf'">
50 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
51 <__command>$(SAMPLES_RPATH_POSTLINK)
</__command>
56 <!-- =============================================================== -->
57 <!-- Support for samples data files: -->
58 <!-- =============================================================== -->
60 <define-rule name=
"wx-data" extends=
"copy-files">
62 <dependency-of>all
</dependency-of>
63 <dstdir>$(BUILDDIR)
</dstdir>
64 <srcdir>$(SRCDIR)
</srcdir>
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
74 <define-tag name="files">
76 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
82 <if cond=
"FORMAT=='autoconf'">
83 <include file=
"mac_bundles.bkl"/>