2018-06-25 17:16:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2021-11-07 19:29:11 +00:00
|
|
|
if [ "$1" = "meson" ]; then
|
2022-10-29 02:40:53 +00:00
|
|
|
meson setup build \
|
2021-11-07 19:29:11 +00:00
|
|
|
-Dcdda=enabled \
|
|
|
|
-Ddvbin=enabled \
|
|
|
|
-Ddvdnav=enabled \
|
|
|
|
-Dlibarchive=enabled \
|
|
|
|
-Dlibmpv=true \
|
|
|
|
-Dmanpage-build=enabled \
|
2022-10-25 19:13:44 +00:00
|
|
|
-Dpipewire=enabled \
|
2021-11-07 19:29:11 +00:00
|
|
|
-Dshaderc=enabled \
|
2022-06-12 20:50:37 +00:00
|
|
|
-Dtests=true \
|
2021-11-07 19:29:11 +00:00
|
|
|
-Dvulkan=enabled
|
2023-01-29 06:16:21 +00:00
|
|
|
meson compile -C build
|
2023-01-19 16:19:36 +00:00
|
|
|
meson test -C build
|
2022-06-12 20:50:37 +00:00
|
|
|
./build/mpv --no-config -v --unittest=all-simple
|
2021-11-07 19:29:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "waf" ]; then
|
2023-01-29 06:30:58 +00:00
|
|
|
python3 ./waf configure \
|
|
|
|
--out=build_waf \
|
2021-11-07 19:29:11 +00:00
|
|
|
--enable-cdda \
|
|
|
|
--enable-dvbin \
|
|
|
|
--enable-dvdnav \
|
|
|
|
--enable-libarchive \
|
|
|
|
--enable-libmpv-shared \
|
|
|
|
--enable-manpage-build \
|
2022-10-25 19:13:44 +00:00
|
|
|
--enable-pipewire \
|
2021-11-07 19:29:11 +00:00
|
|
|
--enable-shaderc \
|
2022-06-12 20:50:37 +00:00
|
|
|
--enable-tests \
|
2021-11-07 19:29:11 +00:00
|
|
|
--enable-vulkan
|
2023-01-29 06:16:21 +00:00
|
|
|
python3 ./waf build
|
2023-01-29 06:30:58 +00:00
|
|
|
./build_waf/mpv -v --no-config -v --unittest=all-simple
|
2021-11-07 19:29:11 +00:00
|
|
|
fi
|