mpv/ci/build-msys2.sh

19 lines
502 B
Bash
Raw Normal View History

#!/bin/sh -e
2024-06-07 18:39:32 +00:00
args=(
--werror
-Dc_args='-Wno-error=deprecated -Wno-error=deprecated-declarations'
-D{d3d-hwaccel,d3d11,dvdnav,jpeg,lcms2,libarchive}=enabled
-D{libbluray,lua,shaderc,spirv-cross}=enabled
2024-06-07 18:39:32 +00:00
-D{libmpv,tests}=true
)
2024-06-07 18:39:32 +00:00
[[ "$SYS" != "clang32" && "$SYS" != "mingw32" ]] && args+=(
-D{cdda,egl-angle-lib,egl-angle-win32,pdf-build}=enabled
-D{rubberband,uchardet,vapoursynth,win32-smtc}=enabled
2024-06-07 18:39:32 +00:00
)
2024-06-07 18:39:32 +00:00
meson setup build "${args[@]}"
meson compile -C build
./build/mpv.com -v --no-config