diff options
Diffstat (limited to 'ci/build-macos.sh')
-rwxr-xr-x | ci/build-macos.sh | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/ci/build-macos.sh b/ci/build-macos.sh index 347a75160f..d11befa13a 100755 --- a/ci/build-macos.sh +++ b/ci/build-macos.sh @@ -10,17 +10,16 @@ if [[ -d "./build/${MPV_VARIANT}" ]] ; then rm -rf "./build/${MPV_VARIANT}" fi -if [[ ! -e "./waf" ]] ; then - python3 ./bootstrap.py -fi - -PKG_CONFIG_PATH="${FFMPEG_SYSROOT}/lib/pkgconfig/" CC="${CC}" CXX="${CXX}" python3 \ - ./waf configure \ - --variant="${MPV_VARIANT}" \ - --prefix="${MPV_INSTALL_PREFIX}" \ - --enable-{gl,iconv,lcms2,libmpv-shared,lua,jpeg,plain-gl,zlib} \ - --enable-{cocoa,coreaudio,gl-cocoa,macos-cocoa-cb,macos-touchbar,videotoolbox-gl} - -python3 ./waf build --variant="${MPV_VARIANT}" -j4 +PKG_CONFIG_PATH="${FFMPEG_SYSROOT}/lib/pkgconfig/" CC="${CC}" CXX="${CXX}" \ +meson setup build \ + --werror \ + -Dprefix="${MPV_INSTALL_PREFIX}" \ + -D{c_args,objc_args}="-Wno-error=deprecated -Wno-error=deprecated-declarations" \ + -D{libmpv,tests}=true \ + -D{gl,iconv,lcms2,lua,jpeg,plain-gl,zlib}=enabled \ + -D{cocoa,coreaudio,gl-cocoa,videotoolbox-gl,videotoolbox-pl}=enabled \ + -D{swift-build,macos-cocoa-cb,macos-media-player,macos-touchbar,vulkan}=enabled -python3 ./waf install --variant="${MPV_VARIANT}" +meson compile -C build -j4 +meson install -C build +./build/mpv -v --no-config |