mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Turn on silent building for CIs with cppan.
This commit is contained in:
parent
9f763e5466
commit
dd91c1e479
2
.gitignore
vendored
2
.gitignore
vendored
@ -74,5 +74,7 @@ kernel*.bin
|
||||
|
||||
# build dirs
|
||||
/build*
|
||||
/.cppan
|
||||
/cppan
|
||||
/*.dll
|
||||
/win*
|
@ -46,7 +46,7 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||
|
||||
set(MINIMUM_LEPTONICA_VERSION 1.71)
|
||||
|
||||
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/cppan)
|
||||
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.cppan)
|
||||
if (NOT Leptonica_DIR AND NOT MSVC)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(Leptonica REQUIRED lept)
|
||||
@ -54,7 +54,7 @@ if(NOT EXISTS ${PROJECT_SOURCE_DIR}/cppan)
|
||||
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
|
||||
endif()
|
||||
else()
|
||||
add_subdirectory(cppan)
|
||||
add_subdirectory(.cppan)
|
||||
endif()
|
||||
|
||||
find_package(OpenCL QUIET)
|
||||
|
@ -12,11 +12,13 @@ before_build:
|
||||
- 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%
|
||||
|
||||
|
||||
- echo build_system_verbose: false>> %USERPROFILE%/.cppan/cppan.yml
|
||||
|
||||
build_script:
|
||||
- cppan
|
||||
- mkdir build
|
||||
|
Loading…
Reference in New Issue
Block a user