mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-05 04:06:20 -05:00
doc: reinstate image maps
This fixes the errors during the compilation of Architecture.xml that the .map files cannot be found. As a result, the architure diagrams become clickable in the HTML document once again. Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
parent
573c95cb1a
commit
e1e8ccd4ae
2 changed files with 14 additions and 5 deletions
|
|
@ -25,4 +25,11 @@ foreach src : files([
|
|||
install: true,
|
||||
install_dir: publican_install_prefix + '/html/images',
|
||||
)
|
||||
|
||||
publican_image_maps += custom_target(
|
||||
input + '.map',
|
||||
command: [ dot, '-Tcmapx_np', '-o@OUTPUT@', '@INPUT@' ],
|
||||
input: input,
|
||||
output: fs.stem(src) + '.map',
|
||||
)
|
||||
endforeach
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ merge_mapcoords_xsl = files('xsl/merge-mapcoords.xsl')
|
|||
to_publican_xsl = files('xsl/doxygen-to-publican.xsl')
|
||||
|
||||
publican_inputs = []
|
||||
publican_image_maps = []
|
||||
|
||||
foreach src : files([
|
||||
'Wayland.xml', # must be first in publican_inputs
|
||||
|
|
@ -66,6 +67,9 @@ publican_inputs += custom_target(
|
|||
output: 'ServerAPI.xml'
|
||||
)
|
||||
|
||||
subdir('html/css')
|
||||
subdir('html/images')
|
||||
|
||||
foreach src : files([
|
||||
'Architecture.xml',
|
||||
'Introduction.xml'
|
||||
|
|
@ -76,18 +80,16 @@ foreach src : files([
|
|||
command: [
|
||||
xsltproc,
|
||||
'-o', '@OUTPUT@',
|
||||
'--stringparam', 'basedir', '.',
|
||||
'--stringparam', 'basedir', meson.current_build_dir() / 'html',
|
||||
merge_mapcoords_xsl,
|
||||
'@INPUT@',
|
||||
],
|
||||
input: [name],
|
||||
input: src,
|
||||
output: [name],
|
||||
depends: publican_image_maps,
|
||||
)
|
||||
endforeach
|
||||
|
||||
subdir('html/css')
|
||||
subdir('html/images')
|
||||
|
||||
custom_target(
|
||||
'Wayland-docbook-html',
|
||||
command: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue