mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
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:
parent
e6f884a9e1
commit
c7248cf763
4 changed files with 20 additions and 9 deletions
|
|
@ -66,6 +66,10 @@
|
||||||
foot only supports level 1 and 2 (and not level 0), this sequence
|
foot only supports level 1 and 2 (and not level 0), this sequence
|
||||||
does not disable _modifyOtherKeys_ completely, but simply reverts it
|
does not disable _modifyOtherKeys_ completely, but simply reverts it
|
||||||
back to level 1 (the default).
|
back to level 1 (the default).
|
||||||
|
* `-Dtests=false|true` meson command line option. When disabled, test
|
||||||
|
binaries will neither be built, nor will `ninja test` attempt to
|
||||||
|
execute them. Enabled by default
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/919).
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
17
INSTALL.md
17
INSTALL.md
|
|
@ -140,14 +140,15 @@ mkdir -p bld/release && cd bld/release
|
||||||
|
|
||||||
Available compile-time options:
|
Available compile-time options:
|
||||||
|
|
||||||
| Option | Type | Default | Description | Extra dependencies |
|
| Option | Type | Default | Description | Extra dependencies |
|
||||||
|--------------------------------------|---------|-----------------------|----------------------------------|--------------------|
|
|--------------------------------------|---------|-----------------------|------------------------------------------------|--------------------|
|
||||||
| `-Ddocs` | feature | `auto` | Builds and install documentation | scdoc |
|
| `-Ddocs` | feature | `auto` | Builds and install documentation | scdoc |
|
||||||
| `-Dime` | bool | `true` | Enables IME support | None |
|
| `-Dtests` | bool | `true` | Build tests (adds a `ninja test` build target) | none |
|
||||||
| `-Dgrapheme-clustering` | feature | `auto` | Enables grapheme clustering | libutf8proc |
|
| `-Dime` | bool | `true` | Enables IME support | None |
|
||||||
| `-Dterminfo` | feature | `enabled` | Build and install terminfo files | tic (ncurses) |
|
| `-Dgrapheme-clustering` | feature | `auto` | Enables grapheme clustering | libutf8proc |
|
||||||
| `-Ddefault-terminfo` | string | `foot` | Default value of `TERM` | none |
|
| `-Dterminfo` | feature | `enabled` | Build and install terminfo files | tic (ncurses) |
|
||||||
| `-Dcustom-terminfo-install-location` | string | `${datadir}/terminfo` | Value to set `TERMINFO` to | None |
|
| `-Ddefault-terminfo` | string | `foot` | Default value of `TERM` | none |
|
||||||
|
| `-Dcustom-terminfo-install-location` | string | `${datadir}/terminfo` | Value to set `TERMINFO` to | None |
|
||||||
|
|
||||||
Documentation includes the man pages, readme, changelog and license
|
Documentation includes the man pages, readme, changelog and license
|
||||||
files.
|
files.
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,10 @@ endif
|
||||||
|
|
||||||
subdir('completions')
|
subdir('completions')
|
||||||
subdir('icons')
|
subdir('icons')
|
||||||
subdir('tests')
|
|
||||||
|
if (get_option('tests'))
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
||||||
|
|
||||||
summary(
|
summary(
|
||||||
{
|
{
|
||||||
|
|
@ -315,6 +318,7 @@ summary(
|
||||||
'Terminfo install location': terminfo_install_location,
|
'Terminfo install location': terminfo_install_location,
|
||||||
'Default TERM': get_option('default-terminfo'),
|
'Default TERM': get_option('default-terminfo'),
|
||||||
'Set TERMINFO': get_option('custom-terminfo-install-location') != '',
|
'Set TERMINFO': get_option('custom-terminfo-install-location') != '',
|
||||||
|
'Build tests': get_option('tests'),
|
||||||
},
|
},
|
||||||
bool_yn: true
|
bool_yn: true
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ option('ime', type: 'boolean', value: true,
|
||||||
option('grapheme-clustering', type: 'feature',
|
option('grapheme-clustering', type: 'feature',
|
||||||
description: 'Enables grapheme clustering using libutf8proc. Requires fcft with harfbuzz support to be useful.')
|
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('terminfo', type: 'feature', value: 'enabled', description: 'Build and install foot\'s terminfo files.')
|
||||||
option('default-terminfo', type: 'string', value: 'foot',
|
option('default-terminfo', type: 'string', value: 'foot',
|
||||||
description: 'Default value of the "term" option in foot.ini.')
|
description: 'Default value of the "term" option in foot.ini.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue