mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
tic writes all our terminfo files into a subdirectory. This is difficult for meson to groc; you can for example not say output: ['f/foot', 'f/foot-direct'] This tries to workaround it by setting 'install: false' in the 'tic' custom target, and instead add two separate targets for each terminfo file. Since the compiled terminfo file 'foot' would collide with the executable 'foot', all terminfo stuff has been moved into a subdirectory.
19 lines
593 B
Meson
19 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
|