meson: Disable docs completely when the option is disabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1496>
This commit is contained in:
Nirbheek Chauhan 2024-03-14 15:30:17 +05:30
parent 8f997ea4e3
commit 6f8fc5f178

View file

@ -1,5 +1,9 @@
build_hotdoc = false
if get_option('doc').disabled()
subdir_done()
endif
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')