element: Enforce that elements created by gst_element_factory_create/make() are floating
[platform/upstream/gstreamer.git] / tests / Makefile.am
index a6cd4e4..9fe291c 100644 (file)
@@ -1,18 +1,45 @@
+EXTRA_DIST = README
 
-SUBDIRS = instantiate muxing sched threadstate seeking
+# Build misc unless both --disable-examples and --disable-benchmarks were passed
 
-if GST_DISABLE_TRACE
-LAT = 
+if BUILD_BENCHMARKS
+SUBDIRS_BENCHMARKS = benchmarks
+SUBDIRS_MISC = misc
 else
-LAT = lat
+SUBDIRS_BENCHMARKS =
+endif
 
+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
 
-noinst_PROGRAMS = $(LAT) mass_elements complexity
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+SUBDIRS_MISC = misc
+else
+SUBDIRS_EXAMPLES =
+endif
 
-AM_CFLAGS = $(GST_OBJ_CFLAGS)
-LIBS = $(GST_OBJ_LIBS) \
-       $(top_builddir)/gst/base/libgstbase-@GST_MAJORMINOR@.la
+SUBDIRS = \
+       $(SUBDIRS_BENCHMARKS) \
+       $(SUBDIRS_CHECK) \
+       $(SUBDIRS_MISC) \
+       $(SUBDIRS_TESTS) \
+       $(SUBDIRS_EXAMPLES)
 
-EXTRA_DIST = README
-DIST_SUBDIRS= instantiate muxing sched threadstate seeking
+# These are all the possible subdirs
+DIST_SUBDIRS = \
+       benchmarks \
+       check \
+       examples \
+       misc