4 <include file="common.bkl"/>
7 <!-- =============================================================== -->
8 <!-- Template for wxWindows samples: -->
9 <!-- =============================================================== -->
11 <if cond="FORMAT=='autoconf'">
12 <set var="MACOSX_RESOURCES">
13 <if cond="TOOLKIT=='MAC'">
14 Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r
20 <if cond="SHARED=='1'">WXUSINGDLL</if>
23 <template id="wx_sample_b" template="wx">
24 <include>$(SRCDIR)</include>
25 <!-- Always link against the wxWin library in monolithic build: -->
26 <sys-lib>$(WXLIB_MONO)</sys-lib>
27 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
28 <define>$(DLLFLAG)</define>
31 <template id="wx_sample" template="wx_sample_b">
32 <app-type>gui</app-type>
33 <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
36 <template id="wx_sample_console" template="wx_sample_b">
37 <app-type>console</app-type>
41 <!-- =============================================================== -->
42 <!-- Support for samples data files: -->
43 <!-- =============================================================== -->
45 <define-rule name="wx-data" extends="copy-files">
47 <dependency-of>all</dependency-of>
48 <dstdir>$(BUILDDIR)</dstdir>
49 <srcdir>$(SRCDIR)</srcdir>
51 <define-tag name="files">
53 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))