summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-08-23 17:08:20 +1000
committerMatthew Waters <matthew@centricular.com>2019-08-23 17:10:10 +1000
commit2b478d3423f75bb81b1bab2ce44f007701ba5825 (patch)
treeba33b510295c8ef4bb788295d9c13d94ffdc90eb /docs
parentbd3caf0c04393905e7316aefff5df4134bebd63d (diff)
meson: Don't generate doc cache when no plugins are enabled
Fixes gst-build with -Dauto-features=disabled -Dbad=enabled
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/meson.build b/docs/meson.build
index eed5f6ecb..b3d14d7e1 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -21,7 +21,9 @@ endif
plugins_cache = join_paths(meson.current_source_dir(), 'plugins', 'gst_plugins_cache.json')
-if plugins_cache_generator.found()
+if plugins.length() == 0
+ message('All bad plugins have been disabled')
+elif plugins_cache_generator.found()
plugins_doc_dep = custom_target('bad-plugins-doc-cache',
command: [plugins_cache_generator, plugins_cache, '@OUTPUT@', '@INPUT@'],
input: plugins,