summaryrefslogtreecommitdiffstats
path: root/ci/build-tumbleweed.sh
blob: 355ccd92e620dc835ff0d2c910b22507f57d4a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
set -e

if [ "$1" = "meson" ]; then
    meson setup build \
      -Dcdda=enabled          \
      -Ddvbin=enabled         \
      -Ddvdnav=enabled        \
      -Dlibarchive=enabled    \
      -Dlibmpv=true           \
      -Dmanpage-build=enabled \
      -Dpipewire=enabled      \
      -Dshaderc=enabled       \
      -Dtests=true            \
      -Dvulkan=enabled
    meson compile -C build
    meson test -C build
    ./build/mpv --no-config -v --unittest=all-simple
fi

if [ "$1" = "waf" ]; then
    python3 ./waf configure \
      --enable-cdda          \
      --enable-dvbin         \
      --enable-dvdnav        \
      --enable-libarchive    \
      --enable-libmpv-shared \
      --enable-manpage-build \
      --enable-pipewire      \
      --enable-shaderc       \
      --enable-tests         \
      --enable-vulkan
    python3 ./waf build
    ./build/mpv -v --no-config -v --unittest=all-simple
fi