From c01ecd31a0088f7b4ba8b9c17f278548de9bea16 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 25 Jul 2016 19:00:29 +0200 Subject: Only compile/run lv2 tests if configured to use LV2. --- test/Makefile.am | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'test') 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) -- cgit v1.2.3