2013-02-18 14:18:38 +00:00
|
|
|
lib_LTLIBRARIES = libgstallocators-@GST_API_VERSION@.la
|
|
|
|
|
|
|
|
libgstallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/allocators
|
|
|
|
|
|
|
|
libgstallocators_@GST_API_VERSION@_include_HEADERS = \
|
2013-02-19 08:39:24 +00:00
|
|
|
allocators.h \
|
2018-03-13 10:19:16 +00:00
|
|
|
allocators-prelude.h \
|
2015-03-18 14:12:03 +00:00
|
|
|
gstfdmemory.h \
|
2017-02-17 17:26:41 +00:00
|
|
|
gstphysmemory.h \
|
2013-02-18 14:18:38 +00:00
|
|
|
gstdmabuf.h
|
|
|
|
|
2015-03-18 14:12:03 +00:00
|
|
|
noinst_HEADERS =
|
2013-02-18 14:18:38 +00:00
|
|
|
|
|
|
|
libgstallocators_@GST_API_VERSION@_la_SOURCES = \
|
2015-03-15 14:16:23 +00:00
|
|
|
gstfdmemory.c \
|
2017-02-17 17:26:41 +00:00
|
|
|
gstphysmemory.c \
|
2013-02-18 14:18:38 +00:00
|
|
|
gstdmabuf.c
|
|
|
|
|
|
|
|
libgstallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM)
|
2013-02-19 08:39:24 +00:00
|
|
|
libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
2013-02-18 14:18:38 +00:00
|
|
|
libgstallocators_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
BUILT_GIRSOURCES = GstAllocators-@GST_API_VERSION@.gir
|
|
|
|
|
|
|
|
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstallocators_@GST_API_VERSION@_include_HEADERS))
|
|
|
|
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstallocators_@GST_API_VERSION@_la_SOURCES))
|
|
|
|
gir_cincludes=$(patsubst %,--c-include='gst/allocators/%',$(libgstallocators_@GST_API_VERSION@_include_HEADERS))
|
|
|
|
|
|
|
|
GstAllocators-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstallocators-@GST_API_VERSION@.la
|
2015-03-31 09:21:25 +00:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
|
2017-05-04 22:55:20 +00:00
|
|
|
GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_DISABLE=yes \
|
2016-05-23 23:44:21 +00:00
|
|
|
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
|
2013-02-18 14:18:38 +00:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace GstAllocators \
|
|
|
|
--nsversion=@GST_API_VERSION@ \
|
2015-12-03 04:19:43 +00:00
|
|
|
--identifier-prefix=Gst \
|
|
|
|
--symbol-prefix=gst \
|
2013-02-18 14:18:38 +00:00
|
|
|
--warn-all \
|
2013-02-19 08:39:24 +00:00
|
|
|
--c-include "gst/allocators/allocators.h" \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
|
|
|
-I$(top_builddir)/gst-libs \
|
2013-02-18 14:18:38 +00:00
|
|
|
--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
|
|
|
|
--library=libgstallocators-@GST_API_VERSION@.la \
|
|
|
|
--include=Gst-@GST_API_VERSION@ \
|
2014-04-18 08:37:57 +00:00
|
|
|
--libtool="${LIBTOOL}" \
|
2013-02-18 14:18:38 +00:00
|
|
|
--pkg gstreamer-@GST_API_VERSION@ \
|
|
|
|
--pkg-export gstreamer-allocators-@GST_API_VERSION@ \
|
|
|
|
--output $@ \
|
|
|
|
$(gir_headers) \
|
|
|
|
$(gir_sources)
|
|
|
|
|
|
|
|
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
|
|
|
|
# install anything - we need to install inside our prefix.
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(BUILT_GIRSOURCES)
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0/
|
|
|
|
|
|
|
|
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
|
|
|
|
|
|
|
|
%.typelib: %.gir $(INTROSPECTION_COMPILER)
|
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
|
|
|
|
$(INTROSPECTION_COMPILER) \
|
|
|
|
--includedir=$(srcdir) \
|
|
|
|
--includedir=$(builddir) \
|
|
|
|
--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
|
|
|
|
$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
|
|
|
endif
|