DEBIAN: Debianization
[glsdk/gstreamer0-10.git] / libs / gst / dataprotocol / Makefile.am
1 lib_LTLIBRARIES = libgstdataprotocol-@GST_MAJORMINOR@.la
3 libgstdataprotocol_@GST_MAJORMINOR@_includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/dataprotocol
4 libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS = \
5     dataprotocol.h
6 noinst_HEADERS = dp-private.h
8 libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES = \
9     dataprotocol.c
11 libgstdataprotocol_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS)
12 libgstdataprotocol_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS)
13 libgstdataprotocol_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
15 CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
17 %.c.gcov: .libs/libgstdataprotocol_@GST_MAJORMINOR@_la-%.gcda %.c
18         $(GCOV) -b -f -o $^ > $@.out
20 gcov: $(libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
22 Android.mk: Makefile.am
23         androgenizer -:PROJECT gstreamer -:SHARED libgstdataprotocol-@GST_MAJORMINOR@ -:TAGS eng debug \
24          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
25          -:SOURCES $(libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES) \
26          -:CFLAGS $(libgstdataprotocol_@GST_MAJORMINOR@_la_CFLAGS) \
27          -:LDFLAGS $(libgstdataprotocol_@GST_MAJORMINOR@_la_LDFLAGS) \
28                    $(libgstdataprotocol_@GST_MAJORMINOR@_la_LIBADD) \
29          -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/dataprotocol \
30          -:HEADERS $(libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS) \
31          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
32         > $@
34 # Disabled until this is fixed:
35 # http://bugzilla.gnome.org/show_bug.cgi?id=594202
36 if FALSE
37 if HAVE_INTROSPECTION
38 BUILT_GIRSOURCES = GstDataprotocol-@GST_MAJORMINOR@.gir
40 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS))
41 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES))
42 gir_cincludes=$(patsubst %,--c-include='gst/dataprotocol/%',$(libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS))
44 GstDataprotocol-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstdataprotocol-@GST_MAJORMINOR@.la
45         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
46                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
47                 $(INTROSPECTION_SCANNER) -v --namespace GstDataprotocol \
48                 --strip-prefix=Gst \
49                 --nsversion=@GST_MAJORMINOR@ \
50                 -I$(top_srcdir) \
51                 -I$(top_builddir) \
52                 $(gir_cincludes) \
53                 --add-include-path=$(top_builddir)/gst \
54                 --library-path=$(top_builddir)/gst \
55                 --library=$(top_builddir)/gst/libgstreamer-0.10.la \
56                 --library=libgstdataprotocol-0.10.la \
57                 --include=Gst-0.10 \
58                 --libtool="$(top_builddir)/libtool" \
59                 --pkg gstreamer-0.10 \
60                 --pkg-export=gstreamer-dataprotocol-0.10 \
61                 --add-init-section="gst_init(NULL,NULL);" \
62                 --output $@ \
63                 $(gir_headers) \
64                 $(gir_sources)
66 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
67 # install anything - we need to install inside our prefix.
68 girdir = $(datadir)/gir-1.0
69 gir_DATA = $(BUILT_GIRSOURCES)
71 typelibsdir = $(libdir)/girepository-1.0/
73 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
75 %.typelib: %.gir $(INTROSPECTION_COMPILER)
76         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
78 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
79 endif
80 endif