docs: don't exit the subdir when optional deps aren't found

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1854>
This commit is contained in:
Mathieu Duponchelle 2020-12-03 17:13:15 +01:00 committed by GStreamer Merge Bot
parent d137171f03
commit cc44634422

View file

@ -14,7 +14,6 @@ if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer') gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator') plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
else else
required_hotdoc_extensions += ['gst-extension']
plugins_cache_generator = find_program(join_paths(gst_dep.get_pkgconfig_variable('libexecdir'), 'gstreamer-' + api_version, 'gst-plugins-doc-cache-generator'), plugins_cache_generator = find_program(join_paths(gst_dep.get_pkgconfig_variable('libexecdir'), 'gstreamer-' + api_version, 'gst-plugins-doc-cache-generator'),
required: false) required: false)
endif endif
@ -59,7 +58,6 @@ foreach extension: required_hotdoc_extensions
endif endif
message('@0@ extensions not found, not building documentation requiring it'.format(extension)) message('@0@ extensions not found, not building documentation requiring it'.format(extension))
subdir_done()
endif endif
endforeach endforeach
@ -68,7 +66,7 @@ if not build_gir
error('Documentation enabled but introspection not built.') error('Documentation enabled but introspection not built.')
endif endif
message('Introspection not built, can\'t build the documentation') message('Introspection not built, won\'t build documentation requiring it')
subdir_done() subdir_done()
endif endif