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