meson: add option to disable tests

This commit is contained in:
Tim-Philipp Müller 2018-11-14 10:12:40 +00:00 committed by Ebrahim Byagowi
parent d230a02048
commit 6147df337e
2 changed files with 6 additions and 3 deletions

View File

@ -238,6 +238,9 @@ endif
subdir('src')
subdir('util')
if not get_option('tests').disabled()
subdir('test')
endif
configure_file(output: 'config.h', configuration: conf)

View File

@ -23,7 +23,7 @@ option('coretext', type: 'feature', value: 'disabled',
description: 'Enable CoreText shaper backend on macOS')
# Common feature options
#option('tests', type : 'feature', value : 'auto', yield : true,
# description: 'Enable or disable unit tests')
option('tests', type : 'feature', value : 'auto', yield : true,
description: 'Enable or disable unit tests')
#option('introspection', type : 'feature', value : 'disabled', yield : true,
# description : 'Generate gobject-introspection bindings (.gir/.typelib files)')