From: Matthew Waters Date: Thu, 4 Apr 2019 12:15:50 +0000 (+1100) Subject: examples/gl/sdl: only build on glx/wgl systems X-Git-Tag: 1.19.3~511^2~1146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0863452a79cbc37aaedd24c17ed9fe1c2684e7ad;p=platform%2Fupstream%2Fgstreamer.git examples/gl/sdl: only build on glx/wgl systems The code will not work anywhere else. FIxes https://gitlab.freedesktop.org/gstreamer/gst-build/issues/22 --- diff --git a/tests/examples/gl/sdl/meson.build b/tests/examples/gl/sdl/meson.build index dd35c01..cbdc51c 100644 --- a/tests/examples/gl/sdl/meson.build +++ b/tests/examples/gl/sdl/meson.build @@ -1,5 +1,10 @@ sdl_dep = dependency('sdl', version : '>=1.2.0', required : get_option('examples')) -if sdl_dep.found() and build_gstgl +have_sdl_gl = build_gstgl and ( + enabled_gl_apis.contains('gl') and + (enabled_gl_platforms.contains('glx') or enabled_gl_platforms.contains('wgl')) and + (enabled_gl_winsys.contains('x11') or enabled_gl_winsys.contains('win32')) +) +if sdl_dep.found() and have_sdl_gl executable('sdlshare', 'sdlshare.c', install: false,