mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
20 lines
593 B
Meson
20 lines
593 B
Meson
|
|
tic = find_program('tic', native: true)
|
||
|
|
|
||
|
|
tic_generated = custom_target(
|
||
|
|
'terminfo',
|
||
|
|
output: 'f',
|
||
|
|
input: 'foot.info',
|
||
|
|
command: [tic, '-x', '-o', '@OUTDIR@', '-e', 'foot,foot-direct', '@INPUT@'],
|
||
|
|
install: false,
|
||
|
|
install_dir: join_paths(get_option('datadir'), 'terminfo'))
|
||
|
|
|
||
|
|
foreach terminfo : ['foot', 'foot-direct']
|
||
|
|
custom_target(
|
||
|
|
'terminfo-@0@'.format(terminfo),
|
||
|
|
output: terminfo,
|
||
|
|
input: tic_generated,
|
||
|
|
command: ['cp', join_paths('@INPUT@', terminfo), '@OUTPUT@'],
|
||
|
|
install: true,
|
||
|
|
install_dir: join_paths(get_option('datadir'), 'terminfo', 'f'))
|
||
|
|
endforeach
|