From 826847380259ce3670d522738ed99ee49b941375 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Tue, 30 Jan 2024 18:58:46 +0100 Subject: [PATCH] Allow to disable test build --- meson.build | 4 +++- meson_options.txt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 53b7522b7..523099afb 100644 --- a/meson.build +++ b/meson.build @@ -91,7 +91,9 @@ subdir('src') if get_option('examples') subdir('examples') endif -subdir('test') +if get_option('tests') + subdir('test') +endif if get_option('doc') subdir('docs') endif diff --git a/meson_options.txt b/meson_options.txt index f1bf95371..253c7739c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -18,6 +18,8 @@ option('doc', type : 'boolean', value : false, description : 'Build the documentations.') option('examples', type : 'boolean', value : true, description : 'Build the examples.') +option('tests', type : 'boolean', value : true, + description : 'Build the tests.') option('with_xapian', type : 'boolean', value: true, description: 'Build libzim with xapian support') option('test_data_dir', type : 'string', value: '',