1. more borland work
[wxWidgets.git] / build / bakefiles / common_samples.bkl
1 <?xml version="1.0" ?>
2 <makefile>
3     
4     <include file="common.bkl"/>
5
6     
7     <!-- =============================================================== -->
8     <!--                    Template for wxWindows samples:              -->
9     <!-- =============================================================== -->
10
11     <if cond="FORMAT=='autoconf'">
12         <set var="MACOSX_RESOURCES">
13             <if cond="TOOLKIT=='MAC'">
14                 Carbon.r ../../lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r
15             </if>
16         </set>
17     </if>
18
19     <set var="DLLFLAG">
20         <if cond="SHARED=='1'">WXUSINGDLL</if>
21     </set>
22     
23     <template id="wx_sample" 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>
29         <app-type>gui</app-type>
30
31         <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
32     </template>
33
34     
35     <!-- =============================================================== -->
36     <!--                    Support for samples data files:              -->
37     <!-- =============================================================== -->
38
39     <define-rule name="wx-data" extends="copy-files">
40         <template>
41             <dependency-of>all</dependency-of>
42             <dstdir>$(BUILDDIR)</dstdir>
43             <srcdir>$(SRCDIR)</srcdir>
44         </template>
45         <define-tag name="files">
46             <clean-files>
47                 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
48             </clean-files>
49         </define-tag>
50     </define-rule>
51
52 </makefile>