aggregator: remove DEBUG_FUNCPTR
[platform/upstream/gstreamer.git] / libs / gst / net / Makefile.am
1 lib_LTLIBRARIES = libgstnet-@GST_API_VERSION@.la
2
3 libgstnet_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/net
4 libgstnet_@GST_API_VERSION@_include_HEADERS = \
5     net.h \
6     gstnet.h \
7     gstnetaddressmeta.h \
8     gstnetclientclock.h \
9     gstnetcontrolmessagemeta.h \
10     gstnettimepacket.h \
11     gstnettimeprovider.h \
12     gstptpclock.h
13
14 libgstnet_@GST_API_VERSION@_la_SOURCES = \
15     gstnetaddressmeta.c \
16     gstnetclientclock.c \
17     gstnetcontrolmessagemeta.c \
18     gstnettimepacket.c \
19     gstnettimeprovider.c \
20     gstptpclock.c \
21     gstntppacket.c \
22     gstnetutils.c
23
24 noinst_HEADERS = gstptp_private.h gstntppacket.h gstnetutils.h
25
26 libgstnet_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
27 libgstnet_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) $(GIO_LIBS) \
28         $(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la
29 libgstnet_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
30
31 # try to prevent packaging errors
32 check-libexecdir-consistency:
33         @if test "${GST_PTP_HELPER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-ptp-helper"; then \
34           echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
35           echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
36           echo "*** The same goes for prefix, libdir etc."; \
37           echo "*** ${GST_PTP_HELPER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-ptp-helper"; \
38           exit 1; \
39         fi
40
41 all-local: check-libexecdir-consistency
42
43 CLEANFILES = *.gcno *.gcda *.gcov
44
45 %.c.gcov: .libs/libgstnet_@GST_API_VERSION@_la-%.gcda %.c
46         $(GCOV) -b -f -o $^ > $@.out
47
48 gcov: $(libgstnet_@GST_API_VERSION@_la_SOURCES:=.gcov)
49
50
51 if HAVE_INTROSPECTION
52 BUILT_GIRSOURCES = GstNet-@GST_API_VERSION@.gir
53
54 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_API_VERSION@_include_HEADERS))
55 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_API_VERSION@_la_SOURCES))
56 gir_cincludes=--c-include="gst/net/net.h"
57
58 GstNet-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_API_VERSION@.la
59         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
60                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
61                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
62                 $(INTROSPECTION_SCANNER) -v --namespace GstNet \
63                 --identifier-prefix=Gst \
64                 --symbol-prefix=gst \
65                 --warn-all \
66                 --nsversion=@GST_API_VERSION@ \
67                 -I$(top_srcdir) \
68                 -I$(top_srcdir)/libs \
69                 -I$(top_builddir) \
70                 -I$(top_builddir)/libs \
71                 $(gir_cincludes) \
72                 --add-include-path=$(top_builddir)/gst \
73                 --library-path=$(top_builddir)/gst \
74                 --library=libgstnet-@GST_API_VERSION@.la \
75                 --include=Gst-@GST_API_VERSION@ \
76                 --include=Gio-2.0 \
77                 --libtool="${LIBTOOL}" \
78                 --pkg gstreamer-@GST_API_VERSION@ \
79                 --pkg gio-2.0 \
80                 --pkg-export="gstreamer-net-@GST_API_VERSION@" \
81                 --add-init-section="$(INTROSPECTION_INIT)" \
82                 --output $@ \
83                 $(gir_headers) \
84                 $(gir_sources)
85
86 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
87 # install anything - we need to install inside our prefix.
88 girdir = $(datadir)/gir-1.0
89 gir_DATA = $(BUILT_GIRSOURCES)
90
91 typelibsdir = $(libdir)/girepository-1.0/
92
93 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
94
95 %.typelib: %.gir $(INTROSPECTION_COMPILER)
96         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
97
98 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
99 endif