diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2019-11-16 10:41:59 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-11-18 11:07:59 +0000 |
commit | 785ac8de4f86847d229d138ac5fc4898074d9cf4 (patch) | |
tree | 07030975cfdab1629f6d07b82b2b5af250f2c38d | |
parent | 32beff2ff583cbabc2e88c62cd3e2074a3b75cda (diff) |
meson: add tests option
Allow the user to disable tests through -Dtests=false
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 2e75e89..05091fb 100644 --- a/meson.build +++ b/meson.build @@ -166,7 +166,9 @@ add_project_arguments(compiler.get_supported_arguments(spice_common_global_cflag # subdir('python_modules') subdir('common') -subdir('tests') +if get_option('tests') + subdir('tests') +endif subdir('docs') # diff --git a/meson_options.txt b/meson_options.txt index 84445fc..561460f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -47,3 +47,9 @@ option('generate-code', type : 'combo', choices : ['all', 'server', 'client'], description : 'Which code should be built') + +option('tests', + type : 'boolean', + value : true, + yield : true, + description : 'Enable SPICE tests') |