meson: Add an option to activate extra checks
authorThibault Saunier <tsaunier@igalia.com>
Tue, 22 May 2018 14:30:58 +0000 (16:30 +0200)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 22 May 2018 14:31:21 +0000 (16:31 +0200)
And activate them by default as with autotools

meson.build
meson_options.txt

index 2ae7053..74300ec 100644 (file)
@@ -377,7 +377,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.set10('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks'))
 
 configinc = include_directories('.')
 libsinc = include_directories('libs')
index b5bad0a..455b46f 100644 (file)
@@ -24,3 +24,5 @@ option('package-name', type : 'string', yield : true,
        description : 'package name to use in plugins')
 option('package-origin', type : 'string', value : 'Unknown package origin', yield : true,
        description : 'package origin URL to use in plugins')
+option('extra-checks', type : 'boolean', value : true,
+        description : 'Enable extra runtime checks')