meson: make debug_viewer a feature option

... and disable by default.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/199>
This commit is contained in:
Tim-Philipp Müller 2020-05-27 20:59:41 +01:00
parent ca8cdfd736
commit 5a8fcfa663
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ if not get_option('validate').disabled()
subdir('validate')
endif
if get_option('debug_viewer')
if not get_option('debug_viewer').disabled()
subdir('debug-viewer')
endif
subdir('docs')

View file

@ -1,7 +1,7 @@
option('validate', type : 'feature', value : 'auto',
description : 'Build GstValidate')
option('debug_viewer', type : 'boolean', value : true,
description : 'Build GstDebugViewer')
option('debug_viewer', type : 'feature', value : 'disabled',
description : 'Build GstDebugViewer (GPLv3+)')
option('introspection', type : 'feature', value : 'auto', yield : true,
description : 'Generate gobject-introspection bindings')
option('tests', type : 'feature', value : 'auto', yield : true,