tests: Don't build disabled plugins' check tests
authorSebastian Rasmussen <sebras@hotmail.com>
Mon, 3 Feb 2014 01:06:11 +0000 (02:06 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 4 Feb 2014 13:03:30 +0000 (14:03 +0100)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=723505

tests/check/Makefile.am

index 2cb6b81..17d5c61 100644 (file)
@@ -43,6 +43,12 @@ else
 check_x264enc=
 endif
 
+if USE_PLUGIN_XINGMUX
+check_xingmux = element/xingmux
+else
+check_xingmux =
+endif
+
 # generic/index
 check_PROGRAMS = \
        generic/states \
@@ -50,7 +56,7 @@ check_PROGRAMS = \
        $(LAME) \
        $(MPEG2DEC) \
        $(check_x264enc) \
-       elements/xingmux
+       $(check_xingmux)
 
 # these tests don't even pass
 noinst_PROGRAMS =