6 <include file=
"common.bkl"/>
7 <set var=
"file_common_samples_included">1</set>
9 <!-- =============================================================== -->
10 <!-- Template for wxWidgets 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 <!-- resource files includes: -->
34 <include>$(SRCDIR)/$(WXTOPDIR)samples
</include>
35 <!-- this include is not added via <include> for autoconf, see
37 <res-include cond=
"FORMAT=='autoconf'">
41 <win32-res>$(WXTOPDIR)samples/sample.rc
</win32-res>
42 <if cond=
"FORMAT=='autoconf'">
43 <wx-os2-lib-resource/>
46 <!-- FIXME: temporary, until bakefile can reuse existing pch files -->
47 <if cond=
"FORMAT!='autoconf'">
48 <define>NOPCH
</define>
52 <template id=
"wx_util_console" template=
"wx_util_b">
53 <app-type>console
</app-type>
56 <template id=
"wx_sample" template=
"wx_util">
57 <if cond=
"FORMAT=='autoconf'">
59 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
60 <__command>$(LF)$(SAMPLES_RPATH_POSTLINK)
</__command>
63 <template id=
"wx_sample_console" template=
"wx_util_console">
64 <if cond=
"FORMAT=='autoconf'">
65 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
66 <__command>$(SAMPLES_RPATH_POSTLINK)
</__command>
70 <template id=
"wx_test_console" template=
"wx_sample_console">
71 <cppflags>$(CPPUNIT_CFLAGS)
</cppflags>
72 <ldflags>$(CPPUNIT_LIBS)
</ldflags>
76 <!-- =============================================================== -->
77 <!-- Support for samples data files: -->
78 <!-- =============================================================== -->
80 <define-rule name=
"wx-data" extends=
"copy-files">
82 <dependency-of>all
</dependency-of>
83 <dstdir>$(BUILDDIR)
</dstdir>
84 <srcdir>$(SRCDIR)
</srcdir>
89 Don't clean the files because it would wipe out sources files if
90 BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
91 but it would be better to delete the files during "make clean" if
94 <define-tag name="files">
96 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
103 <!-- =============================================================== -->
104 <!-- Misc platform specialities: -->
105 <!-- =============================================================== -->
107 <if cond=
"FORMAT=='autoconf'">
108 <include file=
"mac_bundles.bkl"/>
111 A hack to include precompiled OS/2 resource file in apps instead of
112 compiling it from .rc file (gcc on OS/2 doesn't ship with resource
115 <define-tag name=
"wx-os2-lib-resource" rules=
"exe">
116 <set var=
"os2_lib_res">
117 <if cond=
"PLATFORM_OS2=='1'">
118 $(TOP_SRCDIR)include/wx/os2/wx.res
121 <set var=
"__objects" append=
"1">$(os2_lib_res)
</set>