Makefile.am: Add check-exports target and run it with 'make check'.
[platform/upstream/gstreamer.git] / Makefile.am
1 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
2
3 if BUILD_EXTERNAL
4 SUBDIRS_EXT = ext
5 else
6 SUBDIRS_EXT =
7 endif
8
9 SUBDIRS =                       \
10         gst-libs                \
11         gst sys $(SUBDIRS_EXT)  \
12         tools                   \
13         tests                   \
14         docs                    \
15         po                      \
16         common                  \
17         m4                      \
18         pkgconfig
19
20 DIST_SUBDIRS =                  \
21         docs                    \
22         gst-libs                \
23         gst sys ext             \
24         tools                   \
25         tests                   \
26         po                      \
27         common                  \
28         m4                      \
29         pkgconfig
30
31 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
32
33 EXTRA_DIST = \
34         gst-plugins-base.spec depcomp \
35         AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS \
36         ChangeLog gst-plugins-base.doap autogen.sh $(win32)
37
38 DISTCLEANFILES = _stdint.h
39
40 ACLOCAL_AMFLAGS = -I m4 -I common/m4
41
42 include $(top_srcdir)/common/release.mak
43 include $(top_srcdir)/common/po.mak
44
45 check-valgrind:
46         cd tests/check && make check-valgrind
47
48 if HAVE_GST_CHECK
49 check-torture:
50         cd tests/check && make torture
51 else
52 check-torture:
53         true
54 endif
55
56 WIN32_COPY = \
57         $(top_builddir)/gst-libs/gst/*/*-enumtypes.[ch] \
58         $(top_builddir)/_stdint.h
59
60 win32-update:
61         for f in $(WIN32_COPY); do cp $$f win32/common;done
62
63 include $(top_srcdir)/common/coverage/lcov.mak
64
65 # make sure all symbols we export on linux are defined in the win32 .def too
66 # (don't care about other unixes for now, it's enough if it works on one of
67 # the linux build bots; we assume .so )
68 baselibs='libgstaudio libgstrtp libgstpbutils libgsttag libgstnetbuffer \
69 libgstinterfaces libgstvideo libgstriff libgstrtsp libgstcdda'
70 check-exports:
71         for l in `eval echo $(baselibs)`; do \
72           libso=`find "$(top_builddir)" -name "$$l-0.10.so"`; \
73           libdef="$(top_srcdir)/win32/common/$$l.def"; \
74           if test "x$$libso" != "x"; then \
75             echo Checking symbols in $$libso; \
76             $(top_srcdir)/common/check-exports $$libdef $$libso || exit 1; \
77           fi; \
78         done
79
80 check: check-exports
81
82