]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common_samples.bkl
Supress 48 warnings in wx\msw\uxtheme.h: 'va_start' macro will not work without an...
[wxWidgets.git] / build / bakefiles / common_samples.bkl
CommitLineData
ddf98968 1<?xml version="1.0" ?>
52de10ef
VS
2<!-- $Id$ -->
3
ddf98968
VS
4<makefile>
5
ddf98968 6 <include file="common.bkl"/>
52de10ef 7 <set var="file_common_samples_included">1</set>
ddf98968
VS
8
9 <!-- =============================================================== -->
77ffb593 10 <!-- Template for wxWidgets samples: -->
ddf98968
VS
11 <!-- =============================================================== -->
12
13 <if cond="FORMAT=='autoconf'">
14 <set var="MACOSX_RESOURCES">
15 <if cond="TOOLKIT=='MAC'">
1ccb4e5b 16 Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r sample.r
ddf98968
VS
17 </if>
18 </set>
19 </if>
cdc0282e
VS
20
21 <set var="DLLFLAG">
22 <if cond="SHARED=='1'">WXUSINGDLL</if>
23 </set>
ddf98968 24
a69544bf 25 <template id="wx_util_b" template="wx">
ddf98968 26 <include>$(SRCDIR)</include>
cdc0282e 27 <define>$(DLLFLAG)</define>
4574209d
VS
28 </template>
29
a69544bf 30 <template id="wx_util" template="wx_util_b">
cdc0282e 31 <app-type>gui</app-type>
ddf98968 32 <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
b6dc1b90
VS
33 <!-- resource files includes: -->
34 <include>$(SRCDIR)/$(WXTOPDIR)samples</include>
35 <!-- this include is not added via <include> for autoconf, see
36 common.bkl: -->
37 <res-include cond="FORMAT=='autoconf'">
38 $(TOP_SRCDIR)include
39 </res-include>
40
e54bb212 41 <win32-res>$(WXTOPDIR)samples/sample.rc</win32-res>
9e983cb2
VS
42 <if cond="FORMAT=='autoconf'">
43 <wx-os2-lib-resource/>
44 </if>
649f7053
VS
45
46 <!-- FIXME: temporary, until bakefile can reuse existing pch files -->
47 <if cond="FORMAT!='autoconf'">
48 <define>NOPCH</define>
49 </if>
ddf98968 50 </template>
4574209d 51
a69544bf 52 <template id="wx_util_console" template="wx_util_b">
4574209d
VS
53 <app-type>console</app-type>
54 </template>
a69544bf
VS
55
56 <template id="wx_sample" template="wx_util">
ef0add05 57 <if cond="FORMAT=='autoconf'">
425c0d76 58 <wx-mac-app-bundle/>
ef0add05
VS
59 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
60 <__command>$(LF)$(SAMPLES_RPATH_POSTLINK)</__command>
61 </if>
a69544bf
VS
62 </template>
63 <template id="wx_sample_console" template="wx_util_console">
ef0add05
VS
64 <if cond="FORMAT=='autoconf'">
65 <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
bc3435bb 66 <__command>$(LF)$(SAMPLES_RPATH_POSTLINK)</__command>
ef0add05 67 </if>
a69544bf 68 </template>
ddf98968 69
670ec357
VS
70 <template id="wx_test_console" template="wx_sample_console">
71 <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
72 <ldflags>$(CPPUNIT_LIBS)</ldflags>
73 </template>
74
ddf98968
VS
75
76 <!-- =============================================================== -->
77 <!-- Support for samples data files: -->
78 <!-- =============================================================== -->
79
80 <define-rule name="wx-data" extends="copy-files">
81 <template>
82 <dependency-of>all</dependency-of>
83 <dstdir>$(BUILDDIR)</dstdir>
84 <srcdir>$(SRCDIR)</srcdir>
85 </template>
52de10ef
VS
86
87 <!--
88 VS - FIXME:
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
92 BUILDDIR!=SRCDIR.
93
ddf98968
VS
94 <define-tag name="files">
95 <clean-files>
96 $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
97 </clean-files>
98 </define-tag>
52de10ef 99 -->
ddf98968 100 </define-rule>
9e983cb2
VS
101
102
103 <!-- =============================================================== -->
104 <!-- Misc platform specialities: -->
105 <!-- =============================================================== -->
ddf98968 106
425c0d76
VS
107 <if cond="FORMAT=='autoconf'">
108 <include file="mac_bundles.bkl"/>
9e983cb2
VS
109
110 <!--
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
113 compiler):
114 -->
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
119 </if>
120 </set>
121 <set var="__objects" append="1">$(os2_lib_res)</set>
122 </define-tag>
425c0d76 123 </if>
9e983cb2 124
425c0d76 125
ddf98968 126</makefile>