6 <include file=
"common.bkl"/>
8 <!-- =============================================================== -->
9 <!-- Template for wxWidgets samples: -->
10 <!-- =============================================================== -->
12 <if cond=
"FORMAT=='autoconf'">
13 <set var=
"MACOSX_RESOURCES">
14 <if cond=
"TOOLKIT=='MAC'">
21 <if cond=
"SHARED=='1'">WXUSINGDLL
</if>
24 <template id=
"wx_util_b" template=
"wx">
25 <include>$(SRCDIR)
</include>
26 <define>$(DLLFLAG)
</define>
29 <template id=
"wx_util" template=
"wx_util_b">
30 <app-type>gui
</app-type>
31 <mac-res cond=
"FORMAT=='autoconf'">$(MACOSX_RESOURCES)
</mac-res>
32 <!-- resource files includes: -->
33 <include>$(SRCDIR)/$(WXTOPDIR)samples
</include>
34 <!-- this include is not added via <include> for autoconf, see
36 <if cond=
"FORMAT=='autoconf'">
37 <res-include>$(RCDEFDIR)
</res-include>
38 <res-include>$(TOP_SRCDIR)include
</res-include>
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>
54 <define>wxUSE_GUI=
0</define>
57 <template id=
"wx_sample" template=
"wx_util">
58 <if cond=
"FORMAT=='autoconf'">
60 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
61 <postlink-command>$(SAMPLES_RPATH_POSTLINK)
</postlink-command>
64 <template id=
"wx_sample_console" template=
"wx_util_console">
65 <if cond=
"FORMAT=='autoconf'">
66 <ldflags>$(SAMPLES_RPATH_FLAG)
</ldflags>
67 <postlink-command>$(SAMPLES_RPATH_POSTLINK)
</postlink-command>
72 <!-- =============================================================== -->
73 <!-- Support for samples data files: -->
74 <!-- =============================================================== -->
76 <if cond=
"FORMAT_SUPPORTS_ACTIONS=='1'">
77 <define-rule name=
"wx-data" extends=
"copy-files">
79 <dependency-of>all
</dependency-of>
80 <dstdir>$(BUILDDIR)
</dstdir>
81 <srcdir>$(SRCDIR)
</srcdir>
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
91 <define-tag name="files">
93 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
99 <if cond=
"FORMAT_SUPPORTS_ACTIONS=='0'">
100 <!-- empty stub for project-files formats which don't support <command> -->
101 <define-rule name=
"wx-data" extends=
"action">
102 <define-tag name=
"dstdir"/>
103 <define-tag name=
"srcdir"/>
104 <define-tag name=
"files"/>
109 <!-- =============================================================== -->
110 <!-- Misc platform specialities: -->
111 <!-- =============================================================== -->
113 <if cond=
"FORMAT=='autoconf'">
114 <include file=
"mac_bundles.bkl"/>
117 A hack to include precompiled OS/2 resource file in apps instead of
118 compiling it from .rc file (gcc on OS/2 doesn't ship with resource
121 <define-tag name=
"wx-os2-lib-resource" rules=
"exe">
122 <set var=
"os2_lib_res">
123 <if cond=
"PLATFORM_OS2=='1'">
124 $(TOP_SRCDIR)include/wx/os2/wx.res
127 <set var=
"__objects" append=
"1">$(os2_lib_res)
</set>