summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-07-25 19:00:29 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-07-25 19:00:29 +0200
commitc01ecd31a0088f7b4ba8b9c17f278548de9bea16 (patch)
treeab4975bb480c775e61cc6b79af57774b4a63167e /test/Makefile.am
parentbcf71a4eff5d87e9e0726cf932caef81a09065aa (diff)
Only compile/run lv2 tests if configured to use LV2.
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 93155fa..0bccd69 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,11 +3,15 @@ SUBDIRS = dgreftest
include $(top_srcdir)/src/Makefile.am.drumgizmo
-TESTS = resource engine gui resampler lv2 configfile audiocache \
+TESTS = resource enginetest gui resampler configfile audiocache \
audiocachefile audiocacheidmanager audiocacheeventhandler \
memchecker randomtest atomictest syncedsettingstest imagecachetest \
semaphoretest
+if ENABLE_LV2
+TESTS += lv2
+endif
+
check_PROGRAMS = $(TESTS)
resource_CXXFLAGS = -DOUTPUT=\"resource\" $(CPPUNIT_CFLAGS) \
@@ -74,16 +78,16 @@ audiocacheeventhandler_SOURCES = \
test.cc \
audiocacheeventhandlertest.cc
-engine_CXXFLAGS = -DOUTPUT=\"engine\" $(CPPUNIT_CFLAGS) \
+enginetest_CXXFLAGS = -DOUTPUT=\"enginetest\" $(CPPUNIT_CFLAGS) \
-I$(top_srcdir)/src -I$(top_srcdir)/include \
-I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS)
-engine_CFLAGS = -DDISABLE_HUGIN
-engine_LDFLAGS = $(CPPUNIT_LIBS) $(DRUMGIZMO_LIBS) $(PTHREAD_LIBS)
-engine_SOURCES = \
+enginetest_CFLAGS = -DDISABLE_HUGIN
+enginetest_LDFLAGS = $(CPPUNIT_LIBS) $(DRUMGIZMO_LIBS) $(PTHREAD_LIBS)
+enginetest_SOURCES = \
$(DRUMGIZMO_SOURCES) \
$(top_srcdir)/hugin/hugin.c \
test.cc \
- engine.cc
+ enginetest.cc
gui_CXXFLAGS = -DOUTPUT=\"gui\" $(CPPUNIT_CFLAGS)
gui_LDFLAGS = $(CPPUNIT_LIBS)