meson: Add an option to activate extra checks

And activate them by default as with autotools
This commit is contained in:
Thibault Saunier 2018-05-22 16:30:58 +02:00
parent 724cc53b28
commit cc869065a5
2 changed files with 3 additions and 1 deletions

View 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')

View 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')