代码拉取完成,页面将自动刷新
os: Visual Studio 2019
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
LDFLAGS: -static-libgcc -static-libstdc++
matrix:
#- arch: x86
# compiler: msvc2015
#- arch: x64
# compiler: msvc2015
#- arch: x86
# compiler: msvc2017
#- arch: x64
# compiler: msvc2017
#- arch: x86
# compiler: msvc2019
#- arch: x64
# compiler: msvc2019
- arch: x86
MSYSTEM: MINGW32
CC: ccache i686-w64-mingw32-gcc
CXX: ccache i686-w64-mingw32-g++
CFLAGS: -msse
- arch: x64
MSYSTEM: MINGW64
CC: ccache x86_64-w64-mingw32-gcc
CXX: ccache x86_64-w64-mingw32-g++
platform:
- x64
install:
- set "PATH=C:\msys64\mingw64\bin;C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%"
- set MSYS2_PATH_TYPE=inherit
# Download ninja and meson
- pacman -Syyuu --ask=20 --noconfirm --noprogressbar --needed
- pacman -Sy --ask=20 --noconfirm --noprogressbar --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-meson
#- set CFLAGS=/D_TIMESPEC_DEFINED /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# Set up the build environment
- |
if "%compiler%"=="msvc2015" ( call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch% )
if "%compiler%"=="msvc2017" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )
if "%compiler%"=="msvc2019" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )
build_script:
- echo Building on %arch% with %compiler%
- set "CFLAGS=-static %CFLAGS%"
- set "CXXFLAGS=-static %CXXFLAGS%"
- cd libvmaf
- meson setup --backend=ninja --default-library=static --buildtype=release --prefix="%CD%/install" build
- ninja -vC build install
test_script:
- ninja -vC build test
after_build:
- 7z a vmaf-win-%arch%.zip install\**\*.*
artifacts:
- path: libvmaf\**\*.zip
- path: libvmaf\build\src\libvmaf*.*
- path: libvmaf\build\tools\*vmaf*.exe
- path: libvmaf\build\meson-logs\*.txt
cache:
- 'C:\msys64\home\appveyor\.ccache'
- 'C:\msys64\var\cache\pacman\pkg'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。