summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-11-03 17:30:53 +0200
committerJan Ekström <jeebjp@gmail.com>2018-11-04 00:19:12 +0200
commit317d3ac26634d6719c2c70e3e88acbf0c108fd73 (patch)
tree2eb61194210af7b67b84e5f1898d976a0e3d4526 /wscript
parentc8a065df12f533c7efab4e3cc763bf63ef8cc11f (diff)
downloadmpv-317d3ac26634d6719c2c70e3e88acbf0c108fd73.tar.bz2
mpv-317d3ac26634d6719c2c70e3e88acbf0c108fd73.tar.xz
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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
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',