mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-16 22:05:55 -05:00
26 lines
624 B
Meson
26 lines
624 B
Meson
if not get_option('libraries')
|
|
error('-Ddocumentation=true requires -Dlibraries=true')
|
|
endif
|
|
|
|
doxygen = find_program('doxygen')
|
|
mdbook = find_program('mdbook')
|
|
|
|
cmd = run_command(doxygen, '--version', check: true)
|
|
message('doxygen: ' + cmd.stdout().strip())
|
|
vers = cmd.stdout().strip()
|
|
if vers.version_compare('< 1.6.0')
|
|
error('Doxygen 1.6 or later is required for building documentation, found @0@.'.format(vers))
|
|
endif
|
|
|
|
publican_install_prefix = join_paths(
|
|
get_option('prefix'),
|
|
get_option('datadir'),
|
|
'doc',
|
|
meson.project_name(),
|
|
'Wayland', 'en-US'
|
|
)
|
|
|
|
publican_html_dir = 'html'
|
|
|
|
subdir('doxygen')
|
|
subdir('book')
|