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.
9 <set var="WX_ENABLE_PRECOMP_HEADERS">1</set>
11 <include file="../build/bakefiles/common_samples.bkl"/>
13 <template id="wx_test">
14 <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
15 <ldflags>$(CPPUNIT_LIBS)</ldflags>
17 <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
18 <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
19 <sources>dummy.cpp</sources>
20 <precomp-headers-gen>dummy.cpp</precomp-headers-gen>
22 <precomp-headers-header>testprec.h</precomp-headers-header>
23 <precomp-headers>on</precomp-headers>
24 <precomp-headers-file>testprec_$(id)</precomp-headers-file>
28 <exe id="test" template="wx_sample_console,wx_test"
29 template_append="wx_append_base">
33 archive/archivetest.cpp
38 cmdline/cmdlinetest.cpp
41 datetime/datetimetest.cpp
43 events/evtlooptest.cpp
52 filename/filenametest.cpp
53 filesys/filesystest.cpp
54 fontmap/fontmaptest.cpp
55 formatconverter/formatconvertertest.cpp
56 fswatcher/fswatchertest.cpp
58 interactive/output.cpp
63 longlong/longlongtest.cpp
64 mbconv/convautotest.cpp
77 scopeguard/scopeguardtest.cpp
79 strings/numformatter.cpp
81 strings/stdstrings.cpp
89 streams/datastreamtest.cpp
90 streams/ffilestream.cpp
92 streams/filestream.cpp
96 streams/socketstream.cpp
100 streams/textstreamtest.cpp
101 streams/zlibstream.cpp
102 textfile/textfiletest.cpp
111 weakref/evtconnection.cpp
118 <wx-lib>base</wx-lib>
122 <exe id="test_gui" template="wx_sample,wx_test"
123 template_append="wx_append"
126 <!-- link against GUI libraries, but be a console app: -->
127 <app-type>console</app-type>
139 graphics/ellipsization.cpp
140 graphics/measuring.cpp
141 graphics/affinematrix.cpp
143 controls/bitmapcomboboxtest.cpp
144 controls/bitmaptogglebuttontest.cpp
145 controls/bookctrlbasetest.cpp
146 controls/buttontest.cpp
147 controls/checkboxtest.cpp
148 controls/checklistboxtest.cpp
149 controls/choicebooktest.cpp
150 controls/choicetest.cpp
151 controls/comboboxtest.cpp
152 controls/dataviewctrltest.cpp
153 controls/datepickerctrltest.cpp
154 controls/frametest.cpp
155 controls/gaugetest.cpp
156 controls/gridtest.cpp
157 controls/headerctrltest.cpp
158 controls/htmllboxtest.cpp
159 controls/hyperlinkctrltest.cpp
160 controls/itemcontainertest.cpp
162 controls/listbasetest.cpp
163 controls/listbooktest.cpp
164 controls/listboxtest.cpp
165 controls/listctrltest.cpp
166 controls/listviewtest.cpp
167 controls/markuptest.cpp
168 controls/notebooktest.cpp
169 controls/ownerdrawncomboboxtest.cpp
170 controls/pickerbasetest.cpp
171 controls/pickertest.cpp
172 controls/radioboxtest.cpp
173 controls/radiobuttontest.cpp
174 controls/rearrangelisttest.cpp
175 controls/richtextctrltest.cpp
176 controls/searchctrltest.cpp
177 controls/simplebooktest.cpp
178 controls/slidertest.cpp
179 controls/spinctrldbltest.cpp
180 controls/spinctrltest.cpp
181 controls/textctrltest.cpp
182 controls/textentrytest.cpp
183 controls/togglebuttontest.cpp
184 controls/toolbooktest.cpp
185 controls/treebooktest.cpp
186 controls/treectrltest.cpp
187 controls/treelistctrltest.cpp
188 controls/virtlistctrltest.cpp
190 controls/windowtest.cpp
191 controls/dialogtest.cpp
194 Duplicate this file here to test GUI event loops too.
196 events/evtlooptest.cpp
197 events/propagation.cpp
200 And duplicate this one too as wxExecute behaves differently in
201 console and GUI applications.
212 misc/selstoretest.cpp
216 This one is intentionally duplicated here (it is also part of
217 non-GUI test) as sockets behave differently in console and GUI
223 toplevel/toplevel.cpp
224 validators/valnum.cpp
225 window/clientsize.cpp
230 Can't use <wx-lib> here as it doesn't work with conditionally
231 defined variables, so fall back <sys-lib> as we must not link with
232 inexisting webview library to be able to run tests even if
233 wxWebView is not available.
235 <sys-lib>$(WXLIB_WEBVIEW)</sys-lib>
236 <wx-lib>richtext</wx-lib>
237 <wx-lib>media</wx-lib>
241 <wx-lib>html</wx-lib>
242 <wx-lib>core</wx-lib>
244 <wx-lib>base</wx-lib>
249 <files>testdata.fc</files>
251 <!-- test data for image/image.cpp test unit: -->
252 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
253 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
256 <wx-data id="data-images">
257 <srcdir>$(SRCDIR)/image</srcdir>
258 <dstdir>image</dstdir>
260 horse_grey.bmp horse_grey_flipped.bmp
261 horse_rle4.bmp horse_rle4_flipped.bmp
262 horse_rle8.bmp horse_rle8_flipped.bmp
264 horse_bicubic_50x50.png
265 horse_bicubic_100x100.png
266 horse_bicubic_150x150.png
267 horse_bicubic_300x300.png
269 horse_bilinear_50x50.png
270 horse_bilinear_100x100.png
271 horse_bilinear_150x150.png
272 horse_bilinear_300x300.png
274 horse_box_average_50x50.png
275 horse_box_average_100x100.png
276 horse_box_average_150x150.png
277 horse_box_average_300x300.png
281 <template id="catalog">
282 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
283 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
284 <files>internat.po internat.mo</files>
287 <wx-data id="fr" template="catalog"/>
290 <fragment format="autoconf">
291 # notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
292 # currently the value in the makefile would be ignored if we did, but
293 # warnings don't matter when we expect compilation to fail anyhow so we can
294 # use this variable to enable the compilation of code which is supposed to
296 failtest: failtest_combobox failtest_evthandler
299 @$(RM) test_gui_comboboxtest.o
300 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_COMBOBOX_ISEMPTY test_gui_comboboxtest.o 2>/dev/null; then \
301 echo "*** Compilation with TEST_INVALID_COMBOBOX_ISEMPTY unexpectedly succeeded.">&2; \
307 @$(RM) test_evthandler.o
308 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
309 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
310 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&2; \