mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-02 11:56:38 +02:00
meson: wrap html documentation generation with gtk_doc option
By default, if a host environment has the `rst2html5` application available, builds will automatically perform some HTML documentation generation from the documentation's glib reference content (e.g. creating `gvariant-specification-1.0.html`). The creation of this documentation is not required for all use cases. This commit tweaks the building of the HTML-based GLIB specification document to be guarded by `gtk_doc`. Signed-off-by: James Knight <james.d.knight@live.com>
This commit is contained in:
@@ -113,6 +113,7 @@ if get_option('man')
|
|||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('gtk_doc')
|
||||||
# GVariant specification is currently standalone
|
# GVariant specification is currently standalone
|
||||||
rst2html5 = find_program('rst2html5', 'rst2html5.py', required: false)
|
rst2html5 = find_program('rst2html5', 'rst2html5.py', required: false)
|
||||||
|
|
||||||
@@ -145,3 +146,4 @@ if rst2html5.found()
|
|||||||
install_tag : 'doc',
|
install_tag : 'doc',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
Reference in New Issue
Block a user