]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common_samples_intree.bkl
Mention wxURLDataObject some more
[wxWidgets.git] / build / bakefiles / common_samples_intree.bkl
CommitLineData
1f9e3582
VS
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
5
6 <include file="common.bkl"/>
7
8 <!-- =============================================================== -->
9 <!-- Template for wxWidgets samples: -->
10 <!-- =============================================================== -->
11
12 <if cond="FORMAT=='autoconf'">
13 <set var="MACOSX_RESOURCES">
14 <if cond="TOOLKIT=='MAC'">
15 Carbon.r sample.r
16 </if>
17 </set>
18 </if>
19
20 <set var="DLLFLAG">
21 <if cond="SHARED=='1'">WXUSINGDLL</if>
22 </set>
23
24 <template id="wx_util_b" template="wx">
25 <include>$(SRCDIR)</include>
26 <define>$(DLLFLAG)</define>
27 </template>
28
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
35 common.bkl: -->
36 <if cond="FORMAT=='autoconf'">
37 <res-include>$(RCDEFDIR)</res-include>
38 <res-include>$(TOP_SRCDIR)include</res-include>
39 </if>
40
41 <win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
42 <if cond="FORMAT=='autoconf'">
43 <wx-os2-lib-resource/>
44 </if>
45
46 <!-- FIXME: temporary, until bakefile can reuse existing pch files -->
47 <if cond="FORMAT!='autoconf'">
48 <define>NOPCH</define>
49 </if>
50 </template>
51
52 <template id="wx_util_console" template="wx_util_b">
53 <app-type>console</app-type>
54 <define>wxUSE_GUI=0</define>
55 </template>
56
57 <template id="wx_sample" template="wx_util">
58 <if cond="FORMAT=='autoconf'">
59 <wx-mac-app-bundle/>
60 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
61 <postlink-command>$(SAMPLES_RPATH_POSTLINK)</postlink-command>
62 </if>
63 </template>
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>
68 </if>
69 </template>
70
71
72 <!-- =============================================================== -->
73 <!-- Support for samples data files: -->
74 <!-- =============================================================== -->
75
76 <define-rule name="wx-data" extends="copy-files">
77 <template>
78 <dependency-of>all</dependency-of>
79 <dstdir>$(BUILDDIR)</dstdir>
80 <srcdir>$(SRCDIR)</srcdir>
81 </template>
82
83 <!--
84 VS - FIXME:
85 Don't clean the files because it would wipe out sources files if
86 BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
87 but it would be better to delete the files during "make clean" if
88 BUILDDIR!=SRCDIR.
89
90 <define-tag name="files">
91 <clean-files>
92 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
93 </clean-files>
94 </define-tag>
95 -->
96 </define-rule>
97
98
99 <!-- =============================================================== -->
100 <!-- Misc platform specialities: -->
101 <!-- =============================================================== -->
102
103 <if cond="FORMAT=='autoconf'">
104 <include file="mac_bundles.bkl"/>
105
106 <!--
107 A hack to include precompiled OS/2 resource file in apps instead of
108 compiling it from .rc file (gcc on OS/2 doesn't ship with resource
109 compiler):
110 -->
111 <define-tag name="wx-os2-lib-resource" rules="exe">
112 <set var="os2_lib_res">
113 <if cond="PLATFORM_OS2=='1'">
114 $(TOP_SRCDIR)include/wx/os2/wx.res
115 </if>
116 </set>
117 <set var="__objects" append="1">$(os2_lib_res)</set>
118 </define-tag>
119 </if>
120
121</makefile>