2008-01-17 23:23:31 +00:00
|
|
|
|
2012-05-29 07:55:44 +00:00
|
|
|
lib_LTLIBRARIES = libgstgl-@GST_API_VERSION@.la
|
2008-01-17 23:23:31 +00:00
|
|
|
|
2013-07-11 09:03:31 +00:00
|
|
|
SUBDIRS = glprototypes
|
2017-02-28 10:31:54 +00:00
|
|
|
DIST_SUBDIRS = glprototypes android x11 win32 cocoa wayland dispmanx egl eagl viv-fb
|
2009-01-09 03:18:47 +00:00
|
|
|
|
2014-11-07 10:41:01 +00:00
|
|
|
built_sys_header_configure = gstglconfig.h
|
2013-12-25 23:35:50 +00:00
|
|
|
|
2012-05-29 07:55:44 +00:00
|
|
|
libgstgl_@GST_API_VERSION@_la_SOURCES = \
|
2008-01-31 20:21:26 +00:00
|
|
|
gstgldisplay.c \
|
2013-08-14 00:44:19 +00:00
|
|
|
gstglcontext.c \
|
2015-10-01 15:01:42 +00:00
|
|
|
gstgldebug.c \
|
2015-12-14 01:59:02 +00:00
|
|
|
gstglbasememory.c \
|
2015-12-14 02:08:10 +00:00
|
|
|
gstglbuffer.c \
|
2012-07-06 08:22:22 +00:00
|
|
|
gstglmemory.c \
|
2015-12-14 02:43:59 +00:00
|
|
|
gstglmemorypbo.c \
|
2016-07-11 12:31:04 +00:00
|
|
|
gstglrenderbuffer.c \
|
2012-07-06 09:05:03 +00:00
|
|
|
gstglbufferpool.c \
|
2008-07-18 08:49:34 +00:00
|
|
|
gstglfilter.c \
|
2015-12-14 02:43:59 +00:00
|
|
|
gstglformat.c \
|
2015-02-10 14:48:11 +00:00
|
|
|
gstglbasefilter.c \
|
2015-07-22 17:33:12 +00:00
|
|
|
gstglshader.c \
|
2015-11-10 02:11:37 +00:00
|
|
|
gstglshaderstrings.c \
|
2015-08-20 05:11:06 +00:00
|
|
|
gstglsl.c \
|
2015-09-04 04:36:47 +00:00
|
|
|
gstglslstage.c \
|
2015-07-22 17:33:12 +00:00
|
|
|
gstglcolorconvert.c \
|
|
|
|
gstglupload.c \
|
|
|
|
gstglwindow.c \
|
|
|
|
gstglapi.c \
|
|
|
|
gstglfeature.c \
|
|
|
|
gstglutils.c \
|
|
|
|
gstglframebuffer.c \
|
|
|
|
gstglsyncmeta.c \
|
|
|
|
gstglviewconvert.c \
|
2015-08-10 18:48:58 +00:00
|
|
|
gstgloverlaycompositor.c \
|
2017-01-10 01:51:51 +00:00
|
|
|
gstglquery.c
|
2008-01-17 23:23:31 +00:00
|
|
|
|
2014-03-17 09:56:39 +00:00
|
|
|
libgstgl_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl
|
|
|
|
libgstgl_@GST_API_VERSION@include_HEADERS = \
|
|
|
|
gstglwindow.h \
|
|
|
|
gstgldisplay.h \
|
|
|
|
gstglcontext.h \
|
2015-10-01 15:01:42 +00:00
|
|
|
gstgldebug.h \
|
2015-12-14 01:59:02 +00:00
|
|
|
gstglbasememory.h \
|
2015-12-14 02:08:10 +00:00
|
|
|
gstglbuffer.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gstglmemory.h \
|
2015-12-14 02:43:59 +00:00
|
|
|
gstglmemorypbo.h \
|
2016-07-11 12:31:04 +00:00
|
|
|
gstglrenderbuffer.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gstglbufferpool.h \
|
|
|
|
gstglfilter.h \
|
2015-12-14 02:43:59 +00:00
|
|
|
gstglformat.h \
|
2017-08-25 19:37:39 +00:00
|
|
|
gstglfuncs.h \
|
2015-02-10 14:48:11 +00:00
|
|
|
gstglbasefilter.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gstglshader.h \
|
2015-11-10 02:11:37 +00:00
|
|
|
gstglshaderstrings.h \
|
2015-08-20 05:11:06 +00:00
|
|
|
gstglsl.h \
|
2015-09-04 04:36:47 +00:00
|
|
|
gstglslstage.h \
|
2014-04-01 02:30:51 +00:00
|
|
|
gstglcolorconvert.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gstglupload.h \
|
|
|
|
gstglapi.h \
|
|
|
|
gstglfeature.h \
|
|
|
|
gstglutils.h \
|
|
|
|
gstglframebuffer.h \
|
2014-10-17 13:22:24 +00:00
|
|
|
gstglsyncmeta.h \
|
2015-05-29 16:21:43 +00:00
|
|
|
gstglviewconvert.h \
|
2015-07-21 07:34:27 +00:00
|
|
|
gstgloverlaycompositor.h \
|
2016-01-08 07:36:54 +00:00
|
|
|
gstglquery.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gstgl_fwd.h \
|
2015-11-10 02:13:50 +00:00
|
|
|
gstgl_enums.h \
|
2014-03-17 09:56:39 +00:00
|
|
|
gl.h
|
|
|
|
|
2016-02-18 08:29:21 +00:00
|
|
|
noinst_HEADERS = \
|
2017-08-14 08:33:38 +00:00
|
|
|
gstglcontext_private.h \
|
2016-10-27 05:19:04 +00:00
|
|
|
gstglfeature_private.h \
|
2016-02-18 08:29:21 +00:00
|
|
|
gstglsl_private.h \
|
2017-08-14 08:33:38 +00:00
|
|
|
gstglwindow_private.h \
|
2017-01-13 01:49:37 +00:00
|
|
|
gstglutils_private.h \
|
2016-02-18 08:33:20 +00:00
|
|
|
utils/opengl_versions.h \
|
|
|
|
utils/gles_versions.h
|
2016-02-18 08:29:21 +00:00
|
|
|
|
|
|
|
|
2012-11-19 11:54:19 +00:00
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD = \
|
2014-03-17 14:16:13 +00:00
|
|
|
$(GMODULE_NO_EXPORT_LIBS) \
|
2012-11-28 14:01:59 +00:00
|
|
|
$(GST_PLUGINS_BASE_LIBS) \
|
|
|
|
-lgstvideo-$(GST_API_VERSION) \
|
|
|
|
$(GST_BASE_LIBS) \
|
|
|
|
$(GST_LIBS) \
|
2017-02-22 12:55:58 +00:00
|
|
|
$(GL_LIBS) \
|
|
|
|
$(top_builddir)/gst-libs/gst/allocators/libgstbadallocators-@GST_API_VERSION@.la
|
2012-11-19 11:54:19 +00:00
|
|
|
|
2012-11-13 11:12:20 +00:00
|
|
|
if HAVE_WINDOW_WIN32
|
2012-11-19 11:54:19 +00:00
|
|
|
SUBDIRS += win32
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += win32/libgstgl-win32.la
|
2012-11-15 02:17:59 +00:00
|
|
|
endif
|
|
|
|
|
2012-11-13 11:12:20 +00:00
|
|
|
if HAVE_WINDOW_COCOA
|
2012-11-19 11:54:19 +00:00
|
|
|
SUBDIRS += cocoa
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += cocoa/libgstgl-cocoa.la
|
2009-04-13 05:24:06 +00:00
|
|
|
endif
|
2012-11-15 02:17:59 +00:00
|
|
|
|
2012-11-13 11:12:20 +00:00
|
|
|
if HAVE_WINDOW_X11
|
2012-11-19 11:54:19 +00:00
|
|
|
SUBDIRS += x11
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += x11/libgstgl-x11.la
|
2009-09-01 12:21:39 +00:00
|
|
|
endif
|
2009-04-13 05:24:06 +00:00
|
|
|
|
2012-11-28 14:01:59 +00:00
|
|
|
if HAVE_WINDOW_WAYLAND
|
|
|
|
SUBDIRS += wayland
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += wayland/libgstgl-wayland.la
|
|
|
|
endif
|
|
|
|
|
2013-08-30 13:12:37 +00:00
|
|
|
if HAVE_WINDOW_DISPMANX
|
|
|
|
SUBDIRS += dispmanx
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += dispmanx/libgstgl-dispmanx.la
|
|
|
|
endif
|
|
|
|
|
2013-07-10 09:31:17 +00:00
|
|
|
if HAVE_WINDOW_ANDROID
|
|
|
|
SUBDIRS += android
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += android/libgstgl-android.la
|
2013-07-03 07:12:39 +00:00
|
|
|
endif
|
|
|
|
|
2014-04-12 19:43:50 +00:00
|
|
|
if HAVE_WINDOW_EAGL
|
|
|
|
SUBDIRS += eagl
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += eagl/libgstgl-eagl.la
|
|
|
|
endif
|
|
|
|
|
2017-02-17 10:24:58 +00:00
|
|
|
if HAVE_WINDOW_VIV_FB
|
|
|
|
SUBDIRS += viv-fb
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += viv-fb/libgstgl-viv-fb.la
|
|
|
|
endif
|
|
|
|
|
2013-07-10 09:31:17 +00:00
|
|
|
if USE_EGL
|
2014-03-24 12:12:42 +00:00
|
|
|
SUBDIRS += egl
|
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += egl/libgstgl-egl.la
|
2015-10-02 11:31:39 +00:00
|
|
|
libgstgl_@GST_API_VERSION@_la_LIBADD += -lgstallocators-$(GST_API_VERSION)
|
2013-07-03 07:12:39 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-07 10:41:01 +00:00
|
|
|
configexecincludedir = $(libdir)/gstreamer-@GST_API_VERSION@/include/gst/gl
|
|
|
|
nodist_configexecinclude_HEADERS = $(built_sys_header_configure)
|
2013-12-25 23:35:50 +00:00
|
|
|
|
2012-05-29 07:55:44 +00:00
|
|
|
libgstgl_@GST_API_VERSION@_la_CFLAGS = \
|
2016-10-28 01:47:56 +00:00
|
|
|
-DGST_EXPORTS \
|
2013-07-11 09:03:31 +00:00
|
|
|
-I$(top_srcdir)/gst-libs \
|
2014-03-24 16:33:00 +00:00
|
|
|
-I$(top_builddir)/gst-libs \
|
2012-11-19 11:54:19 +00:00
|
|
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
|
|
|
$(GST_BASE_CFLAGS) \
|
2012-11-28 14:01:59 +00:00
|
|
|
$(GST_CFLAGS) \
|
|
|
|
$(GL_CFLAGS)
|
2008-01-17 23:23:31 +00:00
|
|
|
|
2012-05-29 07:55:44 +00:00
|
|
|
libgstgl_@GST_API_VERSION@_la_LDFLAGS = \
|
2012-11-19 11:54:19 +00:00
|
|
|
$(GST_LIB_LDFLAGS) \
|
|
|
|
$(GST_ALL_LDFLAGS) \
|
|
|
|
$(GST_LT_LDFLAGS)
|
2013-12-25 23:35:50 +00:00
|
|
|
|
|
|
|
# DISTCLEANFILES is for files generated by configure
|
2014-11-07 10:41:01 +00:00
|
|
|
DISTCLEANFILES = $(built_sys_header_configure)
|
2014-07-02 10:49:44 +00:00
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
BUILT_GIRSOURCES = GstGL-@GST_API_VERSION@.gir
|
|
|
|
|
|
|
|
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstgl_@GST_API_VERSION@include_HEADERS))
|
|
|
|
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstgl_@GST_API_VERSION@_la_SOURCES))
|
|
|
|
|
|
|
|
GstGL-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstgl-@GST_API_VERSION@.la
|
2015-03-31 09:24:57 +00:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
|
2014-07-02 10:49:44 +00:00
|
|
|
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
|
2016-05-23 23:55:11 +00:00
|
|
|
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
|
2014-07-02 10:49:44 +00:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace GstGL \
|
|
|
|
--nsversion=@GST_API_VERSION@ \
|
2015-12-02 07:20:45 +00:00
|
|
|
--identifier-prefix=Gst \
|
|
|
|
--symbol-prefix=gst \
|
2014-07-02 10:49:44 +00:00
|
|
|
--warn-all \
|
|
|
|
--c-include "gst/gl/gl.h" \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
|
|
|
-I$(top_builddir)/gst-libs \
|
|
|
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
2015-09-30 06:36:15 +00:00
|
|
|
$(GL_CFLAGS) \
|
2014-07-02 10:49:44 +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@` \
|
2016-11-17 15:41:00 +00:00
|
|
|
--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
|
2014-07-02 10:49:44 +00:00
|
|
|
--library=libgstgl-@GST_API_VERSION@.la \
|
|
|
|
--include=Gst-@GST_API_VERSION@ \
|
|
|
|
--include=GstBase-@GST_API_VERSION@ \
|
2016-11-03 05:12:32 +00:00
|
|
|
--include=GstVideo-@GST_API_VERSION@ \
|
2014-07-02 10:49:44 +00:00
|
|
|
--libtool="$(top_builddir)/libtool" \
|
|
|
|
--pkg gstreamer-@GST_API_VERSION@ \
|
|
|
|
--pkg gstreamer-base-@GST_API_VERSION@ \
|
|
|
|
--pkg gstreamer-video-@GST_API_VERSION@ \
|
|
|
|
--pkg-export gstreamer-gl-@GST_API_VERSION@ \
|
2016-01-19 08:39:58 +00:00
|
|
|
--add-init-section="$(INTROSPECTION_INIT)" \
|
2014-07-02 10:49:44 +00:00
|
|
|
-DGST_USE_UNSTABLE_API \
|
|
|
|
--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@` \
|
|
|
|
--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
|
2016-11-17 15:41:00 +00:00
|
|
|
--includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
|
2014-07-02 10:49:44 +00:00
|
|
|
$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
|
|
|
endif
|