element: Enforce that elements created by gst_element_factory_create/make() are floating
[platform/upstream/gstreamer.git] / tests / Makefile.am
index 43ac340..9fe291c 100644 (file)
@@ -1,19 +1,45 @@
-SUBDIRS = sched eos nego muxing
+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 GST_DISABLE_LOADSAVE
-GST_LOADSAVE_PROG =
+if BUILD_TESTS
+## SUBDIRS_TESTS = tests testsuite
+## FIXME: write tests from scratch
+SUBDIRS_TESTS =
+if HAVE_CHECK
+SUBDIRS_CHECK = check
 else
-GST_LOADSAVE_PROG = caps registry autoplug props tee autoplug2 capsconnect \
-                   padfactory autoplug4
+SUBDIRS_CHECK =
+endif
+else
+SUBDIRS_TESTS =
+SUBDIRS_CHECK =
 endif
 
-noinst_PROGRAMS = $(GST_LOADSAVE_PROG) init loadall simplefake states queue \
-paranoia rip mp3encode case4 markup load autoplug3 \
-incsched reaping threadlock mp1vid reconnect \
-faketest events timecache
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
+else
+SUBDIRS_EXAMPLES =
+endif
 
-# we have nothing but apps here, we can do this safely
-LIBS += $(GST_LIBS)
-CFLAGS += $(GST_CFLAGS)
+SUBDIRS = \
+       $(SUBDIRS_BENCHMARKS) \
+       $(SUBDIRS_CHECK) \
+       $(SUBDIRS_MISC) \
+       $(SUBDIRS_TESTS) \
+       $(SUBDIRS_EXAMPLES)
 
-EXTRA_DIST = README
+# These are all the possible subdirs
+DIST_SUBDIRS = \
+       benchmarks \
+       check \
+       examples \
+       misc