tesseract/appveyor.yml

28 lines
961 B
YAML
Raw Normal View History

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
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
2016-01-14 19:01:55 +08:00
- set LEPT_VER=1.72
- ps: Start-FileDownload 'https://github.com/DanBloomberg/leptonica/archive/v%LEPT_VER%.zip' -FileName leptonica.zip
2015-09-07 03:30:11 +08:00
- 7z x leptonica.zip
2016-01-14 19:01:55 +08:00
- cmake -Hleptonica-%LEPT_VER% -Bleptonica-%LEPT_VER%/build -G "%generator%"
- msbuild leptonica-%LEPT_VER%/build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2015-09-07 03:30:11 +08:00
build_script:
- mkdir build
- cd build
2016-01-14 19:01:55 +08:00
- cmake .. -G "%generator%" -DLeptonica_BUILD_DIR=leptonica-%LEPT_VER%/build -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"