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