mirror of https://github.com/mpv-player/mpv
ci/msys2: compact build script
This commit is contained in:
parent
de1c0b5464
commit
05e870f76b
|
@ -1,27 +1,17 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
meson setup build \
|
args=(
|
||||||
--werror \
|
--werror
|
||||||
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
|
-Dc_args='-Wno-error=deprecated -Wno-error=deprecated-declarations'
|
||||||
-D cdda=enabled \
|
-D{cdda,d3d-hwaccel,d3d11,dvdnav,jpeg,lcms2,libarchive}=enabled
|
||||||
-D d3d-hwaccel=enabled \
|
-D{libbluray,lua,shaderc,spirv-cross,uchardet,vapoursynth}=enabled
|
||||||
-D d3d11=enabled \
|
-D{libmpv,tests}=true
|
||||||
-D dvdnav=enabled \
|
)
|
||||||
-D jpeg=enabled \
|
|
||||||
-D lcms2=enabled \
|
|
||||||
-D libarchive=enabled \
|
|
||||||
-D libbluray=enabled \
|
|
||||||
-D libmpv=true \
|
|
||||||
-D lua=enabled \
|
|
||||||
-D shaderc=enabled \
|
|
||||||
-D spirv-cross=enabled \
|
|
||||||
-D tests=true \
|
|
||||||
-D uchardet=enabled \
|
|
||||||
-D vapoursynth=enabled
|
|
||||||
|
|
||||||
if [[ "$SYS" != "clang32" && "$SYS" != "mingw32" ]]; then
|
[[ "$SYS" != "clang32" && "$SYS" != "mingw32" ]] && args+=(
|
||||||
meson configure build -D{egl-angle-lib,egl-angle-win32,pdf-build,rubberband}=enabled
|
-D{egl-angle-lib,egl-angle-win32,pdf-build,rubberband}=enabled
|
||||||
fi
|
)
|
||||||
|
|
||||||
|
meson setup build "${args[@]}"
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
./build/mpv.com -v --no-config
|
./build/mpv.com -v --no-config
|
||||||
|
|
Loading…
Reference in New Issue