From 6687d9c1ab6b08237322e3bc48eb22efb018d01b Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 27 Dec 2016 12:29:26 -0600 Subject: TEST: Only build Wintermute tests when that engine is enabled --- test/module.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3