1
2if build_docs_devel
3    foreach basename : ['Xserver-spec', 'Xinput']
4
5        input_xml = basename + '.xml'
6
7        custom_target(
8            basename + '.html',
9            output: basename + '.html',
10            input: [input_xml],
11            command: [xmlto] + docs_xmlto_search_flags + [
12                '-x',  join_paths(doc_stylesheet_srcdir, 'xorg-xhtml.xsl'),
13                '-o', meson.current_build_dir(),
14                'xhtml-nochunks', '@INPUT0@'],
15            build_by_default: true,
16            install: false,
17        )
18
19        if build_docs_pdf
20            foreach format : ['ps', 'pdf']
21                output_fn = basename + '.' + format
22                custom_target(
23                    output_fn,
24                    output: output_fn,
25                    input: [input_xml],
26                    command: [xmlto] + docs_xmlto_search_flags + [
27                        '-x',  join_paths(doc_stylesheet_srcdir, 'xorg-fo.xsl'),
28                        '--stringparam', 'img.src.path=' + meson.current_build_dir(),
29                        '-o', meson.current_build_dir(),
30                        '--with-fop', format, '@INPUT0@'],
31                    build_by_default: true,
32                    install: false,
33                )
34            endforeach
35        endif
36    endforeach
37endif
38
39subdir('dtrace')
40