From 9336326b3d7d188032d5793a7e8f5deecd2c647d Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 17 Jul 2019 19:12:19 +0530 Subject: [PATCH] meson: Don't generate doc cache when no plugins are enabled Fixes gst-build with -Dauto-features=disabled --- docs/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/meson.build b/docs/meson.build index 17cc4c19d5..7a1daad5cd 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -19,8 +19,9 @@ else endif plugins_cache = join_paths(meson.current_source_dir(), 'gst_plugins_cache.json') - -if plugins_cache_generator.found() +if plugins.length() == 0 + message('All good plugins have been disabled') +elif plugins_cache_generator.found() plugins_doc_dep = custom_target('good-plugins-doc-cache', command: [plugins_cache_generator, plugins_cache, '@OUTPUT@', '@INPUT@'], input: plugins,