8439ebf14497ec9685c7ca0d2b3a14fed0ccdee3
[platform/upstream/gstreamer.git] / libs / gst / base / Makefile.am
1 lib_LTLIBRARIES = libgstbase-@GST_API_VERSION@.la
2
3 libgstbase_@GST_API_VERSION@_la_DEPENDENCIES = \
4         $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
5 libgstbase_@GST_API_VERSION@_la_SOURCES = \
6         gstadapter.c            \
7         gstaggregator.c         \
8         gstbaseparse.c          \
9         gstbasesink.c           \
10         gstbasesrc.c            \
11         gstbasetransform.c      \
12         gstbitreader.c          \
13         gstbitwriter.c          \
14         gstbytereader.c         \
15         gstbytewriter.c         \
16         gstcollectpads.c        \
17         gstdataqueue.c          \
18         gstflowcombiner.c       \
19         gstpushsrc.c            \
20         gstqueuearray.c         \
21         gsttypefindhelper.c
22
23 libgstbase_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) -DBUILDING_GST_BASE
24 libgstbase_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS)
25 libgstbase_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
26
27 libgstbase_@GST_API_VERSION@includedir =                \
28         $(includedir)/gstreamer-@GST_API_VERSION@/gst/base
29
30 libgstbase_@GST_API_VERSION@include_HEADERS =   \
31         base.h                  \
32         base-prelude.h          \
33         gstadapter.h            \
34         gstaggregator.h         \
35         gstbaseparse.h          \
36         gstbasesink.h           \
37         gstbasesrc.h            \
38         gstbasetransform.h      \
39         gstbitreader.h          \
40         gstbitwriter.h          \
41         gstbytereader.h         \
42         gstbytewriter.h         \
43         gstcollectpads.h        \
44         gstdataqueue.h          \
45         gstflowcombiner.h       \
46         gstpushsrc.h            \
47         gstqueuearray.h         \
48         gsttypefindhelper.h
49
50 noinst_HEADERS = \
51         gstbytereader-docs.h \
52         gstbytewriter-docs.h \
53         gstbitreader-docs.h \
54         gstbitwriter-docs.h \
55         gstindex.h
56
57 EXTRA_DIST = gstindex.c gstmemindex.c
58
59 CLEANFILES = *.gcno *.gcda *.gcov
60
61 %.c.gcov: .libs/libgstbase_@GST_API_VERSION@_la-%.gcda %.c
62         $(GCOV) -b -f -o $^ > $@.out
63
64 gcov: $(libgstbase_@GST_API_VERSION@_la_SOURCES:=.gcov)
65
66 if HAVE_INTROSPECTION
67 BUILT_GIRSOURCES = GstBase-@GST_API_VERSION@.gir
68
69 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstbase_@GST_API_VERSION@include_HEADERS))
70 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstbase_@GST_API_VERSION@_la_SOURCES))
71
72 GstBase-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_API_VERSION@.la
73         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
74                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
75                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
76                 $(INTROSPECTION_SCANNER) -v --namespace GstBase \
77                 --nsversion=@GST_API_VERSION@ \
78                 --warn-all \
79                 --identifier-prefix=Gst \
80                 --symbol-prefix=gst \
81                 -I$(top_srcdir) \
82                 -I$(top_srcdir)/libs \
83                 -I$(top_builddir) \
84                 -I$(top_builddir)/libs \
85                 --c-include "gst/base/base.h" \
86                 --add-include-path=$(top_builddir)/gst \
87                 --library-path=$(top_builddir)/gst \
88                 --library=libgstbase-@GST_API_VERSION@.la \
89                 --include=Gst-@GST_API_VERSION@ \
90                 --libtool="${LIBTOOL}" \
91                 --pkg gstreamer-@GST_API_VERSION@ \
92                 --pkg-export gstreamer-base-@GST_API_VERSION@ \
93                 --add-init-section="$(INTROSPECTION_INIT)" \
94                 --output $@ \
95                 $(gir_headers) \
96                 $(gir_sources)
97
98 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
99 # install anything - we need to install inside our prefix.
100 girdir = $(datadir)/gir-1.0
101 gir_DATA = $(BUILT_GIRSOURCES)
102
103 typelibsdir = $(libdir)/girepository-1.0/
104
105 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
106
107 %.typelib: %.gir $(INTROSPECTION_COMPILER)
108         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
109
110 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
111 endif