aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorColin Snover2016-12-27 12:29:26 -0600
committerColin Snover2016-12-27 12:30:24 -0600
commit6687d9c1ab6b08237322e3bc48eb22efb018d01b (patch)
tree0fd58892d146af3078f0aaf67cbbf3c8d3b80d4a /test
parent4f1a821e6602ff580992c73b00e9174bd46a9c14 (diff)
downloadscummvm-rg350-6687d9c1ab6b08237322e3bc48eb22efb018d01b.tar.gz
scummvm-rg350-6687d9c1ab6b08237322e3bc48eb22efb018d01b.tar.bz2
scummvm-rg350-6687d9c1ab6b08237322e3bc48eb22efb018d01b.zip
TEST: Only build Wintermute tests when that engine is enabled
Diffstat (limited to 'test')
-rw-r--r--test/module.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/module.mk b/test/module.mk
index da469b4263..04e7deeacd 100644
--- a/test/module.mk
+++ b/test/module.mk
@@ -5,8 +5,13 @@
#
######################################################################
-TESTS := $(srcdir)/test/common/*.h $(srcdir)/test/audio/*.h $(srcdir)/test/engines/wintermute/*.h
-TEST_LIBS := audio/libaudio.a common/libcommon.a engines/wintermute/libwintermute.a
+TESTS := $(srcdir)/test/common/*.h $(srcdir)/test/audio/*.h
+TEST_LIBS := audio/libaudio.a common/libcommon.a
+
+ifdef ENABLE_WINTERMUTE
+ TESTS += $(srcdir)/test/engines/wintermute/*.h
+ TEST_LIBS += engines/wintermute/libwintermute.a
+endif
#
TEST_FLAGS := --runner=StdioPrinter --no-std --no-eh --include=$(srcdir)/test/cxxtest_mingw.h