mirror of https://github.com/mpv-player/mpv
ci/mingw: enable nvdec
Install the nv-codec-headers to enable nvdec for ffmpeg. This allows the CI build to enable hwdec on opengl and vulkan contexts.
This commit is contained in:
parent
1a649afbad
commit
a81212836d
|
@ -161,6 +161,14 @@ _spirv_cross () {
|
||||||
}
|
}
|
||||||
_spirv_cross_mark=lib/libspirv-cross-c-shared.dll.a
|
_spirv_cross_mark=lib/libspirv-cross-c-shared.dll.a
|
||||||
|
|
||||||
|
_nv_headers () {
|
||||||
|
[ -d nv-codec-headers ] || $gitclone https://github.com/FFmpeg/nv-codec-headers
|
||||||
|
pushd nv-codec-headers
|
||||||
|
makeplusinstall
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
_nv_headers_mark=include/ffnvcodec/dynlink_loader.h
|
||||||
|
|
||||||
_vulkan_headers () {
|
_vulkan_headers () {
|
||||||
[ -d Vulkan-Headers ] || $gitclone https://github.com/KhronosGroup/Vulkan-Headers
|
[ -d Vulkan-Headers ] || $gitclone https://github.com/KhronosGroup/Vulkan-Headers
|
||||||
builddir Vulkan-Headers
|
builddir Vulkan-Headers
|
||||||
|
@ -246,7 +254,7 @@ _luajit () {
|
||||||
}
|
}
|
||||||
_luajit_mark=lib/libluajit-5.1.a
|
_luajit_mark=lib/libluajit-5.1.a
|
||||||
|
|
||||||
for x in iconv zlib shaderc spirv-cross; do
|
for x in iconv zlib shaderc spirv-cross nv-headers; do
|
||||||
build_if_missing $x
|
build_if_missing $x
|
||||||
done
|
done
|
||||||
if [[ "$TARGET" != "i686-"* ]]; then
|
if [[ "$TARGET" != "i686-"* ]]; then
|
||||||
|
|
Loading…
Reference in New Issue