meson: Don't generate doc cache when no plugins are enabled

Fixes gst-build with -Dauto-features=disabled -Dugly=enabled
This commit is contained in:
Matthew Waters 2019-08-23 16:25:25 +10:00
parent f31f085e7b
commit 8f5b7a93b4

View file

@ -10,7 +10,9 @@ else
required: false)
endif
if plugins_cache_generator.found()
if plugins.length() == 0
message('All ugly plugins have been disabled')
elif plugins_cache_generator.found()
plugins_doc_dep = custom_target('ugly-plugins-doc-cache',
command: [plugins_cache_generator, plugins_cache, '@OUTPUT@', '@INPUT@'],
input: plugins,