meson: only build gtk gl examples if gst-gl was found

And fix typo in glliveshader example binary name.
This commit is contained in:
Tim-Philipp Müller 2018-10-08 20:35:15 +01:00
parent 4b570026aa
commit 1a871b1883

View file

@ -4,14 +4,16 @@ executable('gtksink', 'gtksink.c',
include_directories: [configinc],
install: false)
executable('gtkglsink', 'gtkglsink.c',
dependencies: [gst_dep, gstgl_dep, gtk_dep, x11_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)
if build_gstgl
executable('gtkglsink', 'gtkglsink.c',
dependencies: [gst_dep, gstgl_dep, gtk_dep, x11_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)
executable('glliveshaer', 'glliveshader.c',
dependencies: [gst_dep, gstgl_dep, gtk_dep, x11_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)
executable('glliveshader', 'glliveshader.c',
dependencies: [gst_dep, gstgl_dep, gtk_dep, x11_dep],
c_args: gst_plugins_good_args,
include_directories: [configinc],
install: false)
endif