From c19b27a679a2ce59c4cc8a9b2d5753b527ed3a80 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 26 Jul 2018 08:32:31 +1000 Subject: [PATCH] doc: split the graphs into a separate array for re-use We need this in the sphinx documentation. Signed-off-by: Peter Hutterer --- doc/meson.build | 77 +++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index af4ffc76..1e73f274 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -40,6 +40,44 @@ readme = vcs_tag(command : ['git', 'log', '-1', '--format=%h'], input : '../README.md', output : 'README.md', replace_string: '__GIT_VERSION__') +src_extra = [ + # dot drawings + 'dot/seats-sketch.gv', + 'dot/seats-sketch-libinput.gv', + 'dot/libinput-stack-wayland.gv', + 'dot/libinput-stack-xorg.gv', + 'dot/libinput-stack-gnome.gv', + 'dot/evemu.gv', + # svgs + 'svg/button-debouncing-wave-diagram.svg', + 'svg/button-scrolling.svg', + 'svg/clickfinger.svg', + 'svg/clickfinger-distance.svg', + 'svg/edge-scrolling.svg', + 'svg/gesture-2fg-ambiguity.svg', + 'svg/palm-detection.svg', + 'svg/pinch-gestures.svg', + 'svg/pinch-gestures-softbuttons.svg', + 'svg/ptraccel-linear.svg', + 'svg/ptraccel-low-dpi.svg', + 'svg/ptraccel-touchpad.svg', + 'svg/ptraccel-trackpoint.svg', + 'svg/software-buttons.svg', + 'svg/swipe-gestures.svg', + 'svg/tablet-axes.svg', + 'svg/tablet-cintiq24hd-modes.svg', + 'svg/tablet-interfaces.svg', + 'svg/tablet-intuos-modes.svg', + 'svg/tablet-left-handed.svg', + 'svg/tablet-out-of-bounds.svg', + 'svg/tablet.svg', + 'svg/tap-n-drag.svg', + 'svg/thumb-detection.svg', + 'svg/top-software-buttons.svg', + 'svg/touchscreen-gestures.svg', + 'svg/trackpoint-delta-illustration.svg', + 'svg/twofinger-scrolling.svg', +] src_doxygen = files( # source files @@ -77,48 +115,13 @@ src_doxygen = files( 'touchpads.dox', 'trackpoints.dox', 'what-is-libinput.dox', - # dot drawings - 'dot/seats-sketch.gv', - 'dot/seats-sketch-libinput.gv', - 'dot/libinput-stack-wayland.gv', - 'dot/libinput-stack-xorg.gv', - 'dot/libinput-stack-gnome.gv', - 'dot/evemu.gv', - # svgs - 'svg/button-debouncing-wave-diagram.svg', - 'svg/button-scrolling.svg', - 'svg/clickfinger.svg', - 'svg/clickfinger-distance.svg', - 'svg/edge-scrolling.svg', - 'svg/gesture-2fg-ambiguity.svg', - 'svg/palm-detection.svg', - 'svg/pinch-gestures.svg', - 'svg/pinch-gestures-softbuttons.svg', - 'svg/ptraccel-linear.svg', - 'svg/ptraccel-low-dpi.svg', - 'svg/ptraccel-touchpad.svg', - 'svg/ptraccel-trackpoint.svg', - 'svg/software-buttons.svg', - 'svg/swipe-gestures.svg', - 'svg/tablet-axes.svg', - 'svg/tablet-cintiq24hd-modes.svg', - 'svg/tablet-interfaces.svg', - 'svg/tablet-intuos-modes.svg', - 'svg/tablet-left-handed.svg', - 'svg/tablet-out-of-bounds.svg', - 'svg/tablet.svg', - 'svg/tap-n-drag.svg', - 'svg/thumb-detection.svg', - 'svg/top-software-buttons.svg', - 'svg/touchscreen-gestures.svg', - 'svg/trackpoint-delta-illustration.svg', - 'svg/twofinger-scrolling.svg', # style files 'style/header.html', 'style/footer.html', 'style/customdoxygen.css', 'style/bootstrap.css', 'style/libinputdoxygen.css', + src_extra, ) doxyfiles = custom_target('doxyfiles', @@ -138,7 +141,7 @@ doxyfile = configure_file(input : 'libinput.doxygen.in', install : false) custom_target('doxygen', - input : [ doxyfile, readme, doc_git_version] + src_doxygen, + input : [ doxyfile, readme, doc_git_version] + src_doxygen + src_extra, output : [ 'Documentation' ], command : [ doxygen, doxyfile ], install : false,