tesseract/cppan.yml

136 lines
2.8 KiB
YAML
Raw Normal View History

2016-09-29 17:24:18 +08:00
local_settings:
2016-11-24 22:32:23 +08:00
use_shared_libs: true
type: library
2016-12-05 01:19:46 +08:00
c++: 11
2016-09-29 17:24:18 +08:00
2016-07-04 04:34:33 +08:00
files:
- api/.*\.cpp
2016-11-24 22:32:23 +08:00
- arch/.*\.cpp
2016-07-04 04:34:33 +08:00
- ccmain/.*\.cpp
- ccstruct/.*\.cpp
- ccutil/.*\.cpp
- classify/.*\.cpp
- cutil/.*\.cpp
- dict/.*\.cpp
2016-11-24 20:58:57 +08:00
- lstm/.*\.cpp
2016-07-04 04:34:33 +08:00
- opencl/.*\.cpp
- textord/.*\.cpp
- viewer/.*\.cpp
- wordrec/.*\.cpp
- api/.*\.h
2016-11-24 22:32:23 +08:00
- arch/.*\.h
2016-07-04 04:34:33 +08:00
- ccmain/.*\.h
- ccstruct/.*\.h
- ccutil/.*\.h
- classify/.*\.h
- cutil/.*\.h
- dict/.*\.h
2016-11-24 20:58:57 +08:00
- lstm/.*\.h
2016-07-04 04:34:33 +08:00
- opencl/.*\.h
- textord/.*\.h
- viewer/.*\.h
- wordrec/.*\.h
- vs2010/port/.*
2016-11-24 22:32:23 +08:00
exclude_from_build:
- api/tesseractmain.cpp
- viewer/svpaint.cpp
2016-07-04 04:34:33 +08:00
include_directories:
private:
2016-11-24 22:32:23 +08:00
- arch
2016-07-04 04:34:33 +08:00
- classify
- cutil
- dict
2016-11-24 20:58:57 +08:00
- lstm
2016-07-04 04:34:33 +08:00
- opencl
- textord
- vs2010/port
- viewer
- wordrec
public:
- api
- ccmain
- ccstruct
- ccutil
check_function_exists:
- getline
2016-07-17 22:45:37 +08:00
check_symbol_exists:
snprintf: stdio.h
2016-07-04 04:34:33 +08:00
check_include_exists:
- dlfcn.h
- inttypes.h
- limits.h
- malloc.h
- memory.h
- stdbool.h
- stdint.h
- stdlib.h
- strings.h
- string.h
- sys/ipc.h
- sys/shm.h
- sys/stat.h
- sys/types.h
- sys/wait.h
- tiffio.h
- unistd.h
- cairo/cairo-version.h
- CL/cl.h
- OpenCL/cl.h
- pango-1.0/pango/pango-features.h
- unicode/uchar.h
check_type_size:
- long long int
- off_t
- mbstate_t
- wchar_t
- _Bool
pre_sources: |
# dummy config file
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
endif()
post_sources: |
if (NOT WIN32)
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/mathfix.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/vcsversion.h")
endif()
options:
any:
definitions:
2016-07-08 18:59:09 +08:00
public:
- HAVE_CONFIG_H
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
- USE_STD_NAMESPACE=1
- WINDLLNAME="tesseract"
2016-07-04 05:51:16 +08:00
shared:
definitions:
private:
- TESS_EXPORTS
interface:
- TESS_IMPORTS
2016-07-04 04:34:33 +08:00
dependencies:
private:
pvt.cppan.demo.leptonica: master
# only for training tools, move to them later
pvt.cppan.demo.unicode.icu.i18n: "*"