meson: add option to disable tests

This commit is contained in:
Tim-Philipp Müller authored and Ebrahim Byagowi committed 2020-03-11 19:18:57 +03:30
1 parent d230a02048
commit 6147df337e
2 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -238,6 +238,9 @@ endif
subdir('src')
subdir('util')
subdir('test')
if not get_option('tests').disabled()
subdir('test')
endif
configure_file(output: 'config.h', configuration: conf)
+2 -2
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)')