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