mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-20 05:34:35 -04: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: true,
|
||||||
install_dir: publican_install_prefix + '/html/images',
|
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
|
endforeach
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ merge_mapcoords_xsl = files('xsl/merge-mapcoords.xsl')
|
||||||
to_publican_xsl = files('xsl/doxygen-to-publican.xsl')
|
to_publican_xsl = files('xsl/doxygen-to-publican.xsl')
|
||||||
|
|
||||||
publican_inputs = []
|
publican_inputs = []
|
||||||
|
publican_image_maps = []
|
||||||
|
|
||||||
foreach src : files([
|
foreach src : files([
|
||||||
'Wayland.xml', # must be first in publican_inputs
|
'Wayland.xml', # must be first in publican_inputs
|
||||||
|
|
@ -66,6 +67,9 @@ publican_inputs += custom_target(
|
||||||
output: 'ServerAPI.xml'
|
output: 'ServerAPI.xml'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
subdir('html/css')
|
||||||
|
subdir('html/images')
|
||||||
|
|
||||||
foreach src : files([
|
foreach src : files([
|
||||||
'Architecture.xml',
|
'Architecture.xml',
|
||||||
'Introduction.xml'
|
'Introduction.xml'
|
||||||
|
|
@ -76,18 +80,16 @@ foreach src : files([
|
||||||
command: [
|
command: [
|
||||||
xsltproc,
|
xsltproc,
|
||||||
'-o', '@OUTPUT@',
|
'-o', '@OUTPUT@',
|
||||||
'--stringparam', 'basedir', '.',
|
'--stringparam', 'basedir', meson.current_build_dir() / 'html',
|
||||||
merge_mapcoords_xsl,
|
merge_mapcoords_xsl,
|
||||||
'@INPUT@',
|
'@INPUT@',
|
||||||
],
|
],
|
||||||
input: [name],
|
input: src,
|
||||||
output: [name],
|
output: [name],
|
||||||
|
depends: publican_image_maps,
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
subdir('html/css')
|
|
||||||
subdir('html/images')
|
|
||||||
|
|
||||||
custom_target(
|
custom_target(
|
||||||
'Wayland-docbook-html',
|
'Wayland-docbook-html',
|
||||||
command: [
|
command: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue