mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
build: only directly link shaderc and spirv-cross on windows
See 1b035402a6
. This is only relevant if
you are using d3d11 on --vo=gpu which is windows-only. For all other
platforms, vulkan uses libplacebo which uses shaderc. mpv itself doesn't
need it in those cases.
This commit is contained in:
parent
8f1f188bd6
commit
60a31a8a28
@ -939,7 +939,7 @@ if features['sdl2-video']
|
||||
sources += files('video/out/vo_sdl.c')
|
||||
endif
|
||||
|
||||
shaderc = dependency('shaderc', required: get_option('shaderc'))
|
||||
shaderc = dependency('shaderc', required: get_option('shaderc').require(features['win32-desktop']))
|
||||
features += {'shaderc': shaderc.found()}
|
||||
if features['shaderc']
|
||||
dependencies += shaderc
|
||||
@ -958,7 +958,7 @@ if features['posix']
|
||||
features += {'posix-shm': cc.has_function('shm_open', prefix: '#include <sys/mman.h>')}
|
||||
endif
|
||||
|
||||
spirv_cross = dependency('spirv-cross-c-shared', required: get_option('spirv-cross'))
|
||||
spirv_cross = dependency('spirv-cross-c-shared', required: get_option('spirv-cross').require(features['win32-desktop']))
|
||||
features += {'spirv-cross': spirv_cross.found()}
|
||||
if features['spirv-cross']
|
||||
dependencies += spirv_cross
|
||||
|
Loading…
Reference in New Issue
Block a user