mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-21 23:19:24 -04:00
build: Make tests optional
When used as a subproject, there is little point in adding tests to the parent project's test suite. Even if the tests caught an error, it wouldn't be in the position of fixing it. So add a build option that allows parent projects to turn off tests.
This commit is contained in:
parent
5c7fb03da7
commit
eb16b36405
2 changed files with 4 additions and 1 deletions
|
@ -42,4 +42,6 @@ else
|
|||
install_subdir('blueprintcompiler', install_dir: py.get_install_dir())
|
||||
endif
|
||||
|
||||
subdir('tests')
|
||||
if get_option('tests')
|
||||
subdir('tests')
|
||||
endif
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
option('docs', type: 'boolean', value: false)
|
||||
option('tests', type: 'boolean', value: true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue