mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-10 08:20:59 -04:00
meson: add -Dterminfo-install-location=disabled|custom-path
Add a new meson option, ‘terminfo-install-location’, that allows you to customize _where_ the terminfo files are installed, relative to the installation prefix. It also recognizes the special value ‘disabled’, in which case the terminfo files are not installed at all. The terminfo files _are_ however built (allowing us to catch build errors), and foot still defaults to the ‘foot’ terminfo. It defaults to $datadir/terminfo If (the other option) ‘terminfo’ is set to disabled (or tic cannot be found), terminfo-install-location is automatically set to ‘disabled’.
This commit is contained in:
parent
ef349bfea2
commit
6268fc536b
2 changed files with 15 additions and 3 deletions
13
meson.build
13
meson.build
|
|
@ -216,13 +216,20 @@ executable(
|
|||
install: true)
|
||||
|
||||
if tic.found()
|
||||
terminfo_install_location = get_option('terminfo-install-location')
|
||||
if terminfo_install_location == ''
|
||||
terminfo_install_location = join_paths(get_option('datadir'), 'terminfo')
|
||||
endif
|
||||
|
||||
custom_target(
|
||||
'terminfo',
|
||||
output: 'f',
|
||||
input: 'foot.info',
|
||||
command: [tic, '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'terminfo'))
|
||||
install: terminfo_install_location != 'disabled',
|
||||
install_dir: terminfo_install_location)
|
||||
else
|
||||
terminfo_install_location = 'disabled'
|
||||
endif
|
||||
|
||||
install_data(
|
||||
|
|
@ -240,6 +247,8 @@ subdir('icons')
|
|||
summary(
|
||||
{
|
||||
'IME': get_option('ime'),
|
||||
'Terminfo': tic.found(),
|
||||
'Terminfo install location': terminfo_install_location,
|
||||
},
|
||||
bool_yn: true
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue