1<?xml version="1.0" ?>
2<!-- $Id: test.bkl 42512 2006-10-27 10:11:46Z MW $ -->
3
4<makefile>
5
6    <include file="../build/bakefiles/common_samples.bkl"/>
7
8    <template id="wx_test">
9        <cppflags>$(CPPUNIT_CFLAGS)</cppflags>
10        <ldflags>$(CPPUNIT_LIBS)</ldflags>
11
12        <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
13            <if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
14                <sources>dummy.cpp</sources>
15                <precomp-headers-gen>dummy.cpp</precomp-headers-gen>
16            </if>
17            <precomp-headers-header>testprec.h</precomp-headers-header>
18            <precomp-headers>on</precomp-headers>
19            <precomp-headers-file>testprec_$(id)</precomp-headers-file>
20        </if>
21    </template>
22
23    <exe id="test" template="wx_sample_console,wx_test"
24                   template_append="wx_append_base">
25        <sources>
26            test.cpp
27            archive/archivetest.cpp
28            archive/ziptest.cpp
29            archive/tartest.cpp
30            arrays/arrays.cpp
31            datetime/datetimetest.cpp
32            fileconf/fileconftest.cpp
33            filekind/filekind.cpp
34            filename/filenametest.cpp
35            filesys/filesystest.cpp
36            fontmap/fontmaptest.cpp
37            formatconverter/formatconvertertest.cpp
38            hashes/hashes.cpp
39            lists/lists.cpp
40            longlong/longlongtest.cpp
41            mbconv/convautotest.cpp
42            mbconv/mbconvtest.cpp
43            regex/regextest.cpp
44            regex/wxregextest.cpp
45            scopeguard/scopeguardtest.cpp
46            strings/strings.cpp
47            strings/stdstrings.cpp
48            strings/tokenizer.cpp
49            strings/unicode.cpp
50            strings/crt.cpp
51            strings/vsnprintf.cpp
52            streams/bstream.cpp
53            streams/datastreamtest.cpp
54            streams/ffilestream.cpp
55            streams/fileback.cpp
56            streams/filestream.cpp
57            streams/largefile.cpp
58            streams/memstream.cpp
59            streams/sstream.cpp
60            streams/tempfile.cpp
61            streams/textstreamtest.cpp
62            streams/zlibstream.cpp
63            textfile/textfiletest.cpp
64            uris/uris.cpp
65        </sources>
66        <wx-lib>net</wx-lib>
67        <wx-lib>base</wx-lib>
68    </exe>
69
70
71    <exe id="test_gui" template="wx_sample,wx_test"
72                       template_append="wx_append"
73         cond="USE_GUI=='1'">
74
75        <!-- link against GUI libraries, but be a console app: -->
76        <app-type>console</app-type>
77
78        <sources>
79            test.cpp
80            geometry/rect.cpp
81            geometry/size.cpp
82            geometry/point.cpp
83        </sources>
84        <wx-lib>core</wx-lib>
85        <wx-lib>base</wx-lib>
86    </exe>
87
88
89    <wx-data id="data">
90        <files>testdata.fc</files>
91    </wx-data>
92
93
94
95    <!-- BENCHMARKS -->
96
97    <exe id="printfbench" template="wx_sample_console,wx_test"
98                          template_append="wx_append_base">
99        <sources>
100            benchmarks/printfbench.cpp
101        </sources>
102        <wx-lib>base</wx-lib>
103    </exe>
104
105
106</makefile>
107