2012-04-24 16:16:27 +00:00
|
|
|
# variables used for enum generation
|
2012-07-23 14:52:33 +00:00
|
|
|
ORC_SOURCE=video-orc
|
2012-05-29 13:12:16 +00:00
|
|
|
include $(top_srcdir)/common/orc.mak
|
|
|
|
|
2014-12-02 10:32:28 +00:00
|
|
|
glib_enum_headers = video.h video-format.h video-color.h video-info.h video-dither.h \
|
2014-10-24 14:51:37 +00:00
|
|
|
colorbalance.h navigation.h video-chroma.h video-tile.h video-converter.h \
|
2018-10-04 08:36:09 +00:00
|
|
|
video-resampler.h video-frame.h video-scaler.h video-anc.h \
|
|
|
|
video-overlay-composition.h
|
2009-10-16 07:18:45 +00:00
|
|
|
glib_enum_define = GST_VIDEO
|
2009-10-16 07:56:56 +00:00
|
|
|
glib_gen_prefix = gst_video
|
2009-10-16 07:18:45 +00:00
|
|
|
glib_gen_basename = video
|
2018-03-13 11:48:31 +00:00
|
|
|
glib_gen_decl_banner=GST_VIDEO_API
|
|
|
|
glib_gen_decl_include=\#include <gst/video/video-prelude.h>
|
2008-12-31 13:01:30 +00:00
|
|
|
|
2012-04-24 16:16:27 +00:00
|
|
|
built_sources = video-enumtypes.c
|
|
|
|
built_headers = video-enumtypes.h
|
2012-05-30 11:06:11 +00:00
|
|
|
BUILT_SOURCES += $(built_sources) $(built_headers)
|
2008-12-31 13:01:30 +00:00
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
lib_LTLIBRARIES = libgstvideo-@GST_API_VERSION@.la
|
2002-09-26 12:20:12 +00:00
|
|
|
|
2008-12-31 13:01:30 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
libgstvideo_@GST_API_VERSION@_la_SOURCES = \
|
2011-11-29 18:10:01 +00:00
|
|
|
colorbalance.c \
|
|
|
|
colorbalancechannel.c \
|
2012-04-13 09:01:03 +00:00
|
|
|
navigation.c \
|
2011-11-29 18:10:01 +00:00
|
|
|
video.c \
|
2018-02-15 12:59:56 +00:00
|
|
|
video-anc.c \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-event.c \
|
|
|
|
video-format.c \
|
2013-05-17 13:45:41 +00:00
|
|
|
video-chroma.c \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-color.c \
|
2014-09-24 14:19:30 +00:00
|
|
|
video-converter.c \
|
2014-12-02 10:32:28 +00:00
|
|
|
video-dither.c \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-info.c \
|
|
|
|
video-frame.c \
|
2014-10-24 13:25:33 +00:00
|
|
|
video-scaler.c \
|
2013-12-25 13:11:57 +00:00
|
|
|
video-tile.c \
|
2011-11-29 18:10:01 +00:00
|
|
|
gstvideosink.c \
|
|
|
|
gstvideofilter.c \
|
|
|
|
convertframe.c \
|
2015-11-02 12:12:19 +00:00
|
|
|
gstvideoaffinetransformationmeta.c \
|
2011-11-29 18:10:01 +00:00
|
|
|
gstvideometa.c \
|
|
|
|
gstvideopool.c \
|
2016-07-26 17:14:40 +00:00
|
|
|
videodirection.c \
|
2011-11-29 18:10:01 +00:00
|
|
|
videoorientation.c \
|
2012-04-24 16:14:31 +00:00
|
|
|
videooverlay.c \
|
|
|
|
gstvideodecoder.c \
|
|
|
|
gstvideoencoder.c \
|
2012-06-28 16:16:20 +00:00
|
|
|
gstvideoutils.c \
|
2014-12-08 19:33:33 +00:00
|
|
|
gstvideoutilsprivate.c \
|
2014-10-30 10:43:52 +00:00
|
|
|
video-resampler.c \
|
2012-06-28 16:16:20 +00:00
|
|
|
video-blend.c \
|
2015-06-11 01:12:39 +00:00
|
|
|
video-overlay-composition.c \
|
2016-05-14 09:20:38 +00:00
|
|
|
video-multiview.c \
|
|
|
|
gstvideotimecode.c
|
2011-11-29 18:10:01 +00:00
|
|
|
|
2012-05-30 11:07:57 +00:00
|
|
|
nodist_libgstvideo_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
|
2002-09-26 12:20:12 +00:00
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
libgstvideo_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/video
|
|
|
|
libgstvideo_@GST_API_VERSION@include_HEADERS = \
|
2011-11-29 18:49:50 +00:00
|
|
|
colorbalance.h \
|
|
|
|
colorbalancechannel.h \
|
2012-04-13 09:01:03 +00:00
|
|
|
navigation.h \
|
2011-11-29 18:49:50 +00:00
|
|
|
video.h \
|
2018-03-13 11:48:31 +00:00
|
|
|
video-prelude.h \
|
2018-02-15 12:59:56 +00:00
|
|
|
video-anc.h \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-event.h \
|
|
|
|
video-format.h \
|
2013-05-17 13:45:41 +00:00
|
|
|
video-chroma.h \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-color.h \
|
2014-09-24 14:19:30 +00:00
|
|
|
video-converter.h \
|
2014-12-02 10:32:28 +00:00
|
|
|
video-dither.h \
|
2012-06-05 10:47:22 +00:00
|
|
|
video-info.h \
|
|
|
|
video-frame.h \
|
2014-10-24 13:25:33 +00:00
|
|
|
video-scaler.h \
|
2013-12-25 13:11:57 +00:00
|
|
|
video-tile.h \
|
2011-11-29 18:49:50 +00:00
|
|
|
gstvideosink.h \
|
|
|
|
gstvideofilter.h \
|
|
|
|
gstvideometa.h \
|
2015-11-02 12:12:19 +00:00
|
|
|
gstvideoaffinetransformationmeta.h \
|
2011-11-29 18:49:50 +00:00
|
|
|
gstvideopool.h \
|
2016-07-26 17:14:40 +00:00
|
|
|
videodirection.h \
|
2011-11-29 18:49:50 +00:00
|
|
|
videoorientation.h \
|
2012-04-24 16:14:31 +00:00
|
|
|
videooverlay.h \
|
|
|
|
gstvideodecoder.h \
|
|
|
|
gstvideoencoder.h \
|
2012-06-28 16:16:20 +00:00
|
|
|
gstvideoutils.h \
|
2014-10-30 10:43:52 +00:00
|
|
|
video-resampler.h \
|
2012-06-28 16:16:20 +00:00
|
|
|
video-blend.h \
|
2015-06-11 01:12:39 +00:00
|
|
|
video-overlay-composition.h \
|
2016-05-14 09:20:38 +00:00
|
|
|
video-multiview.h \
|
|
|
|
gstvideotimecode.h
|
2012-06-28 16:16:20 +00:00
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
nodist_libgstvideo_@GST_API_VERSION@include_HEADERS = $(built_headers)
|
2014-12-08 19:33:33 +00:00
|
|
|
noinst_HEADERS = gstvideoutilsprivate.h
|
2002-09-26 12:20:12 +00:00
|
|
|
|
2012-05-29 13:12:16 +00:00
|
|
|
libgstvideo_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
|
2018-04-28 13:50:11 +00:00
|
|
|
$(ORC_CFLAGS) -DBUILDING_GST_VIDEO
|
2014-09-27 18:05:38 +00:00
|
|
|
libgstvideo_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
|
2012-04-04 12:20:13 +00:00
|
|
|
libgstvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
2008-12-31 13:01:30 +00:00
|
|
|
|
2009-10-16 07:18:45 +00:00
|
|
|
include $(top_srcdir)/common/gst-glib-gen.mak
|
2009-09-05 09:37:14 +00:00
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
2012-04-04 12:20:13 +00:00
|
|
|
BUILT_GIRSOURCES = GstVideo-@GST_API_VERSION@.gir
|
2009-09-05 09:37:14 +00:00
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@include_HEADERS))
|
2012-08-05 13:39:01 +00:00
|
|
|
gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
|
2012-04-04 12:20:13 +00:00
|
|
|
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@_la_SOURCES))
|
2012-08-05 13:39:01 +00:00
|
|
|
gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
|
2009-09-05 09:37:14 +00:00
|
|
|
|
2012-04-04 12:20:13 +00:00
|
|
|
GstVideo-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstvideo-@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_1_0="" GST_PLUGIN_PATH_1_0="" 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)" \
|
2009-09-12 12:01:20 +00:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace GstVideo \
|
2012-04-04 12:20:13 +00:00
|
|
|
--nsversion=@GST_API_VERSION@ \
|
2015-12-03 04:19:43 +00:00
|
|
|
--identifier-prefix=Gst \
|
|
|
|
--symbol-prefix=gst \
|
2011-11-25 09:31:38 +00:00
|
|
|
--warn-all \
|
2012-12-12 17:13:10 +00:00
|
|
|
--c-include "gst/video/video.h" \
|
2009-09-05 09:37:14 +00:00
|
|
|
-I$(top_srcdir)/gst-libs \
|
2009-09-05 11:46:58 +00:00
|
|
|
-I$(top_builddir)/gst-libs \
|
2012-05-05 22:26:20 +00:00
|
|
|
--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
|
|
|
|
--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
|
2012-10-29 12:47:05 +00:00
|
|
|
--library=libgstvideo-@GST_API_VERSION@.la \
|
2012-04-04 12:20:13 +00:00
|
|
|
--include=Gst-@GST_API_VERSION@ \
|
|
|
|
--include=GstBase-@GST_API_VERSION@ \
|
2014-04-18 08:37:57 +00:00
|
|
|
--libtool="${LIBTOOL}" \
|
2012-04-04 12:20:13 +00:00
|
|
|
--pkg gstreamer-@GST_API_VERSION@ \
|
|
|
|
--pkg gstreamer-base-@GST_API_VERSION@ \
|
|
|
|
--pkg-export gstreamer-video-@GST_API_VERSION@ \
|
2015-06-16 22:04:57 +00:00
|
|
|
--add-init-section="$(INTROSPECTION_INIT)" \
|
2009-09-05 09:37:14 +00:00
|
|
|
--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)
|
2011-01-08 02:10:03 +00:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
|
|
|
|
$(INTROSPECTION_COMPILER) \
|
2010-03-30 18:56:56 +00:00
|
|
|
--includedir=$(srcdir) \
|
|
|
|
--includedir=$(builddir) \
|
2012-05-05 22:26:20 +00:00
|
|
|
--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
|
|
|
|
--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
|
2010-03-30 18:56:56 +00:00
|
|
|
$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
|
2009-09-05 09:37:14 +00:00
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
|
|
|
endif
|