• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1lib_LTLIBRARIES = libgstallocators-@GST_API_VERSION@.la
2
3libgstallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/allocators
4
5libgstallocators_@GST_API_VERSION@_include_HEADERS = \
6	allocators.h \
7	allocators-prelude.h \
8	gstfdmemory.h \
9	gstphysmemory.h \
10	gstdmabuf.h
11
12noinst_HEADERS =
13
14libgstallocators_@GST_API_VERSION@_la_SOURCES = \
15	gstfdmemory.c \
16	gstphysmemory.c \
17	gstdmabuf.c
18
19libgstallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM)
20libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_ALLOCATORS
21libgstallocators_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
22
23if HAVE_INTROSPECTION
24BUILT_GIRSOURCES = GstAllocators-@GST_API_VERSION@.gir
25
26gir_headers=$(patsubst %,$(srcdir)/%, $(libgstallocators_@GST_API_VERSION@_include_HEADERS))
27gir_sources=$(patsubst %,$(srcdir)/%, $(libgstallocators_@GST_API_VERSION@_la_SOURCES))
28gir_cincludes=$(patsubst %,--c-include='gst/allocators/%',$(libgstallocators_@GST_API_VERSION@_include_HEADERS))
29
30GstAllocators-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstallocators-@GST_API_VERSION@.la
31	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
32		GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_DISABLE=yes \
33		CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
34		$(INTROSPECTION_SCANNER) -v --namespace GstAllocators \
35		--nsversion=@GST_API_VERSION@ \
36		--identifier-prefix=Gst \
37		--symbol-prefix=gst \
38		--warn-all \
39		--c-include "gst/allocators/allocators.h" \
40		-I$(top_srcdir)/gst-libs \
41		-I$(top_builddir)/gst-libs \
42		--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
43		--library=libgstallocators-@GST_API_VERSION@.la \
44		--include=Gst-@GST_API_VERSION@ \
45		--libtool="${LIBTOOL}" \
46		--pkg gstreamer-@GST_API_VERSION@ \
47		--pkg-export gstreamer-allocators-@GST_API_VERSION@ \
48		--output $@ \
49		$(gir_headers) \
50		$(gir_sources)
51
52# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
53# install anything - we need to install inside our prefix.
54girdir = $(datadir)/gir-1.0
55gir_DATA = $(BUILT_GIRSOURCES)
56
57typelibsdir = $(libdir)/girepository-1.0/
58
59typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
60
61%.typelib: %.gir $(INTROSPECTION_COMPILER)
62	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
63		$(INTROSPECTION_COMPILER) \
64		--includedir=$(srcdir) \
65		--includedir=$(builddir) \
66		--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
67		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
68
69CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
70endif
71