tests: add ABI test suite for libs
[platform/upstream/gstreamer.git] / gst-libs / gst / cdda / Makefile.am
1 lib_LTLIBRARIES = libgstcdda-@GST_MAJORMINOR@.la
2
3 libgstcdda_@GST_MAJORMINOR@_la_SOURCES = \
4         gstcddabasesrc.c
5
6 libgstcdda_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/cdda
7 libgstcdda_@GST_MAJORMINOR@include_HEADERS = \
8         gstcddabasesrc.h
9
10 libgstcdda_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) \
11   $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la
12 libgstcdda_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
13 libgstcdda_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
14
15 # Disabled until this is fixed:
16 # http://bugzilla.gnome.org/show_bug.cgi?id=594209
17 if FALSE
18 if HAVE_INTROSPECTION
19 BUILT_GIRSOURCES = GstCdda-@GST_MAJORMINOR@.gir
20
21 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcdda_@GST_MAJORMINOR@include_HEADERS))
22 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcdda_@GST_MAJORMINOR@_la_SOURCES))
23 gir_cincludes=$(patsubst %,--c-include='gst/cdda/%',$(libgstcdda_@GST_MAJORMINOR@include_HEADERS))
24
25 GstCdda-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcdda-@GST_MAJORMINOR@.la
26         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
27                 $(INTROSPECTION_SCANNER) -v --namespace GstCdda \
28                 --nsversion=@GST_MAJORMINOR@ \
29                 --strip-prefix=Gst \
30                 $(gir_cincludes) \
31                 --add-include-path=$(builddir)/../tag \
32                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
33                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
34                 --library=libgstcdda-0.10.la \
35                 --include=Gst-0.10 \
36                 --include=GstBase-0.10 \
37                 --include=GstTag-0.10 \
38                 --libtool="$(top_builddir)/libtool" \
39                 --pkg gstreamer-0.10 \
40                 --pkg gstreamer-base-0.10 \
41                 --pkg gstreamer-tag-0.10 \
42                 --pkg-export gstreamer-cdda-0.10 \
43                 --output $@ \
44                 $(gir_headers) \
45                 $(gir_sources)
46
47 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
48 # install anything - we need to install inside our prefix.
49 girdir = $(datadir)/gir-1.0
50 gir_DATA = $(BUILT_GIRSOURCES)
51
52 typelibsdir = $(libdir)/girepository-1.0/
53
54 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
55
56 %.typelib: %.gir $(INTROSPECTION_COMPILER)
57         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
58                 $(INTROSPECTION_COMPILER) \
59                 --includedir=$(srcdir) \
60                 --includedir=$(builddir) \
61                 --includedir=$(builddir)/../tag \
62                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
63                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
64                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
65
66 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
67 endif
68 endif