From 317d3ac26634d6719c2c70e3e88acbf0c108fd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Sat, 3 Nov 2018 17:30:53 +0200 Subject: build: add a version requirement for vulkan pkg-config check `vkGetPhysicalDeviceProperties2KHR` was added in Vulkan 1.0.39, but 1.0.61 from Ubuntu Xenial (16.04) was the lowest anyone tried to build mpv with as of late, so we are marking that as the minimum required version. This fixes issues arising during build time from having too old version of vulkan available on a system, instead of causing a failure to build. --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 984fa8d083..db49f2f75b 100644 --- a/wscript +++ b/wscript @@ -807,7 +807,8 @@ video_output_features = [ }, { 'name': '--vulkan', 'desc': 'Vulkan context support', - 'func': check_pkg_config('vulkan'), + # Lowest version tested, Ubuntu 16.04's + 'func': check_pkg_config('vulkan >= 1.0.61'), }, { 'name': 'egl-helpers', 'desc': 'EGL helper functions', -- cgit v1.2.3