mirror of https://github.com/mpv-player/mpv
18 lines
477 B
Bash
Executable File
18 lines
477 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
args=(
|
|
--werror
|
|
-Dc_args='-Wno-error=deprecated -Wno-error=deprecated-declarations'
|
|
-D{cdda,d3d-hwaccel,d3d11,dvdnav,jpeg,lcms2,libarchive}=enabled
|
|
-D{libbluray,lua,shaderc,spirv-cross,uchardet,vapoursynth}=enabled
|
|
-D{libmpv,tests}=true
|
|
)
|
|
|
|
[[ "$SYS" != "clang32" && "$SYS" != "mingw32" ]] && args+=(
|
|
-D{egl-angle-lib,egl-angle-win32,pdf-build,rubberband}=enabled
|
|
)
|
|
|
|
meson setup build "${args[@]}"
|
|
meson compile -C build
|
|
./build/mpv.com -v --no-config
|