2004-03-03 17:56:16 -05:00
|
|
|
<?xml version="1.0" ?>
|
2004-03-06 06:23:49 -05:00
|
|
|
<!-- $Id$ -->
|
2004-03-03 17:56:16 -05:00
|
|
|
|
|
|
|
<makefile>
|
2008-09-19 05:03:01 -04:00
|
|
|
<!--
|
|
|
|
The use of PCH is disabled for samples by default but we do want to use
|
|
|
|
them for the test as this dramatically speeds up its compilation.
|
|
|
|
-->
|
|
|
|
<set var="WX_ENABLE_PRECOMP_HEADERS">1</set>
|
2004-03-03 17:56:16 -05:00
|
|
|
|
|
|
|
<include file="../build/bakefiles/common_samples.bkl"/>
|
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<template id="wx_test">
|
|
|
|
<cppflags>$(CPPUNIT_CFLAGS)</cppflags>
|
|
|
|
<ldflags>$(CPPUNIT_LIBS)</ldflags>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2004-11-22 00:00:19 -05:00
|
|
|
<if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
|
|
|
|
<if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
|
|
|
|
<sources>dummy.cpp</sources>
|
|
|
|
<precomp-headers-gen>dummy.cpp</precomp-headers-gen>
|
|
|
|
</if>
|
|
|
|
<precomp-headers-header>testprec.h</precomp-headers-header>
|
|
|
|
<precomp-headers>on</precomp-headers>
|
|
|
|
<precomp-headers-file>testprec_$(id)</precomp-headers-file>
|
|
|
|
</if>
|
2004-12-12 07:35:45 -05:00
|
|
|
</template>
|
2004-11-22 00:00:19 -05:00
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<exe id="test" template="wx_sample_console,wx_test"
|
|
|
|
template_append="wx_append_base">
|
2004-03-03 17:56:16 -05:00
|
|
|
<sources>
|
|
|
|
test.cpp
|
2009-09-19 04:51:11 -04:00
|
|
|
any/anytest.cpp
|
2004-11-10 18:58:38 -05:00
|
|
|
archive/archivetest.cpp
|
2005-02-10 09:06:08 -05:00
|
|
|
archive/ziptest.cpp
|
2006-10-27 06:11:46 -04:00
|
|
|
archive/tartest.cpp
|
2004-10-27 18:47:26 -04:00
|
|
|
arrays/arrays.cpp
|
2007-07-09 21:51:43 -04:00
|
|
|
base64/base64.cpp
|
2008-04-12 13:03:09 -04:00
|
|
|
cmdline/cmdlinetest.cpp
|
2007-07-21 19:51:19 -04:00
|
|
|
config/fileconf.cpp
|
2010-06-02 10:12:07 -04:00
|
|
|
config/regconf.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
datetime/datetimetest.cpp
|
2009-02-01 18:20:27 -05:00
|
|
|
events/evthandler.cpp
|
2009-10-22 07:35:43 -04:00
|
|
|
events/evtsource.cpp
|
2010-05-16 11:44:17 -04:00
|
|
|
events/stopwatch.cpp
|
2008-10-27 18:04:42 -04:00
|
|
|
events/timertest.cpp
|
2009-03-23 12:23:44 -04:00
|
|
|
exec/exec.cpp
|
2010-06-19 08:32:57 -04:00
|
|
|
file/dir.cpp
|
2010-06-13 10:30:55 -04:00
|
|
|
file/filefn.cpp
|
2009-09-12 18:40:42 -04:00
|
|
|
file/filetest.cpp
|
2005-02-12 16:53:51 -05:00
|
|
|
filekind/filekind.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
filename/filenametest.cpp
|
|
|
|
filesys/filesystest.cpp
|
|
|
|
fontmap/fontmaptest.cpp
|
|
|
|
formatconverter/formatconvertertest.cpp
|
2009-10-22 07:35:43 -04:00
|
|
|
fswatcher/fswatchertest.cpp
|
2004-05-22 13:52:44 -04:00
|
|
|
hashes/hashes.cpp
|
2010-06-21 17:03:47 -04:00
|
|
|
interactive/output.cpp
|
|
|
|
interactive/input.cpp
|
2007-03-26 17:12:13 -04:00
|
|
|
intl/intltest.cpp
|
2004-12-08 17:39:22 -05:00
|
|
|
lists/lists.cpp
|
2009-07-07 08:19:34 -04:00
|
|
|
log/logtest.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
longlong/longlongtest.cpp
|
2006-04-05 10:38:42 -04:00
|
|
|
mbconv/convautotest.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
mbconv/mbconvtest.cpp
|
2010-06-13 10:30:55 -04:00
|
|
|
misc/dynamiclib.cpp
|
|
|
|
misc/environ.cpp
|
2010-06-14 11:12:37 -04:00
|
|
|
misc/metatest.cpp
|
2008-08-02 18:49:01 -04:00
|
|
|
misc/misctests.cpp
|
2010-06-06 10:21:27 -04:00
|
|
|
misc/module.cpp
|
|
|
|
misc/pathlist.cpp
|
2009-11-19 14:27:24 -05:00
|
|
|
misc/typeinfotest.cpp
|
2008-07-13 22:19:34 -04:00
|
|
|
net/ipc.cpp
|
2008-10-12 16:45:29 -04:00
|
|
|
net/socket.cpp
|
2004-10-31 00:41:27 -04:00
|
|
|
regex/regextest.cpp
|
|
|
|
regex/wxregextest.cpp
|
2005-06-16 19:47:30 -04:00
|
|
|
scopeguard/scopeguardtest.cpp
|
2007-10-08 20:10:07 -04:00
|
|
|
strings/iostream.cpp
|
2011-01-19 05:47:40 -05:00
|
|
|
strings/numformatter.cpp
|
2004-04-20 14:55:09 -04:00
|
|
|
strings/strings.cpp
|
2004-05-21 03:59:14 -04:00
|
|
|
strings/stdstrings.cpp
|
2005-12-20 11:30:12 -05:00
|
|
|
strings/tokenizer.cpp
|
2007-03-17 06:26:10 -04:00
|
|
|
strings/unichar.cpp
|
2004-04-30 16:26:14 -04:00
|
|
|
strings/unicode.cpp
|
2007-03-17 06:26:10 -04:00
|
|
|
strings/vararg.cpp
|
2004-06-03 15:48:31 -04:00
|
|
|
strings/crt.cpp
|
2006-05-28 11:18:15 -04:00
|
|
|
strings/vsnprintf.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/bstream.cpp
|
2004-11-24 17:31:25 -05:00
|
|
|
streams/datastreamtest.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/ffilestream.cpp
|
2006-10-23 17:58:35 -04:00
|
|
|
streams/fileback.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/filestream.cpp
|
2008-06-15 13:34:50 -04:00
|
|
|
streams/iostreams.cpp
|
2005-02-04 04:43:47 -05:00
|
|
|
streams/largefile.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/memstream.cpp
|
2008-07-07 20:19:54 -04:00
|
|
|
streams/socketstream.cpp
|
2004-09-19 18:00:16 -04:00
|
|
|
streams/sstream.cpp
|
2009-05-02 14:29:33 -04:00
|
|
|
streams/stdstream.cpp
|
2005-03-13 11:20:51 -05:00
|
|
|
streams/tempfile.cpp
|
2004-11-21 13:26:38 -05:00
|
|
|
streams/textstreamtest.cpp
|
2004-04-18 15:26:20 -04:00
|
|
|
streams/zlibstream.cpp
|
2006-03-31 08:46:38 -05:00
|
|
|
textfile/textfiletest.cpp
|
2007-07-04 16:54:14 -04:00
|
|
|
thread/atomic.cpp
|
2010-05-10 17:48:24 -04:00
|
|
|
thread/misc.cpp
|
2007-10-31 21:35:20 -04:00
|
|
|
thread/queue.cpp
|
2008-08-29 19:28:42 -04:00
|
|
|
thread/tls.cpp
|
2010-05-29 03:56:08 -04:00
|
|
|
uris/ftp.cpp
|
2004-11-04 16:54:29 -05:00
|
|
|
uris/uris.cpp
|
2009-06-01 07:46:36 -04:00
|
|
|
uris/url.cpp
|
2007-07-07 06:09:42 -04:00
|
|
|
vectors/vectors.cpp
|
2008-01-12 20:12:13 -05:00
|
|
|
weakref/evtconnection.cpp
|
|
|
|
weakref/weakref.cpp
|
2008-02-10 12:03:23 -05:00
|
|
|
xlocale/xlocale.cpp
|
2008-03-29 18:55:35 -04:00
|
|
|
xml/xmltest.cpp
|
2004-03-03 17:56:16 -05:00
|
|
|
</sources>
|
2004-11-04 16:54:29 -05:00
|
|
|
<wx-lib>net</wx-lib>
|
2008-03-29 18:55:35 -04:00
|
|
|
<wx-lib>xml</wx-lib>
|
2009-05-30 09:54:22 -04:00
|
|
|
<wx-lib>base</wx-lib>
|
2004-03-03 17:56:16 -05:00
|
|
|
</exe>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
|
|
|
|
<exe id="test_gui" template="wx_sample,wx_test"
|
|
|
|
template_append="wx_append"
|
|
|
|
cond="USE_GUI=='1'">
|
2004-12-12 14:25:46 -05:00
|
|
|
|
|
|
|
<!-- link against GUI libraries, but be a console app: -->
|
|
|
|
<app-type>console</app-type>
|
2004-12-14 15:29:20 -05:00
|
|
|
|
2004-12-12 07:35:45 -05:00
|
|
|
<sources>
|
2010-08-22 18:16:05 -04:00
|
|
|
asserthelper.cpp
|
2004-12-12 07:35:45 -05:00
|
|
|
test.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
testableframe.cpp
|
2004-12-12 14:23:19 -05:00
|
|
|
geometry/rect.cpp
|
2004-12-14 15:29:20 -05:00
|
|
|
geometry/size.cpp
|
|
|
|
geometry/point.cpp
|
2010-03-28 19:20:49 -04:00
|
|
|
graphics/bitmap.cpp
|
2009-09-19 12:29:50 -04:00
|
|
|
graphics/colour.cpp
|
2010-03-10 08:57:47 -05:00
|
|
|
graphics/ellipsization.cpp
|
2009-04-15 18:38:53 -04:00
|
|
|
graphics/measuring.cpp
|
2007-07-21 19:51:19 -04:00
|
|
|
config/config.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/bitmapcomboboxtest.cpp
|
|
|
|
controls/bitmaptogglebuttontest.cpp
|
|
|
|
controls/bookctrlbasetest.cpp
|
|
|
|
controls/buttontest.cpp
|
|
|
|
controls/checkboxtest.cpp
|
|
|
|
controls/checklistboxtest.cpp
|
|
|
|
controls/choicebooktest.cpp
|
|
|
|
controls/choicetest.cpp
|
2008-09-19 06:18:30 -04:00
|
|
|
controls/comboboxtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/frametest.cpp
|
|
|
|
controls/gaugetest.cpp
|
|
|
|
controls/gridtest.cpp
|
2008-12-03 16:53:10 -05:00
|
|
|
controls/headerctrltest.cpp
|
2010-11-27 06:34:34 -05:00
|
|
|
controls/htmllboxtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/hyperlinkctrltest.cpp
|
|
|
|
controls/itemcontainertest.cpp
|
2010-03-21 17:39:15 -04:00
|
|
|
controls/label.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/listbasetest.cpp
|
|
|
|
controls/listbooktest.cpp
|
|
|
|
controls/listboxtest.cpp
|
2008-12-03 16:53:10 -05:00
|
|
|
controls/listctrltest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/listviewtest.cpp
|
|
|
|
controls/notebooktest.cpp
|
2010-12-20 08:55:40 -05:00
|
|
|
controls/ownerdrawncomboboxtest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/pickerbasetest.cpp
|
|
|
|
controls/pickertest.cpp
|
|
|
|
controls/radioboxtest.cpp
|
|
|
|
controls/radiobuttontest.cpp
|
|
|
|
controls/rearrangelisttest.cpp
|
|
|
|
controls/richtextctrltest.cpp
|
|
|
|
controls/slidertest.cpp
|
|
|
|
controls/spinctrldbltest.cpp
|
|
|
|
controls/spinctrltest.cpp
|
2007-09-25 20:28:31 -04:00
|
|
|
controls/textctrltest.cpp
|
2008-09-19 04:55:25 -04:00
|
|
|
controls/textentrytest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/togglebuttontest.cpp
|
|
|
|
controls/toolbooktest.cpp
|
|
|
|
controls/treebooktest.cpp
|
2009-01-17 08:16:25 -05:00
|
|
|
controls/treectrltest.cpp
|
2010-11-13 10:03:20 -05:00
|
|
|
controls/virtlistctrltest.cpp
|
2010-08-22 18:16:05 -04:00
|
|
|
controls/windowtest.cpp
|
2009-03-22 17:31:34 -04:00
|
|
|
events/clone.cpp
|
2009-01-16 11:21:50 -05:00
|
|
|
events/propagation.cpp
|
2010-09-11 06:18:31 -04:00
|
|
|
events/keyboard.cpp
|
2009-03-18 11:32:28 -04:00
|
|
|
font/fonttest.cpp
|
2009-06-01 07:46:36 -04:00
|
|
|
image/image.cpp
|
2008-05-30 15:30:23 -04:00
|
|
|
image/rawbmp.cpp
|
2011-01-13 09:49:55 -05:00
|
|
|
html/htmlparser.cpp
|
2008-10-15 11:55:25 -04:00
|
|
|
html/htmlwindow.cpp
|
2010-12-03 07:39:57 -05:00
|
|
|
menu/accelentry.cpp
|
2010-11-13 10:03:02 -05:00
|
|
|
menu/menu.cpp
|
2008-09-22 12:03:45 -04:00
|
|
|
misc/guifuncs.cpp
|
2008-03-31 11:22:10 -04:00
|
|
|
misc/selstoretest.cpp
|
2009-01-10 19:39:22 -05:00
|
|
|
misc/garbage.cpp
|
2009-03-24 19:13:02 -04:00
|
|
|
misc/settings.cpp
|
2008-12-27 06:14:10 -05:00
|
|
|
<!--
|
|
|
|
This one is intentionally duplicated here (it is also part of
|
|
|
|
non-GUI test) as sockets behave differently in console and GUI
|
|
|
|
applications.
|
|
|
|
-->
|
|
|
|
net/socket.cpp
|
2010-03-18 11:07:10 -04:00
|
|
|
sizers/boxsizer.cpp
|
2011-01-19 05:48:28 -05:00
|
|
|
validators/valnum.cpp
|
2008-05-24 22:56:22 -04:00
|
|
|
window/clientsize.cpp
|
2008-05-24 23:08:31 -04:00
|
|
|
window/setsize.cpp
|
2010-11-07 09:00:59 -05:00
|
|
|
xml/xrctest.cpp
|
2004-12-12 07:35:45 -05:00
|
|
|
</sources>
|
2010-08-22 18:16:05 -04:00
|
|
|
<wx-lib>richtext</wx-lib>
|
2009-01-10 19:39:22 -05:00
|
|
|
<wx-lib>media</wx-lib>
|
|
|
|
<wx-lib>xrc</wx-lib>
|
|
|
|
<wx-lib>xml</wx-lib>
|
|
|
|
<wx-lib>adv</wx-lib>
|
2008-10-15 11:55:25 -04:00
|
|
|
<wx-lib>html</wx-lib>
|
2004-12-12 07:35:45 -05:00
|
|
|
<wx-lib>core</wx-lib>
|
2008-12-27 06:14:10 -05:00
|
|
|
<wx-lib>net</wx-lib>
|
2004-12-12 07:35:45 -05:00
|
|
|
<wx-lib>base</wx-lib>
|
|
|
|
</exe>
|
|
|
|
|
2004-03-03 17:56:16 -05:00
|
|
|
|
2004-04-30 16:26:14 -04:00
|
|
|
<wx-data id="data">
|
|
|
|
<files>testdata.fc</files>
|
2009-06-01 07:46:36 -04:00
|
|
|
|
|
|
|
<!-- test data for image/image.cpp test unit: -->
|
|
|
|
<files>horse.ani horse.bmp horse.cur horse.gif horse.ico horse.jpg
|
|
|
|
horse.pcx horse.png horse.pnm horse.tga horse.tif horse.xpm</files>
|
2004-04-30 16:26:14 -04:00
|
|
|
</wx-data>
|
|
|
|
|
2007-03-26 17:12:13 -04:00
|
|
|
<template id="catalog">
|
|
|
|
<dstdir>$(BUILDDIR)/intl/$(id)</dstdir>
|
|
|
|
<srcdir>$(SRCDIR)/intl/$(id)</srcdir>
|
|
|
|
<files>internat.po internat.mo</files>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<wx-data id="fr" template="catalog"/>
|
2006-09-05 17:14:38 -04:00
|
|
|
|
|
|
|
|
2009-04-16 10:47:22 -04:00
|
|
|
<fragment format="autoconf">
|
|
|
|
# notice the ugly hack with using CXXWARNINGS: we can't use CPPFLAGS as
|
|
|
|
# currently the value in the makefile would be ignored if we did, but
|
|
|
|
# warnings don't matter when we expect compilation to fail anyhow so we can
|
|
|
|
# use this variable to enable the compilation of code which is supposed to
|
|
|
|
# fail
|
|
|
|
failtest:
|
|
|
|
@$(RM) test_evthandler.o
|
2009-04-16 17:33:37 -04:00
|
|
|
@for d in GLOBAL STATIC METHOD FUNCTOR NO_HANDLER DERIVED WRONG_CLASS; do \
|
2009-04-16 10:47:22 -04:00
|
|
|
if $(MAKE) CXXWARNINGS=-DTEST_INVALID_BIND_$$d test_evthandler.o 2>/dev/null; then \
|
|
|
|
echo "*** Compilation with TEST_INVALID_BIND_$$d unexpectedly succeeded.">&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
.PHONY: failtest
|
|
|
|
</fragment>
|
2006-09-05 17:14:38 -04:00
|
|
|
|
2004-03-03 17:56:16 -05:00
|
|
|
</makefile>
|