1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

ci/mingw: attempt to enable Vulkan Video Decoding

This commit is contained in:
sfan5 2023-08-28 21:37:06 +02:00
parent 8e8c34008f
commit 90543610c2

View File

@ -124,11 +124,15 @@ _zlib_mark=lib/libz.dll.a
_ffmpeg () {
[ -d ffmpeg ] || $gitclone https://github.com/FFmpeg/FFmpeg.git ffmpeg
builddir ffmpeg
../configure --pkg-config=pkg-config --target-os=mingw32 \
--enable-cross-compile --cross-prefix=$TARGET- --arch=${TARGET%%-*} \
--cc="$CC" --cxx="$CXX" $commonflags \
--disable-{doc,programs,muxers,encoders} \
local args=(
--pkg-config=pkg-config --target-os=mingw32
--enable-cross-compile --cross-prefix=$TARGET- --arch=${TARGET%%-*}
--cc="$CC" --cxx="$CXX" $commonflags
--disable-{doc,programs,muxers,encoders}
--enable-encoder=mjpeg,png
)
pkg-config vulkan && args+=(--enable-vulkan --enable-libshaderc)
../configure "${args[@]}"
makeplusinstall
popd
}
@ -243,14 +247,14 @@ _luajit () {
}
_luajit_mark=lib/libluajit-5.1.a
for x in iconv zlib ffmpeg shaderc spirv-cross; do
for x in iconv zlib shaderc spirv-cross; do
build_if_missing $x
done
if [[ "$TARGET" != "i686-"* ]]; then
build_if_missing vulkan-headers
build_if_missing vulkan-loader
fi
for x in libplacebo freetype fribidi harfbuzz libass luajit; do
for x in ffmpeg libplacebo freetype fribidi harfbuzz libass luajit; do
build_if_missing $x
done