diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-02-06 11:51:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-22 15:05:25 +0000 |
| commit | c7248cf76398f573b560ba376061aa1bc42a62cb (patch) | |
| tree | 38046542ad5af5ded5e5e26f06c19b2080f8bb05 /meson.build | |
| parent | doc + meson.build: update information about foot.ini, small cleanup (diff) | |
meson: add -Dtests=false|true option
When set to false, no test binaries are neither built, nor
executed (with “ninja test”).
Closes #919
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 7ebdb672..fb67857b 100644 --- a/meson.build +++ b/meson.build @@ -303,7 +303,10 @@ endif subdir('completions') subdir('icons') -subdir('tests') + +if (get_option('tests')) + subdir('tests') +endif summary( { @@ -315,6 +318,7 @@ summary( 'Terminfo install location': terminfo_install_location, 'Default TERM': get_option('default-terminfo'), 'Set TERMINFO': get_option('custom-terminfo-install-location') != '', + 'Build tests': get_option('tests'), }, bool_yn: true ) |
