mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
25 lines
877 B
YAML
25 lines
877 B
YAML
os: Visual Studio 2015
|
|
|
|
platform:
|
|
- Win32
|
|
- Win64
|
|
|
|
configuration:
|
|
- Debug
|
|
|
|
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
|
|
- ps: Start-FileDownload 'https://github.com/egorpugin/leptonica/archive/master.zip' -FileName leptonica.zip
|
|
- 7z x leptonica.zip
|
|
- cmake -Hleptonica-master -Bleptonica-master/build
|
|
- msbuild leptonica-master/build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
build_script:
|
|
- mkdir build
|
|
- cd build
|
|
- cmake .. -G "%generator%" -DLeptonica_DIR=leptonica-master/build
|
|
- msbuild tesseract.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|