vulkan: don't run tests or build lib if plugin isn't actually built
authorTim-Philipp Müller <tim@centricular.com>
Thu, 28 May 2020 18:07:32 +0000 (19:07 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 28 May 2020 18:07:32 +0000 (19:07 +0100)
commitb75ad03313f3c1cc9fd56829829b09d58aaefb99
tree278a5c26427e9aa66218c6f107e34d18c9695e23
parentaad9cf80969a983e9b3a8d04d9f86f943d97969c
vulkan: don't run tests or build lib if plugin isn't actually built

The unit tests only checked for vulkan_dep.found(), which can
be true if the libs are there but glslc was not found, in which
case the plugin wouldn't be built and the unit tests would fail
because of missing vulkan plugins.

Doesn't really make much sense to build the vulkan integration lib
either if we're not going to build the vulkan plugin, so just disable
both for now if glslc is not available.

Fixes #1301

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1307>
ext/vulkan/meson.build
gst-libs/gst/vulkan/meson.build