meson: add -Dterminfo-base-name option

This defines the base name of the generated terminfo files. It
defaults to the value of -Ddefault-terminfo (i.e. 'foot')

Example:

  meson -Ddefault-terminfo=foot-bananas -Dterminfo-base-name=foot-apples

The generated terminfo files will be

* terminfo/f/foot-apples
* terminfo/f/foot-apples-direct

The default value of $TERM will be 'foot-bananas'
This commit is contained in:
Daniel Eklöf 2023-07-26 16:14:38 +02:00
parent f3c5b82c82
commit 139fd6d55c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 29 additions and 6 deletions

View file

@ -48,6 +48,11 @@
### Added
* `[tweak].bold-text-in-bright-amount` option ([#1434][1434]).
* `-Dterminfo-base-name` meson option, allowing you to name the
terminfo files to something other than `-Ddefault-terminfo`. Use
case: have foot default to using the terminfo from ncurses (`foot`,
`foot-direct`), while still packaging foot's terminfo files, but
under a different name (e.g. `foot-extra`, `foot-extra-direct`).
[1434]: https://codeberg.org/dnkl/foot/issues/1434