mirror of https://git.ffmpeg.org/ffmpeg.git
configure: disable libglslang/libshaderc if the vulkan is disabled
Fixes build failures when the Vulkan headers are too old and libglslang or libshaderc are enabled.
This commit is contained in:
parent
1e888462a1
commit
fec6e84b18
|
@ -7154,6 +7154,10 @@ if enabled vulkan; then
|
||||||
check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 255)"
|
check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 255)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if disabled vulkan; then
|
||||||
|
disable libglslang libshaderc spirv_compiler
|
||||||
|
fi
|
||||||
|
|
||||||
if enabled x86; then
|
if enabled x86; then
|
||||||
case $target_os in
|
case $target_os in
|
||||||
mingw32*|mingw64*|win32|win64|linux|cygwin*)
|
mingw32*|mingw64*|win32|win64|linux|cygwin*)
|
||||||
|
|
Loading…
Reference in New Issue