]> git.saurik.com Git - wxWidgets.git/blob - tests/test.bkl
Add wxConfig::Read(float *) overload.
[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/stopwatch.cpp
44 events/timertest.cpp
45 exec/exec.cpp
46 file/filetest.cpp
47 filekind/filekind.cpp
48 filename/filenametest.cpp
49 filesys/filesystest.cpp
50 fontmap/fontmaptest.cpp
51 formatconverter/formatconvertertest.cpp
52 fswatcher/fswatchertest.cpp
53 hashes/hashes.cpp
54 intl/intltest.cpp
55 lists/lists.cpp
56 log/logtest.cpp
57 longlong/longlongtest.cpp
58 mbconv/convautotest.cpp
59 mbconv/mbconvtest.cpp
60 misc/misctests.cpp
61 misc/typeinfotest.cpp
62 net/ipc.cpp
63 net/socket.cpp
64 regex/regextest.cpp
65 regex/wxregextest.cpp
66 scopeguard/scopeguardtest.cpp
67 strings/iostream.cpp
68 strings/strings.cpp
69 strings/stdstrings.cpp
70 strings/tokenizer.cpp
71 strings/unichar.cpp
72 strings/unicode.cpp
73 strings/vararg.cpp
74 strings/crt.cpp
75 strings/vsnprintf.cpp
76 streams/bstream.cpp
77 streams/datastreamtest.cpp
78 streams/ffilestream.cpp
79 streams/fileback.cpp
80 streams/filestream.cpp
81 streams/iostreams.cpp
82 streams/largefile.cpp
83 streams/memstream.cpp
84 streams/socketstream.cpp
85 streams/sstream.cpp
86 streams/stdstream.cpp
87 streams/tempfile.cpp
88 streams/textstreamtest.cpp
89 streams/zlibstream.cpp
90 textfile/textfiletest.cpp
91 thread/atomic.cpp
92 thread/misc.cpp
93 thread/queue.cpp
94 thread/tls.cpp
95 uris/ftp.cpp
96 uris/uris.cpp
97 uris/url.cpp
98 vectors/vectors.cpp
99 weakref/evtconnection.cpp
100 weakref/weakref.cpp
101 xlocale/xlocale.cpp
102 xml/xmltest.cpp
103 </sources>
104 <wx-lib>net</wx-lib>
105 <wx-lib>xml</wx-lib>
106 <wx-lib>base</wx-lib>
107 </exe>
108
109
110 <exe id="test_gui" template="wx_sample,wx_test"
111 template_append="wx_append"
112 cond="USE_GUI=='1'">
113
114 <!-- link against GUI libraries, but be a console app: -->
115 <app-type>console</app-type>
116
117 <sources>
118 test.cpp
119 geometry/rect.cpp
120 geometry/size.cpp
121 geometry/point.cpp
122 graphics/bitmap.cpp
123 graphics/colour.cpp
124 graphics/ellipsization.cpp
125 graphics/measuring.cpp
126 config/config.cpp
127 controls/comboboxtest.cpp
128 controls/headerctrltest.cpp
129 controls/label.cpp
130 controls/listctrltest.cpp
131 controls/textctrltest.cpp
132 controls/textentrytest.cpp
133 controls/treectrltest.cpp
134 events/clone.cpp
135 events/propagation.cpp
136 font/fonttest.cpp
137 image/image.cpp
138 image/rawbmp.cpp
139 html/htmlwindow.cpp
140 misc/guifuncs.cpp
141 misc/selstoretest.cpp
142 misc/garbage.cpp
143 misc/settings.cpp
144 <!--
145 This one is intentionally duplicated here (it is also part of
146 non-GUI test) as sockets behave differently in console and GUI
147 applications.
148 -->
149 net/socket.cpp
150 sizers/boxsizer.cpp
151 window/clientsize.cpp
152 window/setsize.cpp
153 </sources>
154 <wx-lib>media</wx-lib>
155 <wx-lib>xrc</wx-lib>
156 <wx-lib>xml</wx-lib>
157 <wx-lib>adv</wx-lib>
158 <wx-lib>html</wx-lib>
159 <wx-lib>core</wx-lib>
160 <wx-lib>net</wx-lib>
161 <wx-lib>base</wx-lib>
162 </exe>
163
164
165 <wx-data id="data">
166 <files>testdata.fc</files>
167
168 <!-- test data for image/image.cpp test unit: -->
169 <files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
170 horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
171 </wx-data>
172
173 <template id="catalog">
174 <dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
175 <srcdir>$(SRCDIR)/intl/$(id)</srcdir>
176 <files>internat.po internat.mo</files>
177 </template>
178
179 <wx-data id="fr" template="catalog"/>
180
181
182 <fragment format="autoconf">
183 # notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
184 # currently the value in the makefile would be ignored if we did, but
185 # warnings don't matter when we expect compilation to fail anyhow so we can
186 # use this variable to enable the compilation of code which is supposed to
187 # fail
188 failtest:
189 @$(RM) test_evthandler.o
190 @for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
191 if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
192 echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&amp;2; \
193 exit 1; \
194 fi; \
195 done; \
196 exit 0
197
198 .PHONY: failtest
199 </fragment>
200
201 </makefile>