mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
32 lines
733 B
Bash
Executable File
32 lines
733 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
. ./ci/build-common.sh
|
|
|
|
args=(
|
|
-D{amf,cdda,d3d-hwaccel,d3d11,dvda,dvdnav,jpeg,lcms2,libarchive}=enabled
|
|
-D{libbluray,lua,shaderc,spirv-cross,uchardet,vapoursynth}=enabled
|
|
-D{egl-angle-lib,egl-angle-win32,pdf-build,rubberband,win32-smtc}=enabled
|
|
)
|
|
|
|
if [[ -n "$ASAN" ]]; then
|
|
args+=(
|
|
-Db_sanitize=address,undefined
|
|
)
|
|
fi
|
|
|
|
if [[ -n "$AUTO_VAR_INIT" ]]; then
|
|
args+=(
|
|
-Dc_args="-ftrivial-auto-var-init=$AUTO_VAR_INIT"
|
|
-Dcpp_args="-ftrivial-auto-var-init=$AUTO_VAR_INIT"
|
|
)
|
|
fi
|
|
|
|
echo "::group::Building subrandr"
|
|
build_subrandr "/$SYS"
|
|
echo "::endgroup::"
|
|
args+=(-Dsubrandr=enabled)
|
|
|
|
meson setup build $common_args "${args[@]}"
|
|
meson compile -C build
|
|
./build/mpv.com -v --no-config
|