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
|
|
|
|
meson compile -C build --verbose
|
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
|
|
|
|
python3 ./waf configure \
|
|
|
|
--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
|
|
|
|
python3 ./waf build --verbose
|
2022-06-12 20:50:37 +00:00
|
|
|
./build/mpv -v --no-config -v --unittest=all-simple
|
2021-11-07 19:29:11 +00:00
|
|
|
fi
|