mpv/ci/build-msys2.sh

58 lines
1.7 KiB
Bash
Raw Normal View History

#!/bin/sh -e
if [ "$1" = "meson" ]; then
2023-01-29 06:30:58 +00:00
meson setup build \
-D cdda=enabled \
-D d3d-hwaccel=enabled \
-D d3d11=enabled \
-D dvdnav=enabled \
-D egl-angle-lib=enabled \
-D egl-angle-win32=enabled \
-D jpeg=enabled \
-D lcms2=enabled \
-D libarchive=enabled \
-D libbluray=enabled \
-D libmpv=true \
-D libplacebo=enabled \
-D lua=enabled \
-D pdf-build=enabled \
-D rubberband=enabled \
-D shaderc=enabled \
-D spirv-cross=enabled \
-D tests=true \
-D uchardet=enabled \
-D vapoursynth=enabled \
-D vulkan=enabled
2023-01-29 06:30:58 +00:00
meson compile -C build
cp ./build/generated/mpv.com ./build
./build/mpv.com -v --no-config
fi
if [ "$1" = "waf" ]; then
./bootstrap.py
./waf configure \
2023-01-29 06:30:58 +00:00
--out=build_waf \
--enable-cdda \
--enable-d3d-hwaccel \
--enable-d3d11 \
--enable-dvdnav \
--enable-egl-angle-lib \
--enable-egl-angle-win32 \
--enable-jpeg \
--enable-lcms2 \
--enable-libarchive \
--enable-libbluray \
--enable-libmpv-shared \
--enable-libplacebo \
--enable-pdf-build \
--enable-rubberband \
--enable-shaderc \
--enable-spirv-cross \
--enable-uchardet \
--enable-vapoursynth \
--enable-lua \
--enable-vulkan
./waf build
./build_waf/mpv.com -v --no-config
fi