This allows consumers of the gstgl dependency where gstgl is optional
to do things like:
config_data.set('HAVE_GST_GL', gstgl_dep.found())
deps = [gstvideo_dep, gstgl_dep]
meaning they can still use the dep unconditionally. With the
disabler we would just disable the whole target even if the
gstgl part was an optional extra. We can add an option to
dependency() later to let users/consumers of the dep decide
if they want a not-found dependency or a disabler instead.
if get_option('gl').disabled()
message('GStreamer OpenGL integration disabled via options.')
- gstgl_dep = disabler()
+ gstgl_dep = dependency('', required: false)
build_gstgl = false
subdir_done()
endif
subdir('encoding')
subdir('fft')
subdir('gio')
-subdir('gl')
+if build_gstgl
+ subdir('gl')
+endif
subdir('overlay')
subdir('playback')
subdir('playrec')