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