Skip to content

Commit f0bbf1a

Browse files
committed
Update cppan config.
1 parent 5bddb99 commit f0bbf1a

File tree

2 files changed

+137
-133
lines changed

2 files changed

+137
-133
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if (NOT CPPAN_BUILD)
227227
target_link_libraries (tesseract ${Leptonica_LIBRARIES})
228228
export(TARGETS tesseract FILE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake)
229229
else()
230-
target_link_libraries (tesseract pvt.cppan.demo.leptonica)
230+
target_link_libraries (tesseract pvt.cppan.demo.danbloomberg.leptonica)
231231
add_dependencies (tesseract cppan)
232232
file(WRITE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake "include(${CMAKE_BINARY_DIR}/cppan.cmake)\n")
233233
export(TARGETS tesseract APPEND FILE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake)

cppan.yml

+136-132
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,141 @@
11
local_settings:
22
use_shared_libs: true
33

4-
type: library
5-
c++: 11
6-
7-
files:
8-
- api/.*\.cpp
9-
- arch/.*\.cpp
10-
- ccmain/.*\.cpp
11-
- ccstruct/.*\.cpp
12-
- ccutil/.*\.cpp
13-
- classify/.*\.cpp
14-
- cutil/.*\.cpp
15-
- dict/.*\.cpp
16-
- lstm/.*\.cpp
17-
- opencl/.*\.cpp
18-
- textord/.*\.cpp
19-
- viewer/.*\.cpp
20-
- wordrec/.*\.cpp
21-
22-
- api/.*\.h
23-
- arch/.*\.h
24-
- ccmain/.*\.h
25-
- ccstruct/.*\.h
26-
- ccutil/.*\.h
27-
- classify/.*\.h
28-
- cutil/.*\.h
29-
- dict/.*\.h
30-
- lstm/.*\.h
31-
- opencl/.*\.h
32-
- textord/.*\.h
33-
- viewer/.*\.h
34-
- wordrec/.*\.h
35-
36-
- vs2010/port/.*
37-
38-
exclude_from_build:
39-
- api/tesseractmain.cpp
40-
- viewer/svpaint.cpp
41-
42-
include_directories:
43-
private:
44-
- arch
45-
- classify
46-
- cutil
47-
- dict
48-
- lstm
49-
- opencl
50-
- textord
51-
- vs2010/port
52-
- viewer
53-
- wordrec
54-
public:
55-
- api
56-
- ccmain
57-
- ccstruct
58-
- ccutil
59-
60-
check_function_exists:
61-
- getline
62-
63-
check_symbol_exists:
64-
snprintf: stdio.h
65-
66-
check_include_exists:
67-
- dlfcn.h
68-
- inttypes.h
69-
- limits.h
70-
- malloc.h
71-
- memory.h
72-
- stdbool.h
73-
- stdint.h
74-
- stdlib.h
75-
- strings.h
76-
- string.h
77-
- sys/ipc.h
78-
- sys/shm.h
79-
- sys/stat.h
80-
- sys/types.h
81-
- sys/wait.h
82-
- tiffio.h
83-
- unistd.h
84-
- cairo/cairo-version.h
85-
- CL/cl.h
86-
- OpenCL/cl.h
87-
- pango-1.0/pango/pango-features.h
88-
- unicode/uchar.h
89-
90-
check_type_size:
91-
- long long int
92-
- off_t
93-
- mbstate_t
94-
- wchar_t
95-
- _Bool
96-
97-
pre_sources: |
98-
# dummy config file
99-
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
100-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
101-
endif()
102-
103-
post_sources: |
104-
if (NOT WIN32)
105-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.cpp")
106-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.h")
107-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/mathfix.h")
108-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.cpp")
109-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.h")
110-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.cpp")
111-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.h")
112-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/vcsversion.h")
113-
endif()
114-
115-
options:
116-
any:
117-
definitions:
118-
public:
119-
- HAVE_CONFIG_H
120-
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
121-
- USE_STD_NAMESPACE=1
122-
- WINDLLNAME="tesseract"
123-
shared:
124-
definitions:
125-
private:
126-
- TESS_EXPORTS
127-
interface:
128-
- TESS_IMPORTS
129-
130-
dependencies:
131-
private:
132-
# tesseract uses leptonica only internally
133-
# and does not expose its interface to users
134-
pvt.cppan.demo.leptonica: master
135-
# only for training tools, move to them later
4+
dependencies:
5+
pvt.cppan.demo.danbloomberg.leptonica: master
1366
pvt.cppan.demo.unicode.icu.i18n: "*"
1377

