mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-09 18:00:42 +02:00
Requires meson 0.49.0, well below our current minimum of 0.60.0 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2150>
39 lines
1.3 KiB
Meson
39 lines
1.3 KiB
Meson
|
|
if build_docs_devel
|
|
foreach basename : ['Xserver-spec', 'Xinput']
|
|
|
|
input_xml = basename + '.xml'
|
|
|
|
custom_target(
|
|
basename + '.html',
|
|
output: basename + '.html',
|
|
input: [input_xml],
|
|
command: [xmlto] + docs_xmlto_search_flags + [
|
|
'-x', doc_stylesheet_srcdir / 'xorg-xhtml.xsl',
|
|
'-o', meson.current_build_dir(),
|
|
'xhtml-nochunks', '@INPUT0@'],
|
|
build_by_default: true,
|
|
install: false,
|
|
)
|
|
|
|
if build_docs_pdf
|
|
foreach format : ['ps', 'pdf']
|
|
output_fn = basename + '.' + format
|
|
custom_target(
|
|
output_fn,
|
|
output: output_fn,
|
|
input: [input_xml],
|
|
command: [xmlto] + docs_xmlto_search_flags + [
|
|
'-x', doc_stylesheet_srcdir / 'xorg-fo.xsl',
|
|
'--stringparam', 'img.src.path=' + meson.current_build_dir(),
|
|
'-o', meson.current_build_dir(),
|
|
'--with-fop', format, '@INPUT0@'],
|
|
build_by_default: true,
|
|
install: false,
|
|
)
|
|
endforeach
|
|
endif
|
|
endforeach
|
|
endif
|
|
|
|
subdir('dtrace')
|