even GUI test should be console app
[wxWidgets.git] / tests / test.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
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             arrays/arrays.cpp
29             datetime/datetimetest.cpp
30             fileconf/fileconftest.cpp
31             filename/filenametest.cpp
32             filesys/filesystest.cpp
33             fontmap/fontmaptest.cpp
34             formatconverter/formatconvertertest.cpp
35             hashes/hashes.cpp
36             lists/lists.cpp
37             longlong/longlongtest.cpp
38             mbconv/mbconvtest.cpp
39             regex/regextest.cpp
40             regex/wxregextest.cpp
41             strings/strings.cpp
42             strings/stdstrings.cpp
43             strings/unicode.cpp
44             strings/crt.cpp
45             streams/bstream.cpp
46             streams/datastreamtest.cpp
47             streams/ffilestream.cpp
48             streams/filestream.cpp
49             streams/memstream.cpp
50             streams/sstream.cpp
51             streams/textstreamtest.cpp
52             streams/zlibstream.cpp
53             uris/uris.cpp
54         </sources>
55         <wx-lib>net</wx-lib>
56         <wx-lib>base</wx-lib>
57     </exe>
58     
59
60     <exe id="test_gui" template="wx_sample,wx_test"
61                        template_append="wx_append"
62          cond="USE_GUI=='1'">
63
64         <!-- link against GUI libraries, but be a console app: -->
65         <app-type>console</app-type>
66         
67         <sources>
68             test.cpp
69             geometry/rect.cpp
70         </sources>
71         <wx-lib>core</wx-lib>
72         <wx-lib>base</wx-lib>
73     </exe>
74
75
76     <wx-data id="data">
77         <files>testdata.fc</files>
78     </wx-data>
79
80 </makefile>