Meson: Change extra-checks to feature option and make it yielding
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 8 Apr 2020 16:10:21 +0000 (12:10 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 8 Apr 2020 18:51:12 +0000 (18:51 +0000)
meson.build
meson_options.txt

index 5f99289..fced765 100644 (file)
@@ -385,7 +385,7 @@ else
   message('Orc Compiler not found or disabled, will use backup C code')
   cdata.set('DISABLE_ORC', 1)
 endif
-cdata.set('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks'))
+cdata.set('GST_ENABLE_EXTRA_CHECKS', not get_option('extra-checks').disabled())
 
 gnustl_dep = declare_dependency()
 if host_system == 'android'
index 50de262..40b0732 100644 (file)
@@ -184,7 +184,7 @@ option('glib-asserts', type : 'feature', value : 'enabled', yield : true,
        description: 'Enable GLib assertion (auto = enabled for development, disabled for stable releases)')
 option('glib-checks', type : 'feature', value : 'enabled', yield : true,
        description: 'Enable GLib checks such as API guards (auto = enabled for development, disabled for stable releases)')
-option('extra-checks', type : 'boolean', value : true, description : 'Enable extra runtime checks')
+option('extra-checks', type : 'feature', value : 'enabled', yield : true, description : 'Enable extra runtime checks')
 
 # Common options
 option('package-name', type : 'string', yield : true,