2019-03-12 21:09:18 +00:00
|
|
|
sdl_dep = dependency('sdl2', version : '>=2.0', required : get_option('examples'))
|
2019-04-04 12:15:50 +00:00
|
|
|
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
|
2017-11-24 21:58:01 +00:00
|
|
|
executable('sdlshare',
|
|
|
|
'sdlshare.c',
|
|
|
|
install: false,
|
2021-07-15 15:09:35 +00:00
|
|
|
dependencies : [gst_base_dep, gstgl_dep, sdl_dep, gl_dep, glx_dep])
|
2017-11-24 21:58:01 +00:00
|
|
|
|
|
|
|
executable('sdlshare2',
|
|
|
|
'sdlshare2.c',
|
|
|
|
install: false,
|
2021-07-15 15:09:35 +00:00
|
|
|
dependencies : [gst_base_dep, gstgl_dep, sdl_dep, gl_dep, glx_dep])
|
2017-11-24 21:58:01 +00:00
|
|
|
endif
|