Merge remote-tracking branch 'origin/master' into 0.11
[platform/upstream/gstreamer.git] / libs / gst / net / Makefile.am
1 lib_LTLIBRARIES = libgstnet-@GST_MAJORMINOR@.la
2
3 libgstnet_@GST_MAJORMINOR@_includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/net
4 libgstnet_@GST_MAJORMINOR@_include_HEADERS = \
5     gstnet.h \
6     gstnetaddressmeta.h \
7     gstnetclientclock.h \
8     gstnettimepacket.h \
9     gstnettimeprovider.h
10
11 libgstnet_@GST_MAJORMINOR@_la_SOURCES = \
12     gstnetaddressmeta.c \
13     gstnetclientclock.c \
14     gstnettimepacket.c \
15     gstnettimeprovider.c
16
17 libgstnet_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS)
18 libgstnet_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) $(INET_ATON_LIBS) $(WIN32_LIBS)
19 libgstnet_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
20
21 CLEANFILES = *.gcno *.gcda *.gcov
22
23 %.c.gcov: .libs/libgstnet_@GST_MAJORMINOR@_la-%.gcda %.c
24         $(GCOV) -b -f -o $^ > $@.out
25
26 gcov: $(libgstnet_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
27
28 Android.mk: Makefile.am
29         androgenizer -:PROJECT gstreamer -:SHARED libgstnet-@GST_MAJORMINOR@ -:TAGS eng debug \
30          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
31          -:SOURCES $(libgstnet_@GST_MAJORMINOR@_la_SOURCES) \
32          -:CFLAGS $(libgstnet_@GST_MAJORMINOR@_la_CFLAGS) \
33          -:LDFLAGS $(libgstnet_@GST_MAJORMINOR@_la_LDFLAGS) \
34                    $(libgstnet_@GST_MAJORMINOR@_la_LIBADD) \
35          -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/net \
36          -:HEADERS $(libgstnet_@GST_MAJORMINOR@_include_HEADERS) \
37          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
38         > $@
39
40
41 if HAVE_INTROSPECTION
42 BUILT_GIRSOURCES = GstNet-@GST_MAJORMINOR@.gir
43
44 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_MAJORMINOR@_include_HEADERS))
45 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_MAJORMINOR@_la_SOURCES))
46 gir_cincludes=--c-include="gst/net/gstnet.h"
47
48 GstNet-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_MAJORMINOR@.la
49         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
50                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
51                 $(INTROSPECTION_SCANNER) -v --namespace GstNet \
52                 --strip-prefix=Gst \
53                 --warn-all \
54                 --nsversion=@GST_MAJORMINOR@ \
55                 -DGST_USE_UNSTABLE_API \
56                 -I$(top_srcdir) \
57                 -I$(top_srcdir)/libs \
58                 -I$(top_builddir) \
59                 -I$(top_builddir)/libs \
60                 $(gir_cincludes) \
61                 --add-include-path=$(top_builddir)/gst \
62                 --library-path=$(top_builddir)/gst \
63                 --library=$(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la \
64                 --library=libgstnet-@GST_MAJORMINOR@.la \
65                 --include=Gst-@GST_MAJORMINOR@ \
66                 --libtool="$(top_builddir)/libtool" \
67                 --pkg gstreamer-@GST_MAJORMINOR@ \
68                 --pkg-export="gstreamer-net-@GST_MAJORMINOR@" \
69                 --add-init-section="gst_init(NULL,NULL);" \
70                 --output $@ \
71                 $(gir_headers) \
72                 $(gir_sources)
73
74 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
75 # install anything - we need to install inside our prefix.
76 girdir = $(datadir)/gir-1.0
77 gir_DATA = $(BUILT_GIRSOURCES)
78
79 typelibsdir = $(libdir)/girepository-1.0/
80
81 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
82
83 %.typelib: %.gir $(INTROSPECTION_COMPILER)
84         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
85
86 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
87 endif