Commit aefb0fb9 authored by Adam Duskett's avatar Adam Duskett

Add Bool option for tests

Currently, there is no way to prevent tests from building using meson.
When cross-compiling, building the tests aren't necessary, and would require
gobject-introspection also to be made with tests.
parent 2a3742a0
Pipeline #69871 passed with stages
in 11 minutes and 23 seconds
......@@ -174,4 +174,7 @@ configure_file(input : 'PKG-INFO.in',
subdir('gi')
subdir('pygtkcompat')
with_tests = get_option('tests')
if with_tests
subdir('tests')
endif
option('python', type : 'string', value : 'python3')
option('pycairo', type : 'boolean', value : true, description : 'build with pycairo integration')
option('tests', type : 'boolean', value : true, description : 'build unit tests')
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