mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-20 16:10:06 +01:00
25 lines
644 B
Meson
25 lines
644 B
Meson
|
|
if not get_option('documentation')
|
||
|
|
subdir_done()
|
||
|
|
endif
|
||
|
|
|
||
|
|
hugo = find_program('hugo', required : false)
|
||
|
|
if not hugo.found()
|
||
|
|
error('Program "hugo" not found or not executable. Try building with -Ddocumentation=false')
|
||
|
|
endif
|
||
|
|
|
||
|
|
hugo_script = find_program('generate-protocol-docs.sh')
|
||
|
|
|
||
|
|
src_hugo = files(
|
||
|
|
'config.toml',
|
||
|
|
'chapter.md.tmpl',
|
||
|
|
'interface.md.tmpl',
|
||
|
|
)
|
||
|
|
|
||
|
|
custom_target('hugo',
|
||
|
|
input : src_hugo + [protocol_xml],
|
||
|
|
output : [ 'doc' ],
|
||
|
|
command : [ hugo_script, '--git-repo', meson.project_source_root(), '--output-dir', meson.current_build_dir() ],
|
||
|
|
install : false,
|
||
|
|
build_by_default : true,
|
||
|
|
)
|