From: Xavier Claessens Date: Wed, 8 Apr 2020 16:09:10 +0000 (-0400) Subject: Meson: Change extra-checks to feature option and make it yielding X-Git-Tag: 1.19.3~943 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=c18f9d4ad44bd3bfe1b9aeb5bce3a88274221ffc;p=platform%2Fupstream%2Fgstreamer.git Meson: Change extra-checks to feature option and make it yielding --- diff --git a/meson.build b/meson.build index 0392655..60d844f 100644 --- a/meson.build +++ b/meson.build @@ -436,7 +436,7 @@ test_deps = [gmp_dep, gsl_dep, gslcblas_dep] # Used by gstinfo.c dl_dep = cc.find_library('dl', required : false) cdata.set('HAVE_DLADDR', cc.has_function('dladdr', dependencies : dl_dep)) -cdata.set('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks')) +cdata.set('GST_ENABLE_EXTRA_CHECKS', not get_option('extra-checks').disabled()) cdata.set('USE_POISONING', get_option('poisoning')) configinc = include_directories('.') diff --git a/meson_options.txt b/meson_options.txt index cc7fc0e..72c3997 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,7 +9,6 @@ option('ptp-helper-setuid-group', type : 'string', description : 'Group to switch to when installing gst-ptp-helper setuid root') option('ptp-helper-permissions', type : 'combo', choices : ['none', 'setuid-root', 'capabilities', 'auto'], value : 'auto') -option('extra-checks', type : 'boolean', value : true, description : 'Enable extra runtime checks') option('option-parsing', type : 'boolean', value : true, description: 'Enable command line option parsing') option('poisoning', type : 'boolean', value : false, description : 'Enable poisoning of deallocated objects') @@ -39,6 +38,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 : 'feature', value : 'enabled', yield : true, description : 'Enable extra runtime checks') # Common options option('package-name', type : 'string', yield : true,