more 0.10 -> 0.11 changes
[platform/upstream/gstreamer.git] / gst-libs / gst / netbuffer / Makefile.am
1 libgstnetbufferincludedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/netbuffer
2
3 libgstnetbufferinclude_HEADERS = gstnetbuffer.h
4
5 lib_LTLIBRARIES = libgstnetbuffer-@GST_MAJORMINOR@.la
6
7 libgstnetbuffer_@GST_MAJORMINOR@_la_SOURCES = gstnetbuffer.c
8 libgstnetbuffer_@GST_MAJORMINOR@_la_CFLAGS = $(GST_CFLAGS)
9 libgstnetbuffer_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS)
10 libgstnetbuffer_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
11
12 if HAVE_INTROSPECTION
13 BUILT_GIRSOURCES = GstNetbuffer-@GST_MAJORMINOR@.gir
14
15 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstnetbufferinclude_HEADERS))
16 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstnetbuffer_@GST_MAJORMINOR@_la_SOURCES))
17 gir_cincludes=$(patsubst %,--c-include='gst/netbuffer/%',$(libgstnetbufferinclude_HEADERS))
18
19 GstNetbuffer-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnetbuffer-@GST_MAJORMINOR@.la
20         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
21                 $(INTROSPECTION_SCANNER) -v --namespace GstNetbuffer \
22                 --nsversion=@GST_MAJORMINOR@ \
23                 --strip-prefix=Gst \
24                 $(gir_cincludes) \
25                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
26                 --library=libgstnetbuffer-@GST_MAJORMINOR@.la \
27                 --include=Gst-@GST_MAJORMINOR@ \
28                 --libtool="$(top_builddir)/libtool" \
29                 --pkg gstreamer-@GST_MAJORMINOR@ \
30                 --pkg-export gstreamer-netbuffer-@GST_MAJORMINOR@ \
31                 --output $@ \
32                 $(gir_headers) \
33                 $(gir_sources)
34
35 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
36 # install anything - we need to install inside our prefix.
37 girdir = $(datadir)/gir-1.0
38 gir_DATA = $(BUILT_GIRSOURCES)
39
40 typelibsdir = $(libdir)/girepository-1.0/
41
42 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
43
44 %.typelib: %.gir $(INTROSPECTION_COMPILER)
45         $(AM_V_GEN)$(INTROSPECTION_COMPILER) \
46                 --includedir=$(srcdir) \
47                 --includedir=$(builddir) \
48                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
49                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
50
51 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
52 endif