forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cppan.yml
115 lines (105 loc) · 2.45 KB
/
cppan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
files:
- api/.*\.cpp
- ccmain/.*\.cpp
- ccstruct/.*\.cpp
- ccutil/.*\.cpp
- classify/.*\.cpp
- cube/.*\.cpp
- cutil/.*\.cpp
- dict/.*\.cpp
- neural_networks/runtime/.*\.cpp
- opencl/.*\.cpp
- textord/.*\.cpp
- viewer/.*\.cpp
- wordrec/.*\.cpp
- api/.*\.h
- ccmain/.*\.h
- ccstruct/.*\.h
- ccutil/.*\.h
- classify/.*\.h
- cube/.*\.h
- cutil/.*\.h
- dict/.*\.h
- neural_networks/runtime/.*\.h
- opencl/.*\.h
- textord/.*\.h
- viewer/.*\.h
- wordrec/.*\.h
- vs2010/port/.*
include_directories:
private:
- classify
- cube
- cutil
- dict
- neural_networks/runtime
- opencl
- textord
- vs2010/port
- viewer
- wordrec
public:
- api
- ccmain
- ccstruct
- ccutil
check_function_exists:
- getline
- snprintf
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:
public: HAVE_CONFIG_H
public: _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
public: USE_STD_NAMESPACE=1
public: WINDLLNAME="tesseract"
shared:
definitions:
public: TESS_EXPORTS
dependencies:
pvt.cppan.demo.leptonica: master