gst-inspect: fix unused-const-variable error in windows
[platform/upstream/gstreamer.git] / tests / Makefile.am
index c6b3a4f..9fe291c 100644 (file)
@@ -1,10 +1,45 @@
-SUBDIRS = sched eos
+EXTRA_DIST = README
 
-noinst_PROGRAMS = init loadall simplefake states caps queue registry \
-paranoia rip mp3encode autoplug props case4 markup load 
+# Build misc unless both --disable-examples and --disable-benchmarks were passed
 
-# we have nothing but apps here, we can do this safely
-LIBS += $(GST_LIBS)
-CFLAGS += $(GST_CFLAGS)
+if BUILD_BENCHMARKS
+SUBDIRS_BENCHMARKS = benchmarks
+SUBDIRS_MISC = misc
+else
+SUBDIRS_BENCHMARKS =
+endif
 
-EXTRA_DIST = README
+if BUILD_TESTS
+## SUBDIRS_TESTS = tests testsuite
+## FIXME: write tests from scratch
+SUBDIRS_TESTS =
+if HAVE_CHECK
+SUBDIRS_CHECK = check
+else
+SUBDIRS_CHECK =
+endif
+else
+SUBDIRS_TESTS =
+SUBDIRS_CHECK =
+endif
+
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
+else
+SUBDIRS_EXAMPLES =
+endif
+
+SUBDIRS = \
+       $(SUBDIRS_BENCHMARKS) \
+       $(SUBDIRS_CHECK) \
+       $(SUBDIRS_MISC) \
+       $(SUBDIRS_TESTS) \
+       $(SUBDIRS_EXAMPLES)
+
+# These are all the possible subdirs
+DIST_SUBDIRS = \
+       benchmarks \
+       check \
+       examples \
+       misc