]> git.saurik.com Git - wxWidgets.git/blob - tests/test.bkl
Rebake everything using bakefile 0.2.7.
[wxWidgets.git] / tests / test.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5 <!--
6 The use of PCH is disabled for samples by default but we do want to use
7 them for the test as this dramatically speeds up its compilation.
8 -->
9 <set var="WX_ENABLE_PRECOMP_HEADERS">1</set>
10
11 <include file="../build/bakefiles/common_samples.bkl"/>
12
13 <template id="wx_test">
14 <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
15 <ldflags>$(CPPUNIT_LIBS)</ldflags>
16
17 <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
18 <if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
19 <sources>dummy.cpp</sources>
20 <precomp-headers-gen>dummy.cpp</precomp-headers-gen>
21 </if>
22 <precomp-headers-header>testprec.h</precomp-headers-header>
23 <precomp-headers>on</precomp-headers>
24 <precomp-headers-file>testprec_$(id)</precomp-headers-file>
25 </if>
26 </template>
27
28 <exe id="test" template="wx_sample_console,wx_test"
29 template_append="wx_append_base">
30 <sources>
31 test.cpp
32 any/anytest.cpp
33 archive/archivetest.cpp
34 archive/ziptest.cpp
35 archive/tartest.cpp
36 arrays/arrays.cpp
37 base64/base64.cpp
38 cmdline/cmdlinetest.cpp
39 config/fileconf.cpp
40 datetime/datetimetest.cpp
41 events/evthandler.cpp
42 events/evtsource.cpp
43 events/timertest.cpp
44 exec/exec.cpp
45 file/filetest.cpp
46 filekind/filekind.cpp
47 filename/filenametest.cpp
48 filesys/filesystest.cpp
49 fontmap/fontmaptest.cpp
50 formatconverter/formatconvertertest.cpp
51 fswatcher/fswatchertest.cpp
52 hashes/hashes.cpp
53 intl/intltest.cpp
54 lists/lists.cpp
55 log/logtest.cpp
56 longlong/longlongtest.cpp
57 mbconv/convautotest.cpp
58 mbconv/mbconvtest.cpp
59 misc/misctests.cpp
60 net/ipc.cpp
61 net/socket.cpp
62 regex/regextest.cpp
63 regex/wxregextest.cpp
64 scopeguard/scopeguardtest.cpp
65 strings/iostream.cpp
66 strings/strings.cpp
67 strings/stdstrings.cpp
68 strings/tokenizer.cpp
69 strings/unichar.cpp
70 strings/unicode.cpp
71 strings/vararg.cpp
72 strings/crt.cpp
73 strings/vsnprintf.cpp
74 streams/bstream.cpp
75 streams/datastreamtest.cpp
76 streams/ffilestream.cpp
77 streams/fileback.cpp
78 streams/filestream.cpp
79 streams/iostreams.cpp
80 streams/largefile.cpp
81 streams/memstream.cpp
82 streams/socketstream.cpp
83 streams/sstream.cpp
84 streams/stdstream.cpp
85 streams/tempfile.cpp
86 streams/textstreamtest.cpp
87 streams/zlibstream.cpp
88 textfile/textfiletest.cpp
89 thread/atomic.cpp
90 thread/queue.cpp
91 thread/tls.cpp
92 uris/uris.cpp
93 uris/url.cpp
94 vectors/vectors.cpp
95 weakref/evtconnection.cpp
96 weakref/weakref.cpp
97 xlocale/xlocale.cpp
98 xml/xmltest.cpp
99 </sources>
100 <wx-lib>net</wx-lib>
101 <wx-lib>xml</wx-lib>
102 <wx-lib>base</wx-lib>
103 </exe>
104
105
106 <exe id="test_gui" template="wx_sample,wx_test"
107 template_append="wx_append"
108 cond="USE_GUI=='1'">
109
110 <!-- link against GUI libraries, but be a console app: -->
111 <app-type>console</app-type>
112
113 <sources>
114 test.cpp
115 geometry/rect.cpp
116 geometry/size.cpp
117 geometry/point.cpp
118 graphics/colour.cpp
119 graphics/measuring.cpp
120 config/config.cpp
121 controls/comboboxtest.cpp
122 controls/headerctrltest.cpp
123 controls/listctrltest.cpp
124 controls/textctrltest.cpp
125 controls/textentrytest.cpp
126 controls/treectrltest.cpp
127 events/clone.cpp
128 events/propagation.cpp
129 font/fonttest.cpp
130 image/image.cpp
131 image/rawbmp.cpp
132 html/htmlwindow.cpp
133 misc/guifuncs.cpp
134 misc/selstoretest.cpp
135 misc/garbage.cpp
136 misc/settings.cpp
137 <!--
138 This one is intentionally duplicated here (it is also part of
139 non-GUI test) as sockets behave differently in console and GUI
140 applications.
141 -->
142 net/socket.cpp
143 window/clientsize.cpp
144 window/setsize.cpp
145 </sources>
146 <wx-lib>media</wx-lib>
147 <wx-lib>xrc</wx-lib>
148 <wx-lib>xml</wx-lib>
149 <wx-lib>adv</wx-lib>
150 <wx-lib>html</wx-lib>
151 <wx-lib>core</wx-lib>
152 <wx-lib>net</wx-lib>
153 <wx-lib>base</wx-lib>
154 </exe>
155
156
157 <wx-data id="data">
158 <files>testdata.fc</files>
159
160 <!-- test data for image/image.cpp test unit: -->
161 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
162 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
163 </wx-data>
164
165 <template id="catalog">
166 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
167 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
168 <files>internat.po internat.mo</files>
169 </template>
170
171 <wx-data id="fr" template="catalog"/>
172
173
174 <fragment format="autoconf">
175 # notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
176 # currently the value in the makefile would be ignored if we did, but
177 # warnings don't matter when we expect compilation to fail anyhow so we can
178 # use this variable to enable the compilation of code which is supposed to
179 # fail
180 failtest:
181 @$(RM) test_evthandler.o
182 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
183 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
184 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&amp;2; \
185 exit 1; \
186 fi; \
187 done; \
188 exit 0
189
190 .PHONY: failtest
191 </fragment>
192
193 </makefile>