summaryrefslogtreecommitdiff
path: root/docs/meson.build
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-08-23 16:25:25 +1000
committerMatthew Waters <matthew@centricular.com>2019-08-23 16:25:25 +1000
commit8f5b7a93b43441f18af079dc24a5d5b23b5ad93b (patch)
tree230d11f9a94f6387732dc1d881f1f0e6398a16a6 /docs/meson.build
parentf31f085e7bec95422f95056e2391fe1b7c26ee32 (diff)
meson: Don't generate doc cache when no plugins are enabled
Fixes gst-build with -Dauto-features=disabled -Dugly=enabled
Diffstat (limited to 'docs/meson.build')
-rw-r--r--docs/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/meson.build b/docs/meson.build
index 842ed728..07a0f12c 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -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,