meson: Build gl/sdl examples

This commit is contained in:
Nicolas Dufresne 2017-11-24 16:58:01 -05:00 committed by Tim-Philipp Müller
parent a4834c4352
commit dea918a835
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# FIXME - Add other missing examples!
#subdir('clutter')
#subdir('cocoa')
#subdir('generic')
#subdir('gtk')
#subdir('qt')
subdir('sdl')

View file

@ -0,0 +1,16 @@
sdl_dep = dependency('sdl', version : '>=1.2.0', required : false)
if sdl_dep.found() and build_gstgl
executable('sdlshare',
'sdlshare.c',
install: false,
dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
c_args : ['-DGST_USE_UNSTABLE_API', ],
)
executable('sdlshare2',
'sdlshare2.c',
install: false,
dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
c_args : ['-DGST_USE_UNSTABLE_API', ],
)
endif