tests: add ABI test suite for libs
[platform/upstream/gstreamer.git] / gst-libs / gst / pbutils / Makefile.am
1 lib_LTLIBRARIES = libgstpbutils-@GST_MAJORMINOR@.la
2
3 headers_pbutils = \
4         pbutils.h         \
5         codec-utils.h     \
6         descriptions.h    \
7         encoding-profile.h      \
8         encoding-target.h       \
9         install-plugins.h \
10         missing-plugins.h \
11         gstdiscoverer.h
12
13 # variables used for enum/marshal generation
14 glib_enum_headers = $(headers_pbutils)
15 glib_enum_define = PB_UTILS
16 glib_gen_prefix = pbutils
17 glib_gen_basename = pbutils
18
19 built_headers_configure = \
20         gstpluginsbaseversion.h
21
22 libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
23         gstpluginsbaseversion.c \
24         pbutils.c         \
25         codec-utils.c     \
26         descriptions.c    \
27         encoding-profile.c      \
28         encoding-target.c       \
29         install-plugins.c \
30         missing-plugins.c \
31         gstdiscoverer.c   \
32         gstdiscoverer-types.c
33
34 nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
35         pbutils-enumtypes.c     \
36         pbutils-marshal.c
37
38 libgstpbutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/pbutils
39 libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
40         $(headers_pbutils)
41 nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
42         $(built_headers_configure) \
43         pbutils-enumtypes.h
44 noinst_HEADERS = \
45         pbutils-private.h
46 EXTRA_DIST = pbutils-marshal.list
47
48 libgstpbutils_@GST_MAJORMINOR@_la_LIBADD = \
49   $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
50   $(GST_LIBS)
51 libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
52 libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
53
54 BUILT_SOURCES = \
55         pbutils-enumtypes.c \
56         pbutils-enumtypes.h \
57         pbutils-marshal.c   \
58         pbutils-marshal.h
59
60 CLEANFILES = $(BUILT_SOURCES)
61
62 # DISTCLEANFILES is for files generated by configure
63 DISTCLEANFILES = $(built_headers_configure)
64
65 include $(top_srcdir)/common/gst-glib-gen.mak
66
67 if HAVE_INTROSPECTION
68 BUILT_GIRSOURCES = GstPbutils-@GST_MAJORMINOR@.gir
69
70 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
71 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
72 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
73 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
74 gir_cincludes=$(patsubst %,--c-include='gst/pbutils/%',$(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
75 gir_cincludes+=$(patsubst %,--c-include='gst/pbutils/%',$(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
76
77 GstPbutils-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstpbutils-@GST_MAJORMINOR@.la
78         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
79                 $(INTROSPECTION_SCANNER) -v --namespace GstPbutils \
80                 --nsversion=@GST_MAJORMINOR@ \
81                 --strip-prefix=Gst \
82                 $(gir_cincludes) \
83                 -I$(top_srcdir)/gst-libs \
84                 -I$(top_builddir)/gst-libs \
85                 --add-include-path=$(srcdir)/../video \
86                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
87                 --library=libgstpbutils-0.10.la \
88                 --library-path=`$(PKG_CONFIG) --variable=libdir gstreamer-0.10` \
89                 --library=gstreamer-0.10 \
90                 --include=Gst-0.10 \
91                 --libtool="$(top_builddir)/libtool" \
92                 --pkg gstreamer-0.10 \
93                 --pkg gstreamer-video-@GST_MAJORMINOR@ \
94                 --pkg-export gstreamer-pbutils-@GST_MAJORMINOR@ \
95                 --add-init-section="gst_init(NULL,NULL);" \
96                 --output $@ \
97                 $(gir_headers) \
98                 $(gir_sources)
99
100 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
101 # install anything - we need to install inside our prefix.
102 girdir = $(datadir)/gir-1.0
103 gir_DATA = $(BUILT_GIRSOURCES)
104
105 typelibsdir = $(libdir)/girepository-1.0/
106
107 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
108
109 %.typelib: %.gir $(INTROSPECTION_COMPILER)
110         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
111                 $(INTROSPECTION_COMPILER) \
112                 --includedir=$(srcdir) \
113                 --includedir=$(srcdir)/../video \
114                 --includedir=$(builddir) \
115                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
116                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
117
118 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
119 endif