gst-inspect: fix unused-const-variable error in windows
[platform/upstream/gstreamer.git] / tests / Makefile.am
index 23ff192..9fe291c 100644 (file)
@@ -1,5 +1,14 @@
 EXTRA_DIST = README
 
+# Build misc unless both --disable-examples and --disable-benchmarks were passed
+
+if BUILD_BENCHMARKS
+SUBDIRS_BENCHMARKS = benchmarks
+SUBDIRS_MISC = misc
+else
+SUBDIRS_BENCHMARKS =
+endif
+
 if BUILD_TESTS
 ## SUBDIRS_TESTS = tests testsuite
 ## FIXME: write tests from scratch
@@ -16,14 +25,15 @@ endif
 
 if BUILD_EXAMPLES
 SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
 else
 SUBDIRS_EXAMPLES =
 endif
 
 SUBDIRS = \
-       benchmarks      \
+       $(SUBDIRS_BENCHMARKS) \
        $(SUBDIRS_CHECK) \
-       misc            \
+       $(SUBDIRS_MISC) \
        $(SUBDIRS_TESTS) \
        $(SUBDIRS_EXAMPLES)