1 lib_LTLIBRARIES = libgstnet-@GST_API_VERSION@.la
3 libgstnet_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/net
4 libgstnet_@GST_API_VERSION@_include_HEADERS = \
9 gstnetcontrolmessagemeta.h \
11 gstnettimeprovider.h \
14 libgstnet_@GST_API_VERSION@_la_SOURCES = \
17 gstnetcontrolmessagemeta.c \
19 gstnettimeprovider.c \
24 noinst_HEADERS = gstptp_private.h gstntppacket.h gstnetutils.h
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)
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"; \
41 all-local: check-libexecdir-consistency
43 CLEANFILES = *.gcno *.gcda *.gcov
45 %.c.gcov: .libs/libgstnet_@GST_API_VERSION@_la-%.gcda %.c
46 $(GCOV) -b -f -o $^ > $@.out
48 gcov: $(libgstnet_@GST_API_VERSION@_la_SOURCES:=.gcov)
52 BUILT_GIRSOURCES = GstNet-@GST_API_VERSION@.gir
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"
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 \
66 --nsversion=@GST_API_VERSION@ \
68 -I$(top_srcdir)/libs \
70 -I$(top_builddir)/libs \
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@ \
77 --libtool="${LIBTOOL}" \
78 --pkg gstreamer-@GST_API_VERSION@ \
80 --pkg-export="gstreamer-net-@GST_API_VERSION@" \
81 --add-init-section="$(INTROSPECTION_INIT)" \
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)
91 typelibsdir = $(libdir)/girepository-1.0/
93 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
95 %.typelib: %.gir $(INTROSPECTION_COMPILER)
96 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
98 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)