meson: make debug_viewer a feature option
authorTim-Philipp Müller <tim@centricular.com>
Wed, 27 May 2020 19:59:41 +0000 (20:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 29 May 2020 14:30:26 +0000 (14:30 +0000)
... and disable by default.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/199>

meson.build
meson_options.txt

index 842d296..462f9a3 100644 (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')
index 6d06623..5da5abf 100644 (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,