cog: Add orc test code for cog
authorDavid Schleef <ds@schleef.org>
Fri, 20 Nov 2009 12:13:36 +0000 (13:13 +0100)
committerDavid Schleef <ds@schleef.org>
Fri, 20 Nov 2009 12:14:50 +0000 (13:14 +0100)
Also look for cog.orc source file in the right place.

ext/cog/Makefile.am
tests/icles/Makefile.am

index 95c6e8fe28b68ac8eb1c2995cf3ee3ad5696bfb0..a55f8be176cfaff8b0d8d06c93d5b36289962632 100644 (file)
@@ -46,9 +46,9 @@ CLEANFILES = cogorc.c cogorc.h
 
 EXTRA_DIST=cog.orc
 
-cogorc.c: cog.orc
-       $(ORCC) --implementation -o cogorc.c cog.orc
+cogorc.c: $(srcdir)/cog.orc
+       $(ORCC) --implementation -o cogorc.c $(srcdir)/cog.orc
 
-cogorc.h: cog.orc
-       $(ORCC) --header -o cogorc.h cog.orc
+cogorc.h: $(srcdir)/cog.orc
+       $(ORCC) --header -o cogorc.h $(srcdir)/cog.orc
 
index f2755a3fa46a8a5ffd4ea0b4efb9592ac04d7f89..9ea9f1cfcbccb5b3045d9c75d1b3c99d84c73ff2 100644 (file)
@@ -40,6 +40,21 @@ else
 GST_METADATA_TESTS =
 endif
 
+if USE_COG
+COG_TESTS = cog-test
+else
+COG_TESTS =
+endif
+
+BUILT_SOURCES = cog-test.c
+CLEANFILES = cog-test.c
+
+cog-test.c: $(srcdir)/../../ext/cog/cog.orc
+       $(ORCC) --test -o cog-test.c $(srcdir)/../../ext/cog/cog.orc
+
+cog_test_SOURCES = cog-test.c
+cog_test_CFLAGS = $(COG_CFLAGS)
+cog_test_LDADD = -lorc-test-0.4 $(COG_LIBS)
 
 equalizer_test_SOURCES = equalizer-test.c
 equalizer_test_CFLAGS  = $(GST_CFLAGS)
@@ -58,5 +73,6 @@ output_selector_test_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 
 noinst_PROGRAMS = $(GST_SOUNDTOUCH_TESTS) $(GST_METADATA_TESTS) $(OSS4_TESTS) \
+       $(COG_TESTS) \
        equalizer-test output-selector-test