mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gl/build: fixed failed compilation due to missing EGLuint64KHR typedef
[Matthew Waters]: add meson differences https://bugzilla.gnome.org/show_bug.cgi?id=796820
This commit is contained in:
parent
ae5120a489
commit
48a0178857
4 changed files with 13 additions and 1 deletions
|
@ -86,7 +86,7 @@
|
|||
#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
|
||||
#endif
|
||||
|
||||
#ifdef USE_EGL_RPI
|
||||
#if !GST_GL_HAVE_EGLUINT64KHR
|
||||
typedef khronos_uint64_t EGLuint64KHR;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ G_BEGIN_DECLS
|
|||
#mesondefine GST_GL_HAVE_GLUINT64
|
||||
#mesondefine GST_GL_HAVE_GLINT64
|
||||
#mesondefine GST_GL_HAVE_EGLATTRIB
|
||||
#mesondefine GST_GL_HAVE_EGLUINT64KHR
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ glconf_options = [
|
|||
'GST_GL_HAVE_GLUINT64',
|
||||
'GST_GL_HAVE_GLINT64',
|
||||
'GST_GL_HAVE_EGLATTRIB',
|
||||
'GST_GL_HAVE_EGLUINT64KHR',
|
||||
]
|
||||
|
||||
foreach option : glconf_options
|
||||
|
@ -716,6 +717,9 @@ if build_gstgl
|
|||
if egl_dep.found() and cc.has_type('EGLAttrib', prefix : gl_include_block + egl_includes, dependencies : gl_lib_deps + [egl_dep], include_directories : gl_includes)
|
||||
glconf.set('GST_GL_HAVE_EGLATTRIB', 1)
|
||||
endif
|
||||
if egl_dep.found() and cc.has_type('EGLuint64KHR', prefix : gl_include_block + egl_includes, dependencies : gl_lib_deps + [egl_dep], include_directories : gl_includes)
|
||||
glconf.set('GST_GL_HAVE_EGLUINT64KHR', 1)
|
||||
endif
|
||||
|
||||
message('Building libgstgl with GL api: ' + ' '.join(enabled_gl_apis))
|
||||
message('Building libgstgl with GL platform: ' + ' '.join(enabled_gl_platforms))
|
||||
|
|
|
@ -897,6 +897,7 @@ GST_GL_HAVE_GLSYNC=0
|
|||
GST_GL_HAVE_GLUINT64=0
|
||||
GST_GL_HAVE_GLINT64=0
|
||||
GST_GL_HAVE_EGLATTRIB=0
|
||||
GST_GL_HAVE_EGLUINT64KHR=0
|
||||
|
||||
old_CFLAGS=$CFLAGS
|
||||
CFLAGS="$GL_CFLAGS $CFLAGS"
|
||||
|
@ -945,6 +946,11 @@ if test "x$USE_EGL" = "xyes"; then
|
|||
if test "x$ac_cv_type_EGLAttrib" = "xyes"; then
|
||||
GST_GL_HAVE_EGLATTRIB=1
|
||||
fi
|
||||
|
||||
AC_CHECK_TYPES(EGLuint64KHR, [], [], [[$EGL_INCLUDES]])
|
||||
if test "x$ac_cv_type_EGLuint64KHR" = "xyes"; then
|
||||
GST_GL_HAVE_EGLUINT64KHR=1
|
||||
fi
|
||||
fi
|
||||
|
||||
CFLAGS=$old_CFLAGS
|
||||
|
@ -958,6 +964,7 @@ GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
|
|||
#define GST_GL_HAVE_GLUINT64 $GST_GL_HAVE_GLUINT64
|
||||
#define GST_GL_HAVE_GLINT64 $GST_GL_HAVE_GLINT64
|
||||
#define GST_GL_HAVE_EGLATTRIB $GST_GL_HAVE_EGLATTRIB
|
||||
#define GST_GL_HAVE_EGLUINT64KHR $GST_GL_HAVE_EGLUINT64KHR
|
||||
"
|
||||
|
||||
AC_CONFIG_COMMANDS([gst-libs/gst/gl/gstglconfig.h], [
|
||||
|
|
Loading…
Reference in a new issue