meson: add -Dtests=false|true option

When set to false, no test binaries are neither built, nor
executed (with “ninja test”).

Closes #919
This commit is contained in:
Daniel Eklöf 2022-02-06 12:51:54 +01:00
parent e6f884a9e1
commit c7248cf763
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 20 additions and 9 deletions

View file

@ -10,6 +10,8 @@ option('ime', type: 'boolean', value: true,
option('grapheme-clustering', type: 'feature',
description: 'Enables grapheme clustering using libutf8proc. Requires fcft with harfbuzz support to be useful.')
option('tests', type: 'boolean', value: true, description: 'Build tests')
option('terminfo', type: 'feature', value: 'enabled', description: 'Build and install foot\'s terminfo files.')
option('default-terminfo', type: 'string', value: 'foot',
description: 'Default value of the "term" option in foot.ini.')