diff options
author | Daniel Espinosa <daniel.espinosa@pwmc.mx> | 2017-05-16 11:42:12 -0500 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-21 13:56:21 +0100 |
commit | dc31671d37e720253733343d5c3444c2e676b2ed (patch) | |
tree | b146ef66a9a14342e954932652ae238b9a3d1f74 | |
parent | 378da3ffc75f365269af4ed88f95b168bb2861c6 (diff) | |
download | libgee-dc31671d37e720253733343d5c3444c2e676b2ed.tar.gz |
Meson: Enable consistency check is now possible
-rw-r--r-- | gee/meson.build | 8 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gee/meson.build b/gee/meson.build index 26bcef5..73b13a5 100644 --- a/gee/meson.build +++ b/gee/meson.build @@ -99,13 +99,19 @@ if internal_asserts_opt internal_asserts_args += ['-D','DISABLE_INTERNAL_ASSERTS'] endif +enable_consistency_check_opt = get_option ('enable-consistency-check') +enable_consistency_check_args = [] +if enable_consistency_check_opt + enable_consistency_check_args += ['-D','CONSISTENCY_CHECKS'] +endif + gee = library('gee-@0@'.format(API_VERSION), valasources + sources, version : PROJECT_VERSION, vala_header : 'gee.h', vala_vapi : 'gee-@0@.vapi'.format(API_VERSION), vala_gir : 'Gee-@0@.gir'.format(API_VERSION), - vala_args : [ '--pkg', 'geeutils'] + internal_asserts_args, + vala_args : [ '--pkg', 'geeutils'] + internal_asserts_args + enable_consistency_check_args, vala_internal_header : 'gee-internals.h', vala_internal_vapi : 'gee-internals-0.8.vapi', dependencies : [ gio, include_utils_h_dir_dep ], diff --git a/meson_options.txt b/meson_options.txt index d1bca2d..8132ec2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,3 @@ option('enable-benchmark', type : 'boolean', value : false, description : 'Enable benchmark') option('disable-internal-asserts', type : 'boolean', value : false, description : 'Disables the internal asserts') +option('enable-consistency-check', type : 'boolean', value : false, description : 'Enables (very) expensive consistency checks. It might affect the asymptotic performance.') |