]>
Commit | Line | Data |
---|---|---|
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 | archive/archivetest.cpp | |
33 | archive/ziptest.cpp | |
34 | archive/tartest.cpp | |
35 | arrays/arrays.cpp | |
36 | base64/base64.cpp | |
37 | cmdline/cmdlinetest.cpp | |
38 | config/fileconf.cpp | |
39 | datetime/datetimetest.cpp | |
40 | events/evthandler.cpp | |
41 | events/timertest.cpp | |
42 | filekind/filekind.cpp | |
43 | filename/filenametest.cpp | |
44 | filesys/filesystest.cpp | |
45 | fontmap/fontmaptest.cpp | |
46 | formatconverter/formatconvertertest.cpp | |
47 | hashes/hashes.cpp | |
48 | intl/intltest.cpp | |
49 | lists/lists.cpp | |
50 | longlong/longlongtest.cpp | |
51 | mbconv/convautotest.cpp | |
52 | mbconv/mbconvtest.cpp | |
53 | misc/misctests.cpp | |
54 | net/ipc.cpp | |
55 | net/socket.cpp | |
56 | regex/regextest.cpp | |
57 | regex/wxregextest.cpp | |
58 | scopeguard/scopeguardtest.cpp | |
59 | strings/iostream.cpp | |
60 | strings/strings.cpp | |
61 | strings/stdstrings.cpp | |
62 | strings/tokenizer.cpp | |
63 | strings/unichar.cpp | |
64 | strings/unicode.cpp | |
65 | strings/vararg.cpp | |
66 | strings/crt.cpp | |
67 | strings/vsnprintf.cpp | |
68 | streams/bstream.cpp | |
69 | streams/datastreamtest.cpp | |
70 | streams/ffilestream.cpp | |
71 | streams/fileback.cpp | |
72 | streams/filestream.cpp | |
73 | streams/iostreams.cpp | |
74 | streams/largefile.cpp | |
75 | streams/memstream.cpp | |
76 | streams/socketstream.cpp | |
77 | streams/sstream.cpp | |
78 | streams/tempfile.cpp | |
79 | streams/textstreamtest.cpp | |
80 | streams/zlibstream.cpp | |
81 | textfile/textfiletest.cpp | |
82 | thread/atomic.cpp | |
83 | thread/queue.cpp | |
84 | thread/tls.cpp | |
85 | uris/uris.cpp | |
86 | vectors/vectors.cpp | |
87 | weakref/evtconnection.cpp | |
88 | weakref/weakref.cpp | |
89 | xlocale/xlocale.cpp | |
90 | xml/xmltest.cpp | |
91 | </sources> | |
92 | <wx-lib>net</wx-lib> | |
93 | <wx-lib>base</wx-lib> | |
94 | <wx-lib>xml</wx-lib> | |
95 | </exe> | |
96 | ||
97 | ||
98 | <exe id="test_gui" template="wx_sample,wx_test" | |
99 | template_append="wx_append" | |
100 | cond="USE_GUI=='1'"> | |
101 | ||
102 | <!-- link against GUI libraries, but be a console app: --> | |
103 | <app-type>console</app-type> | |
104 | ||
105 | <sources> | |
106 | test.cpp | |
107 | geometry/rect.cpp | |
108 | geometry/size.cpp | |
109 | geometry/point.cpp | |
110 | config/config.cpp | |
111 | controls/comboboxtest.cpp | |
112 | controls/headerctrltest.cpp | |
113 | controls/listctrltest.cpp | |
114 | controls/textctrltest.cpp | |
115 | controls/textentrytest.cpp | |
116 | controls/treectrltest.cpp | |
117 | events/propagation.cpp | |
118 | image/rawbmp.cpp | |
119 | html/htmlwindow.cpp | |
120 | misc/guifuncs.cpp | |
121 | misc/selstoretest.cpp | |
122 | misc/garbage.cpp | |
123 | <!-- | |
124 | This one is intentionally duplicated here (it is also part of | |
125 | non-GUI test) as sockets behave differently in console and GUI | |
126 | applications. | |
127 | --> | |
128 | net/socket.cpp | |
129 | window/clientsize.cpp | |
130 | window/setsize.cpp | |
131 | </sources> | |
132 | <wx-lib>media</wx-lib> | |
133 | <wx-lib>xrc</wx-lib> | |
134 | <wx-lib>xml</wx-lib> | |
135 | <wx-lib>adv</wx-lib> | |
136 | <wx-lib>html</wx-lib> | |
137 | <wx-lib>core</wx-lib> | |
138 | <wx-lib>net</wx-lib> | |
139 | <wx-lib>base</wx-lib> | |
140 | </exe> | |
141 | ||
142 | ||
143 | <wx-data id="data"> | |
144 | <files>testdata.fc</files> | |
145 | </wx-data> | |
146 | ||
147 | <template id="catalog"> | |
148 | <dstdir>$(BUILDDIR)/intl/$(id)</dstdir> | |
149 | <srcdir>$(SRCDIR)/intl/$(id)</srcdir> | |
150 | <files>internat.po internat.mo</files> | |
151 | </template> | |
152 | ||
153 | <wx-data id="fr" template="catalog"/> | |
154 | ||
155 | ||
156 | <!-- BENCHMARKS --> | |
157 | ||
158 | <exe id="printfbench" template="wx_sample_console,wx_test" | |
159 | template_append="wx_append_base"> | |
160 | <sources> | |
161 | benchmarks/printfbench.cpp | |
162 | </sources> | |
163 | <wx-lib>base</wx-lib> | |
164 | </exe> | |
165 | ||
166 | ||
167 | </makefile> |