Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
meson: Don't generate doc cache when no plugins are enabled
Fixes gst-build with -Dauto-features=disabled
  • Loading branch information
nirbheek committed Jul 17, 2019
1 parent 7227feb commit 4d5d7bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/meson.build
Expand Up @@ -19,7 +19,9 @@ else
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 base plugins have been disabled')
elif plugins_cache_generator.found()
plugins_doc_dep = custom_target('base-plugins-doc-cache',
command: [plugins_cache_generator, plugins_cache, '@OUTPUT@', '@INPUT@'],
input: plugins,
Expand Down

0 comments on commit 4d5d7bf

Please sign in to comment.