forked from idscan/leptonica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
34 lines (27 loc) · 1.05 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
os: Visual Studio 2017
platform:
- Win32
- Win64
configuration:
- Release
# for curl
install:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
before_build:
- if %platform%==Win32 set generator=Visual Studio 15 2017
- if %platform%==Win64 set generator=Visual Studio 15 2017 Win64
- if %platform%==Win32 set vcplatform=Win32
- if %platform%==Win64 set vcplatform=x64
- curl -fsS -L -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip
- 7z x cppan.zip
- set PATH=%PATH%;%cd%
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_warning_level: 0`n"'
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"'
build_script:
- cppan
- mkdir build
- cd build
- cmake .. -G "%generator%" -DBUILD_PROG=1
- msbuild leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"