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
22 <if cond=
"SHARED=='1'">WXUSINGDLL
</if>
25 <template id=
"wx_sample_b" template=
"wx">
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>
30 <define>$(DLLFLAG)
</define>
33 <template id=
"wx_sample" template=
"wx_sample_b">
34 <app-type>gui
</app-type>
35 <mac-res cond=
"FORMAT=='autoconf'">$(MACOSX_RESOURCES)
</mac-res>
38 <template id=
"wx_sample_console" template=
"wx_sample_b">
39 <app-type>console
</app-type>
43 <!-- =============================================================== -->
44 <!-- Support for samples data files: -->
45 <!-- =============================================================== -->
47 <define-rule name=
"wx-data" extends=
"copy-files">
49 <dependency-of>all
</dependency-of>
50 <dstdir>$(BUILDDIR)
</dstdir>
51 <srcdir>$(SRCDIR)
</srcdir>
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
61 <define-tag name="files">
63 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))