8+
root_project: pvt.cppan.demo.google.tesseract
9+
10+
projects:
11+
tesseract:
12+
type: library
13+
c++: 11
14+
15+
files:
16+
- api/.*\.cpp
17+
- arch/.*\.cpp
18+
- ccmain/.*\.cpp
19+
- ccstruct/.*\.cpp
20+
- ccutil/.*\.cpp
21+
- classify/.*\.cpp
22+
- cutil/.*\.cpp
23+
- dict/.*\.cpp
24+
- lstm/.*\.cpp
25+
- opencl/.*\.cpp
26+
- textord/.*\.cpp
27+
- viewer/.*\.cpp
28+
- wordrec/.*\.cpp
29+
30+
- api/.*\.h
31+
- arch/.*\.h
32+
- ccmain/.*\.h
33+
- ccstruct/.*\.h
34+
- ccutil/.*\.h
35+
- classify/.*\.h
36+
- cutil/.*\.h
37+
- dict/.*\.h
38+
- lstm/.*\.h
39+
- opencl/.*\.h
40+
- textord/.*\.h
41+
- viewer/.*\.h
42+
- wordrec/.*\.h
43+
44+
- vs2010/port/.*
45+
46+
exclude_from_build:
47+
- api/tesseractmain.cpp
48+
- viewer/svpaint.cpp
49+
50+
include_directories:
51+
private:
52+
- arch
53+
- classify
54+
- cutil
55+
- dict
56+
- lstm
57+
- opencl
58+
- textord
59+
- vs2010/port
60+
- viewer
61+
- wordrec
62+
public:
63+
- api
64+
- ccmain
65+
- ccstruct
66+
- ccutil
67+
68+
check_function_exists:
69+
- getline
70+
71+
check_symbol_exists:
72+
snprintf: stdio.h
73+
74+
check_include_exists:
75+
- dlfcn.h
76+
- inttypes.h
77+
- limits.h
78+
- malloc.h
79+
- memory.h
80+
- stdbool.h
81+
- stdint.h
82+
- stdlib.h
83+
- strings.h
84+
- string.h
85+
- sys/ipc.h
86+
- sys/shm.h
87+
- sys/stat.h
88+
- sys/types.h
89+
- sys/wait.h
90+
- tiffio.h
91+
- unistd.h
92+
- cairo/cairo-version.h
93+
- CL/cl.h
94+
- OpenCL/cl.h
95+
- pango-1.0/pango/pango-features.h
96+
- unicode/uchar.h
97+
98+
check_type_size:
99+
- long long int
100+
- off_t
101+
- mbstate_t
102+
- wchar_t
103+
- _Bool
104+
105+
pre_sources: |
106+
# dummy config file
107+
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
108+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
109+
endif()
110+
111+
post_sources: |
112+
if (NOT WIN32)
113+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.cpp")
114+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.h")
115+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/mathfix.h")
116+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.cpp")
117+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.h")
118+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.cpp")
119+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.h")
120+
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/vcsversion.h")
121+
endif()
122+
123+
options:
124+
any:
125+
definitions:
126+
public:
127+
- HAVE_CONFIG_H
128+
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
129+
- USE_STD_NAMESPACE=1
130+
- WINDLLNAME="tesseract"
131+
shared:
132+
definitions:
133+
private:
134+
- TESS_EXPORTS
135+
interface:
136+
- TESS_IMPORTS
137+
138+
dependencies:
139+
private:
140+
pvt.cppan.demo.danbloomberg.leptonica: master
141+

0 commit comments

Comments
 (0)