mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Merge branch 'html-doc-flag' into 'main'
meson: wrap html documentation generation with gtk_doc option See merge request GNOME/glib!3399
This commit is contained in:
@@ -113,35 +113,37 @@ if get_option('man')
|
|||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# GVariant specification is currently standalone
|
if get_option('gtk_doc')
|
||||||
rst2html5 = find_program('rst2html5', 'rst2html5.py', required: false)
|
# GVariant specification is currently standalone
|
||||||
|
rst2html5 = find_program('rst2html5', 'rst2html5.py', required: false)
|
||||||
|
|
||||||
if rst2html5.found()
|
if rst2html5.found()
|
||||||
spec_path = glib_datadir / 'doc' / 'glib-2.0'
|
spec_path = glib_datadir / 'doc' / 'glib-2.0'
|
||||||
|
|
||||||
figures = files(
|
figures = files(
|
||||||
'gvariant-byte-boundaries.svg',
|
'gvariant-byte-boundaries.svg',
|
||||||
'gvariant-integer-and-string-structure.svg',
|
'gvariant-integer-and-string-structure.svg',
|
||||||
'gvariant-integer-array.svg',
|
'gvariant-integer-array.svg',
|
||||||
'gvariant-string-array.svg',
|
'gvariant-string-array.svg',
|
||||||
)
|
)
|
||||||
|
|
||||||
custom_target('gvariant-specification-1.0',
|
custom_target('gvariant-specification-1.0',
|
||||||
input: 'gvariant-specification-1.0.rst',
|
input: 'gvariant-specification-1.0.rst',
|
||||||
output: 'gvariant-specification-1.0.html',
|
output: 'gvariant-specification-1.0.html',
|
||||||
command: [
|
command: [
|
||||||
rst2html5,
|
rst2html5,
|
||||||
'@INPUT@',
|
'@INPUT@',
|
||||||
],
|
],
|
||||||
capture: true,
|
capture: true,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: spec_path,
|
install_dir: spec_path,
|
||||||
install_tag: 'doc',
|
install_tag: 'doc',
|
||||||
depend_files: figures,
|
depend_files: figures,
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data(figures,
|
install_data(figures,
|
||||||
install_dir : spec_path,
|
install_dir : spec_path,
|
||||||
install_tag : 'doc',
|
install_tag : 'doc',
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
endif
|
endif
|
Reference in New Issue
Block a user