doc: add meson.build for book

Signed-off-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
Julian Orth 2026-01-31 11:41:32 +01:00
parent 8d6af84b9e
commit 94dd263f1f
3 changed files with 71 additions and 2 deletions

View file

@ -78,10 +78,10 @@ workflow:
variables:
BUILD_OS: debian
FDO_DISTRIBUTION_VERSION: trixie
FDO_DISTRIBUTION_PACKAGES: 'build-essential pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl meson ninja-build'
FDO_DISTRIBUTION_PACKAGES: 'build-essential pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl mdbook meson ninja-build'
# bump this tag every time you change something which requires rebuilding the
# base image
FDO_DISTRIBUTION_TAG: "2025-12-27.0"
FDO_DISTRIBUTION_TAG: "2026-01-31.0"
.debian-x86_64:
extends:

67
doc/book/meson.build Normal file
View file

@ -0,0 +1,67 @@
srcs = files(
'src/Protocol.md',
'src/Foreword.md',
'src/Xwayland.md',
'src/SUMMARY.md',
'src/Content_Updates.md',
'src/Color.md',
'src/Message_XML.md',
'src/Architecture.md',
'src/Introduction.md',
'src/images/content-updates/sync-to-desync-subsurf-3.png',
'src/images/content-updates/sync-subsurf-case1.drawio',
'src/images/content-updates/sync-subsurf-case2-2.png',
'src/images/content-updates/simple-synchronized-state-4.png',
'src/images/content-updates/sync-subsurf-case2-3.png',
'src/images/content-updates/simple-desynchronized.drawio',
'src/images/content-updates/sync-to-desync-transition-2.png',
'src/images/content-updates/simple-desynchronized-state-4.png',
'src/images/content-updates/simple-synchronized-state-3.png',
'src/images/content-updates/simple-synchronized.drawio',
'src/images/content-updates/simple-synchronized-state-1.png',
'src/images/content-updates/sync-subsurf-case1-4.png',
'src/images/content-updates/sync-to-desync-subsurf-1.png',
'src/images/content-updates/simple-desynchronized-state-1.png',
'src/images/content-updates/simple-desynchronized-state-3.png',
'src/images/content-updates/sync-subsurf-case2.drawio',
'src/images/content-updates/simple-desynchronized-state-6.png',
'src/images/content-updates/sync-subsurf-case1-2.png',
'src/images/content-updates/sync-subsurf-case1-1.png',
'src/images/content-updates/simple-synchronized-state-5.png',
'src/images/content-updates/simple-synchronized-state-2.png',
'src/images/content-updates/simple-desynchronized-state-2.png',
'src/images/content-updates/content-update-legend.png',
'src/images/content-updates/sync-to-desync-subsurf.drawio',
'src/images/content-updates/sync-to-desync-subsurf-2.png',
'src/images/content-updates/sync-to-desync-transition-3.png',
'src/images/content-updates/sync-subsurf-case2-1.png',
'src/images/content-updates/content-updates.drawio',
'src/images/content-updates/sync-subsurf-case1-5.png',
'src/images/content-updates/sync-subsurf-case1-3.png',
'src/images/content-updates/sync-to-desync-transition.drawio',
'src/images/content-updates/simple-desynchronized-state-5.png',
'src/images/content-updates/sync-to-desync-transition-1.png',
'src/images/icon.svg',
'src/images/x-architecture.gv',
'src/images/x-architecture.png',
'src/images/wayland.png',
'src/images/wayland-architecture.gv',
'src/images/wayland-architecture.png',
'src/images/xwayland-architecture.png',
'src/Compositors.md',
)
custom_target(
'Wayland-book',
command: [
mdbook,
'build',
'-d', meson.current_build_dir() / 'book',
meson.current_source_dir(),
],
depend_files: srcs,
output: 'book',
build_by_default: true,
install: true,
install_dir: publican_install_prefix,
)

View file

@ -6,6 +6,7 @@ dot = find_program('dot')
doxygen = find_program('doxygen')
xsltproc = find_program('xsltproc')
xmlto = find_program('xmlto')
mdbook = find_program('mdbook')
cmd = run_command(doxygen, '--version', check: true)
message('doxygen: ' + cmd.stdout().strip())
@ -39,3 +40,4 @@ publican_html_dir = 'html'
subdir('doxygen')
subdir('publican')
subdir('book')