summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-21 12:15:27 +0100
committerGitHub <noreply@github.com>2022-04-21 12:15:27 +0100
commit4bf2d4e9b03cf60e108deae8900a8165370dc9f0 (patch)
treec6d8401f83f90a37157ea64c6d15af1cfb009a79
parent77d1a77ea20eb2e3fb3ca84a2bbe241d0d454071 (diff)
parent34ea0ad841d6f9167db391c08e6cd51471fed6be (diff)
downloadbubblewrap-4bf2d4e9b03cf60e108deae8900a8165370dc9f0.tar.gz
Merge pull request #491 from ffontaine/main
meson: add tests option
-rw-r--r--meson.build4
-rw-r--r--meson_options.txt6
2 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5b63aa6..9277ac4 100644
--- a/meson.build
+++ b/meson.build
@@ -152,4 +152,6 @@ if not meson.is_subproject()
subdir('completions')
endif
-subdir('tests')
+if get_option('tests')
+ subdir('tests')
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 2fa3a8c..a136a3c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -39,6 +39,12 @@ option(
value : 'auto',
)
option(
+ 'tests',
+ type : 'boolean',
+ description : 'build tests',
+ value : 'true',
+)
+option(
'zsh_completion',
type : 'feature',
description : 'install zsh completion script',