mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Add experimental MPV player backend (#161)
Experimental MPV player backend Related to #14, #22, & #85 You can switch to MPV in advanced settings and toggle using hardware decoding or not. This uses code and buildscripts from https://github.com/mpv-android/mpv-android, plus other third party libraries to build MPV
This commit is contained in:
parent
d7b333e519
commit
6be2662d4e
84 changed files with 3987 additions and 289 deletions
30
scripts/mpv/scripts/mpv.sh
Executable file
30
scripts/mpv/scripts/mpv.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
. ../../include/path.sh
|
||||
|
||||
build=_build$ndk_suffix
|
||||
|
||||
if [ "$1" == "build" ]; then
|
||||
true
|
||||
elif [ "$1" == "clean" ]; then
|
||||
rm -rf $build
|
||||
exit 0
|
||||
else
|
||||
exit 255
|
||||
fi
|
||||
|
||||
unset CC CXX # meson wants these unset
|
||||
|
||||
meson setup $build --cross-file "$prefix_dir"/crossfile.txt \
|
||||
--default-library shared \
|
||||
-Diconv=disabled -Dlua=enabled \
|
||||
-Dlibmpv=true -Dcplayer=false \
|
||||
-Dmanpage-build=disabled
|
||||
|
||||
ninja -C $build -j$cores
|
||||
if [ -f $build/libmpv.a ]; then
|
||||
echo >&2 "Meson fucked up, forcing rebuild."
|
||||
$0 clean
|
||||
exec $0 build
|
||||
fi
|
||||
DESTDIR="$prefix_dir" ninja -C $build install
|
||||
Loading…
Add table
Add a link
Reference in a new issue