Commit 3f0f5180 authored by Jens Georg's avatar Jens Georg

Make fatal-warnings an option

parent ab9f99ee
Pipeline #68668 passed with stage
in 17 minutes and 9 seconds
......@@ -27,12 +27,20 @@ add_global_arguments(
'--target-glib=2.40',
'--vapidir=@0@'.format(join_paths(meson.current_source_dir(), 'vapi')),
'--enable-checking',
'--fatal-warnings',
'--enable-experimental',
],
language : 'vala'
)
if get_option('fatal_warnings')
add_global_arguments(
[
'--fatal-warnings'
],
language : 'vala'
)
endif
version_h = vcs_tag(command: ['git', 'rev-parse', 'HEAD'], input: 'version.h.in', output: 'version.h', fallback: '')
version = declare_dependency(sources : version_h, include_directories : include_directories('.'))
......
......@@ -6,5 +6,6 @@ option('measure', type: 'string', value : '', description : 'Enable various timi
option('dupe-detection', type: 'boolean', value : 'true', description: 'Disable duplicate checks')
option('udev', type: 'boolean', value : 'true', description: 'Enable or disable udev support')
option('install-apport-hook', type : 'boolean', value : 'true', description: 'Enable Ubuntu apport hook')
option('face-detection', type:'boolean', value:false)
option('face-detection', type:'boolean', value:false, description: 'Enable face detection and recognition features')
option('face-detection-helper', type : 'boolean', value : 'true', description : 'If face-detection is enabled, build the external helper tool')
option('fatal_warnings', type:'boolean', value:false)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment