mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
meson: add -Ddocs=disabled|enabled|auto command line option
When enabled (the default, if scdoc is found), we build and install the man pages, example foot.ini, readme, changelog and license files.
This commit is contained in:
parent
b8d68afbb9
commit
7c686208a1
4 changed files with 18 additions and 6 deletions
15
meson.build
15
meson.build
|
|
@ -238,20 +238,25 @@ else
|
|||
terminfo_install_location = 'disabled'
|
||||
endif
|
||||
|
||||
install_data(
|
||||
'LICENSE', 'README.md', 'CHANGELOG.md',
|
||||
install_dir: join_paths(get_option('datadir'), 'doc', 'foot'))
|
||||
install_data(
|
||||
'foot.desktop', 'foot-server.desktop',
|
||||
install_dir: join_paths(get_option('datadir'), 'applications'))
|
||||
install_data('foot.ini', install_dir: join_paths(get_option('datadir'), 'foot'))
|
||||
|
||||
scdoc = dependency('scdoc', native: true, required: get_option('docs'))
|
||||
if scdoc.found()
|
||||
install_data(
|
||||
'LICENSE', 'README.md', 'CHANGELOG.md',
|
||||
install_dir: join_paths(get_option('datadir'), 'doc', 'foot'))
|
||||
install_data('foot.ini', install_dir: join_paths(get_option('datadir'), 'foot'))
|
||||
subdir('doc')
|
||||
endif
|
||||
|
||||
subdir('completions')
|
||||
subdir('doc')
|
||||
subdir('icons')
|
||||
|
||||
summary(
|
||||
{
|
||||
'Documentation': scdoc.found(),
|
||||
'IME': get_option('ime'),
|
||||
'Grapheme clustering': utf8proc.found(),
|
||||
'Terminfo': tic.found(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue