lib/printf.h, libtests/t-printf.c: Bodge to inhibit warning from GCC 9.
[disorder] / plugins / Makefile.am
index ed189c0..0a64c1e 100644 (file)
@@ -20,8 +20,10 @@ VPATH+=${top_srcdir}/common
 
 pkglib_LTLIBRARIES=disorder-tracklength.la fs.la notify.la exec.la shell.la \
                   execraw.la
+check_PROGRAMS=
 AUTOMAKE_OPTIONS=subdir-objects
 AM_CPPFLAGS=-I${top_srcdir}/lib
+AM_CFLAGS=
 
 notify_la_SOURCES=notify.c
 notify_la_LDFLAGS=-module
@@ -44,3 +46,19 @@ execraw_la_LDFLAGS=-module
 
 shell_la_SOURCES=shell.c
 shell_la_LDFLAGS=-module
+
+if GSTDECODE
+AM_CFLAGS+=$(GSTREAMER_CFLAGS)
+pkglib_LTLIBRARIES+=tracklength-gstreamer.la
+tracklength_gstreamer_la_SOURCES=tracklength-gstreamer.c
+tracklength_gstreamer_la_LDFLAGS=-module
+tracklength_gstreamer_la_LIBADD=$(LIBOBJS) \
+       $(GSTREAMER_PLUGINS_BASE_LIBS) \
+       $(GSTREAMER_LIBS)
+check_PROGRAMS+=tracklength-gstreamer-test
+tracklength_gstreamer_test_SOURCES=tracklength-gstreamer.c
+tracklength_gstreamer_test_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
+       $(GSTREAMER_PLUGINS_BASE_LIBS) \
+       $(GSTREAMER_LIBS)
+tracklength_gstreamer_test_CFLAGS=$(AM_CFLAGS) $(CFLAGS) -DSTANDALONE
+endif