2015-09-07 03:30:11 +08:00
|
|
|
os: Visual Studio 2015
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
- Win64
|
|
|
|
|
|
|
|
configuration:
|
2016-01-14 19:02:48 +08:00
|
|
|
- Release
|
2015-09-07 03:30:11 +08:00
|
|
|
|
2016-12-15 21:58:19 +08:00
|
|
|
install:
|
2015-09-07 03:30:11 +08:00
|
|
|
- if %platform%==Win32 set generator=Visual Studio 14
|
|
|
|
- if %platform%==Win64 set generator=Visual Studio 14 Win64
|
|
|
|
- if %platform%==Win32 set vcplatform=Win32
|
|
|
|
- if %platform%==Win64 set vcplatform=x64
|
2016-12-15 21:04:18 +08:00
|
|
|
|
2016-10-17 02:33:54 +08:00
|
|
|
- curl -fsS -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip
|
2016-09-26 18:12:59 +08:00
|
|
|
- 7z x cppan.zip
|
|
|
|
- set PATH=%PATH%;%cd%
|
2016-12-15 21:04:18 +08:00
|
|
|
|
2016-12-15 21:51:17 +08:00
|
|
|
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
|
|
|
|
#- echo build_system_verbose: false>> %USERPROFILE%\.cppan\cppan.yml
|
2016-12-15 21:58:19 +08:00
|
|
|
#- type %USERPROFILE%\.cppan\cppan.yml
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- ps: Add-Content %USERPROFILE%\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"
|
2016-12-15 21:04:18 +08:00
|
|
|
|
2015-09-07 03:30:11 +08:00
|
|
|
build_script:
|
2016-09-26 18:12:59 +08:00
|
|
|
- cppan
|
2015-09-07 03:30:11 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-09-26 18:12:59 +08:00
|
|
|
- cmake .. -G "%generator%" -DSTATIC=1
|
2015-09-07 03:30:11 +08:00
|
|
|
- msbuild tesseract.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|