mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +00:00
e82d9045a4
Instead of running the test directly in the build script, we can make a separate step in the workflow so it looks a little prettier. For running the actual tests, we skip mingw since they will never be run (cross compiled). Additionally, improve the github workflow logic a bit so that way logs on failure are only shown when that specific step fails. The freebsd job still has to be less elegant since it's in a weird vm thingy. Not really related but the location of various build directories (particularly waf) are corrected as well (might as well).
51 lines
1.3 KiB
Bash
Executable File
51 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
export CFLAGS="$CFLAGS -isystem/usr/local/include"
|
|
export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
|
|
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
|
|
|
meson setup build \
|
|
-Dlibmpv=true \
|
|
-Dlua=enabled \
|
|
-Degl-drm=enabled \
|
|
-Dopenal=enabled \
|
|
-Dsdl2=enabled \
|
|
-Dsndio=enabled \
|
|
-Dtests=true \
|
|
-Dvdpau=enabled \
|
|
-Dvulkan=enabled \
|
|
-Doss-audio=enabled \
|
|
$(pkg info -q v4l_compat && echo -Ddvbin=enabled) \
|
|
$(pkg info -q libdvdnav && echo -Ddvdnav=enabled) \
|
|
$(pkg info -q libcdio-paranoia && echo -Dcdda=enabled) \
|
|
$(pkg info -q pipewire && echo -Dpipewire=enabled) \
|
|
$NULL
|
|
|
|
meson compile -C build
|
|
./build/mpv -v --no-config
|
|
|
|
if [ ! -e "./waf" ] ; then
|
|
python3 ./bootstrap.py
|
|
fi
|
|
|
|
python3 ./waf configure \
|
|
--out=build_waf \
|
|
--enable-libmpv-shared \
|
|
--enable-lua \
|
|
--enable-egl-drm \
|
|
--enable-openal \
|
|
--enable-sdl2 \
|
|
--enable-sndio \
|
|
--enable-vdpau \
|
|
--enable-vulkan \
|
|
--enable-oss-audio \
|
|
$(pkg info -q v4l_compat && echo --enable-dvbin) \
|
|
$(pkg info -q libdvdnav && echo --enable-dvdnav) \
|
|
$(pkg info -q libcdio-paranoia && echo --enable-cdda) \
|
|
$(pkg info -q pipewire && echo --enable-pipewire) \
|
|
$NULL
|
|
|
|
python3 ./waf build
|
|
./build_waf/mpv -v --no-config
|