aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-24 07:53:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-24 07:53:09 +0000
commitba26d6382963a10dc9fce9e4277f3b5374e98229 (patch)
tree916717ad43af3535a7b671ed7938f207c0755b6c /meson.build
parentserver: make sure ‘overrides’ have been initialized in all error paths (diff)
parentchangelog: -Dterminfo-install-location meson command line option (diff)
Merge branch 'custom-terminfo-install-location'
Closes #569
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build13
1 files changed, 11 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 479f5747..14d23975 100644
--- a/meson.build
+++ b/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
)