1dot = find_program('dot') 2doxygen = find_program('doxygen') 3xsltproc = find_program('xsltproc') 4xmlto = find_program('xmlto') 5 6cmd = run_command(doxygen, '--version', check: true) 7message('doxygen: ' + cmd.stdout().strip()) 8vers = cmd.stdout().strip() 9if vers.version_compare('< 1.6.0') 10 error('Doxygen 1.6 or later is required for building documentation, found @0@.'.format(vers)) 11endif 12 13cmd = run_command(dot, '-V', check: true) 14message('dot: ' + cmd.stderr().strip()) 15vers = cmd.stderr().split('version')[1].strip().split(' ')[0] 16if vers.version_compare('< 2.26.0') 17 error('Dot (Graphviz) 2.26 or later is required for building documentation, found @0@.'.format(vers)) 18endif 19 20manpage_xsl = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' 21cmd = run_command(xsltproc, '--nonet', manpage_xsl) 22if cmd.returncode() != 0 23 error('The style sheet for man pages providing "@0@" was not found.'.format(manpage_xsl)) 24endif 25 26publican_install_prefix = join_paths( 27 get_option('prefix'), 28 get_option('datadir'), 29 'doc', 30 meson.project_name(), 31 'Wayland', 'en-US' 32) 33 34publican_html_dir = 'html' 35 36subdir('doxygen') 37subdir('publican') 38