diff options
-rw-r--r-- | meson.build | 6 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 2e656b4..13022e0 100644 --- a/meson.build +++ b/meson.build @@ -42,8 +42,10 @@ python = import('python').find_installation( python.install_sources(sources, preserve_path: true) -subdir('tests') - +if get_option('tests').enabled() + subdir('tests') +endif + # Local Variables: # eval: (remove-hook 'before-save-hook 'fmt-current-buffer t) # End: diff --git a/meson_options.txt b/meson_options.txt index 8fa6217..3d46c27 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,3 @@ option('client', type: 'feature', value: 'disabled') option('server', type: 'feature', value: 'disabled') +option('tests', type: 'feature', value: 'disabled') |