mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
31 lines
916 B
YAML
31 lines
916 B
YAML
os: Visual Studio 2015
|
|
|
|
platform:
|
|
- Win32
|
|
- Win64
|
|
|
|
configuration:
|
|
- Release
|
|
|
|
before_build:
|
|
- 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
|
|
|
|
- curl -fsS -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 %USERPROFILE%\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"
|
|
#- echo build_system_verbose: false>> %USERPROFILE%\.cppan\cppan.yml
|
|
- type %USERPROFILE%\.cppan\cppan.yml
|
|
|
|
build_script:
|
|
- cppan
|
|
- mkdir build
|
|
- cd build
|
|
- cmake .. -G "%generator%" -DSTATIC=1
|
|
- msbuild tesseract.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|