forked from joedrago/colorist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (41 loc) · 1.57 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '{build}'
skip_non_tags: true
image: Visual Studio 2017
configuration: Release
init:
- cmd: >-
set arch=Win64
if "%arch%"=="Win64" ( set arch= Win64)
echo %arch%
echo %APPVEYOR_BUILD_WORKER_IMAGE%
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
echo %generator%
before_build:
- cmd: >-
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
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
set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip"
appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
7z x ninja.zip -oC:\projects\deps\ninja > nul
set PATH=C:\projects\deps\ninja;%PATH%
ninja --version
cd ext\avif\ext
call aom.cmd
cd ..\..\..
mkdir build
cd build
cmake --version
cmake .. -G %generator% -DAVIF_CODEC_AOM=1 -DAVIF_LOCAL_AOM=1
build:
project: C:/projects/colorist/build/colorist.sln
parallel: true
verbosity: minimal
artifacts:
- path: build\bin\colorist\Release\colorist.exe
name: colorist.exe