Added support for live sources and other elements that cannot do preroll.
[platform/upstream/gstreamer.git] / check / Makefile.am
1 TESTS_ENVIRONMENT=\
2         GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/check \
3         GST_REGISTRY=$(top_builddir)/check/test-registry.xml
4
5 plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
6
7 # make all tests depend on the versioned gst-register
8 $(TESTS): $(top_builddir)/tools/gst-register
9
10 # rebuild gst-register-@GST_MAJORMINOR@ if needed
11 $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@$(EXEEXT):
12         cd $(top_builddir)/tools && make
13
14 # override to _not_ install the test plugins
15 install-pluginLTLIBRARIES:
16
17 # ths core dumps of some machines have PIDs appended
18 CLEANFILES = core.* test-registry.xml
19
20 clean-local:
21         for i in `find . -name ".libs" -type d`; do \
22           rm -rf $$i; \
23         done
24
25 TESTS = $(top_builddir)/tools/gst-register      \
26         gst/gst                                 \
27         gst/gstbin                              \
28         gst/gstbuffer                           \
29         gst/gstbus                              \
30         gst/gstcaps                             \
31         gst/gstghostpad                         \
32         gst/gstiterator                         \
33         gst/gstmessage                          \
34         gst/gstobject                           \
35         gst/gstpad                              \
36         gst/gstsystemclock                      \
37         gst/gststructure                        \
38         gst/gsttag                              \
39         gst/gstvalue                            \
40         pipelines/simple_launch_lines           \
41         pipelines/cleanup                       \
42         states/sinks                            \
43         gst-libs/gdp    
44
45 check_PROGRAMS = $(TESTS)
46
47 noinst_LTLIBRARIES = libgstcheck.la
48
49 libgstcheck_la_SOURCES = gstcheck.c
50 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
51 noinst_HEADERS = gstcheck.h gst/capslist.h
52
53 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
54 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
55
56 gst_libs_gdp_SOURCES = \
57         gst-libs/gdp.c \
58         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
59 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
60 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW