tests: add resample test
[platform/upstream/gstreamer.git] / Makefile.am
index f633935..5fc3e10 100644 (file)
@@ -7,6 +7,7 @@ SUBDIRS_EXT =
 endif
 
 SUBDIRS =                      \
+       pkgconfig               \
        gst-libs                \
        gst sys $(SUBDIRS_EXT)  \
        tools                   \
@@ -14,10 +15,10 @@ SUBDIRS =                   \
        docs                    \
        po                      \
        common                  \
-       m4                      \
-       pkgconfig
+       m4
 
 DIST_SUBDIRS =                         \
+       pkgconfig               \
        docs                    \
        gst-libs                \
        gst sys ext             \
@@ -25,10 +26,10 @@ DIST_SUBDIRS =                      \
        tests                   \
        po                      \
        common                  \
-       m4                      \
-       pkgconfig
+       m4
 
-win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
+# include before EXTRA_DIST for win32 assignment
+include $(top_srcdir)/common/win32.mak
 
 EXTRA_DIST = \
        gst-plugins-base.spec depcomp \
@@ -43,14 +44,18 @@ include $(top_srcdir)/common/release.mak
 include $(top_srcdir)/common/po.mak
 
 check-valgrind:
-       cd tests/check && make check-valgrind
+       $(MAKE) -C tests/check check-valgrind
 
 if HAVE_GST_CHECK
 check-torture:
-       cd tests/check && make torture
+       $(MAKE) -C tests/check torture
+build-checks:
+       $(MAKE) -C tests/check build-checks
 else
 check-torture:
        true
+build-checks:
+       true
 endif
 
 WIN32_COPY = \
@@ -58,25 +63,38 @@ WIN32_COPY = \
        $(top_builddir)/_stdint.h
 
 win32-update:
-       for f in $(WIN32_COPY); do cp $$f win32/common;done
+       for f in $(WIN32_COPY); do cp -v $$f win32/common; done; \
+       for f in win32/common/*-enumtypes.c; do \
+         echo "Indenting $$f"; \
+         gst-indent $$f; gst-indent $$f; \
+       done
+       cp -v $(top_builddir)/win32/common/config.h-new \
+           $(top_srcdir)/win32/common/config.h
 
 include $(top_srcdir)/common/coverage/lcov.mak
 
-# make sure all symbols we export on linux are defined in the win32 .def too
-# (don't care about other unixes for now, it's enough if it works on one of
-# the linux build bots; we assume .so )
-baselibs='libgstaudio libgstrtp libgstpbutils libgsttag libgstnetbuffer \
-libgstinterfaces libgstvideo libgstriff libgstrtsp libgstcdda'
-check-exports:
-       for l in `eval echo $(baselibs)`; do \
-         libso=`find "$(top_builddir)" -name "$$l-0.10.so"`; \
-         libdef="$(top_srcdir)/win32/common/$$l.def"; \
-         if test "x$$libso" != "x"; then \
-           echo Checking symbols in $$libso; \
-           $(top_srcdir)/common/check-exports $$libdef $$libso || exit 1; \
-         fi; \
-       done
-
 check: check-exports
 
-
+# cruft: plugins that have been merged or moved or renamed
+
+CRUFT_FILES = \
+       $(top_builddir)/common/shave \
+       $(top_builddir)/common/shave-libtool \
+       $(top_builddir)/gst-libs/gst/audio/testchannels \
+       $(top_builddir)/tests/check/elements/gdppay \
+       $(top_builddir)/tests/check/elements/gdpdepay \
+       $(top_builddir)/tests/check/pipelines/streamheader \
+       $(top_builddir)/tests/examples/audio/testchannels \
+       $(top_builddir)/tests/examples/volume/volume \
+       $(top_builddir)/tools/gst-discoverer
+
+CRUFT_DIRS = \
+       $(top_srcdir)/docs/plugins/tmpl \
+       $(top_srcdir)/ext/gio \
+       $(top_srcdir)/gst/gdp \
+       $(top_srcdir)/sys/v4l \
+       $(top_srcdir)/tests/examples/v4l
+
+include $(top_srcdir)/common/cruft.mak
+
+all-local: check-cruft