meson: Disable docs completely when the option is disabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1508>
This commit is contained in:
Nirbheek Chauhan 2024-03-14 15:30:17 +05:30 committed by Guillaume Desmottes
parent 6b7e41e551
commit ce2aa0aecf

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.')