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