| image: Visual Studio 2019 |
| configuration: Release |
| #branches: |
| # only: |
| # - master |
| |
| install: |
| - git submodule update --init --recursive |
| - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" |
| # Install Nasm |
| - appveyor DownloadFile "https://github.com/joedrago/nasm_mirror/raw/master/nasm-2.14.02-win64.zip" -FileName "nasm.zip" |
| - 7z x "nasm.zip" > nul |
| - move nasm-* NASM |
| - set PATH=%PATH%;%CD%\NASM; |
| - nasm -v |
| # Build libaom and dav1d |
| - cd ext |
| - aom.cmd |
| - dav1d.cmd |
| - cd .. |
| # Configure with CMake |
| - mkdir build |
| - cd build |
| - cmake --version |
| - cmake .. -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_AOM=ON -DAVIF_CODEC_DAV1D=ON -DAVIF_LOCAL_DAV1D=ON -DBUILD_SHARED_LIBS=OFF -DAVIF_BUILD_APPS=ON |
| |
| build: |
| project: build/libavif.sln |
| parallel: true |
| verbosity: minimal |
| |
| after_build: |
| - copy %CONFIGURATION%\avifenc.exe . |
| - copy %CONFIGURATION%\avifdec.exe . |
| - mkdir lib |
| - set ARTIFACT_ZIP=libavif_vs2019_x64_%APPVEYOR_REPO_COMMIT:~0,8%_%CONFIGURATION%.zip |
| - copy %CONFIGURATION%\avif.lib lib\avif_x64_%CONFIGURATION%.lib |
| - 7z a %ARTIFACT_ZIP% lib |
| - cd .. |
| - 7z a build\%ARTIFACT_ZIP% include examples |
| |
| artifacts: |
| - path: 'build\libavif_vs2019_x64_*.zip' |
| name: Static Lib and Includes |
| - path: 'build\*.exe' |
| name: Basic apps |