[beast: 12/17] TESTS: move plugin compilation test here as tests/plugintest.idl



commit 4fda2079c3a45c660138d3679fea325bafcc6d7c
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 15 22:58:11 2017 +0200

    TESTS: move plugin compilation test here as tests/plugintest.idl
    
    Signed-off-by: Tim Janik <timj gnu org>

 Makefile.am                                  |    4 ++++
 tests/Makefile.sub                           |   14 ++++++++++++++
 tests/bse/Makefile.am                        |   14 --------------
 tests/{bse/testplugin.cc => plugintest.cc}   |    2 +-
 tests/{bse/testplugin.idl => plugintest.idl} |    0
 5 files changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f2031bd..620f319 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,6 +17,10 @@ noinst_SCRIPTS           =
 noinst_PROGRAMS          =
 noinst_LTLIBRARIES      =
 
+# == project tools and paths ==
+SFIDL                    = $(top_builddir)/sfi/sfidl
+SFIDL_INC                = --nostdinc -I$(top_srcdir) -I$(top_builddir)
+
 # == early rules ==
 # Ideally, all directories would provide a Makefile.sub and be included here
 # in the appropriate order. Since we're not there yet, *some* Makefile.sub
diff --git a/tests/Makefile.sub b/tests/Makefile.sub
index e3743b6..0d9378f 100644
--- a/tests/Makefile.sub
+++ b/tests/Makefile.sub
@@ -58,6 +58,20 @@ tests_filtertest_LDADD    = bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
 tests_filtertest_SOURCES  = \
        tests/filtertest.cc
 
+# == plugintest ==
+noinst_LTLIBRARIES          += tests/plugintest.la
+tests_plugintest_la_CXXFLAGS = $(SFI_CPPFLAGS) $(RAPICORN_CFLAGS)
+tests_plugintest_la_LDFLAGS  = $(AM_LDFLAGS) -module -avoid-version
+tests_plugintest_la_LIBADD   = bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
+tests_plugintest_la_SOURCES  = \
+       tests/plugintest.cc
+tests/plugintest.genidl.hh: tests/plugintest.idl $(SFIDL)
+       $(SFIDL) --core-cxx $(SFIDL_INC) -I$(top_builddir) $< > $@.tmp
+       mv $@.tmp $@
+TESTS_CLEANFILES += tests/plugintest.genidl.hh tests/plugintest.genidl.hh.tmp
+$(tests_plugintest_la_SOURCES): tests/plugintest.genidl.hh tests/plugintest.idl
+# tihs is merely a compilation test for Bse plugins
+
 # == testresampler ==
 #NOINST_TESTS                += tests/testresampler
 noinst_PROGRAMS             += tests/testresampler
diff --git a/tests/bse/Makefile.am b/tests/bse/Makefile.am
index c4d9f65..19c8fa9 100644
--- a/tests/bse/Makefile.am
+++ b/tests/bse/Makefile.am
@@ -29,17 +29,3 @@ progs_ldadd = ../../bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
 SFIDL = $(top_builddir)/sfi/sfidl
 SFIDL_INC = --nostdinc -I$(top_srcdir) -I$(top_builddir)
 
-# test plugin library
-lib_LTLIBRARIES = testplugin.la
-testplugin_la_SOURCES = testplugin.cc
-testplugin_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version
-testplugin_la_LIBADD  = $(progs_ldadd)
-testplugin.genidl.hh: testplugin.idl $(SFIDL)
-       $(SFIDL) --core-cxx $(SFIDL_INC) -I$(top_builddir) $< > xgen-$(@F)
-       mv xgen-$(@F) $@
-GENERATED_CLEANFILES += testplugin.genidl.hh
-$(srcdir)/testplugin.cc: testplugin.genidl.hh
-$(srcdir)/testplugin.cc: testplugin.idl
-
-# prevent libs from being installed
-install-libLTLIBRARIES:
diff --git a/tests/bse/testplugin.cc b/tests/plugintest.cc
similarity index 96%
rename from tests/bse/testplugin.cc
rename to tests/plugintest.cc
index 35f578c..d4d4d71 100644
--- a/tests/bse/testplugin.cc
+++ b/tests/plugintest.cc
@@ -1,6 +1,6 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 #include "bse/bsecxxmodule.hh"
-#include "testplugin.genidl.hh"
+#include "tests/plugintest.genidl.hh"
 #include <stdexcept>
 #include <math.h>
 #include <string.h>
diff --git a/tests/bse/testplugin.idl b/tests/plugintest.idl
similarity index 100%
rename from tests/bse/testplugin.idl
rename to tests/plugintest.idl


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]