script to build libmpv for macOS, iOS, iPadOS and tvOS
You can use libmpv with MPVKit (swift binding of libmpv)
git clone https://github.com/karelrooted/libmpv.git --recurse-submodules --shallow-submodules
cd libmpv && sh ./build.sh && sh ./xcframework.sh
usage: build.sh [-h]
options:
p : Optional, platforms(macOS iOS tvOS iSimulator tvSimulator). Default: all
a : Optional, archs(x86_64 arm64). Default: all, please note iOS and tvOS will ignore this and always be arm64
l : Optional, libraries(openssl libpng freetype fribidi harfbuzz libass readline gmp nettle gnutls smbclient moltenvk shaderc littlecms libplacebo libdav1d libbluray ffmpeg uchardet luajit mpv).
o : Optional, optimize level, default: 2 when debug is false, 0 when debug is true
g : Optional, enable gpl, default: false
d : Optional, enable debug, default: false
h : Optional, Print this Help.
build ios smbclient
./build.sh -p ios -l "readline gmp nettle gnutls smbclient"
libmpv is under the LGPL 3.0 license. Check mpv and ffmpeg for more license requirement. Please note samba is under GPL v3 license, so if you enable smbclient, this library's license became GPL v3 too