Skip to content

Commit 7156a7e

Browse files
committed
Add text2image binary when building with cppan.
1 parent 6f83ba0 commit 7156a7e

File tree

2 files changed

+44
-14
lines changed

2 files changed

+44
-14
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,7 @@ kernel*.bin
7575
/.cppan
7676
/cppan
7777
/*.dll
78+
/*.lib
79+
/*.exe
80+
/*.lnk
7881
/win*

cppan.yml

+41-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
local_settings:
22
use_shared_libs: true
33
#silent: false
4+
#copy_import_libs: true
5+
build:
6+
c_flags: /W0
7+
cxx_flags: /W0
48

59
dependencies:
610
pvt.cppan.demo.danbloomberg.leptonica: 1
@@ -94,11 +98,6 @@ projects:
9498
- sys/wait.h
9599
- tiffio.h
96100
- unistd.h
97-
- cairo/cairo-version.h
98-
- CL/cl.h
99-
- OpenCL/cl.h
100-
- pango-1.0/pango/pango-features.h
101-
- unicode/uchar.h
102101

103102
check_type_size:
104103
- long long int
@@ -115,14 +114,7 @@ projects:
115114
116115
post_sources: |
117116
if (NOT WIN32)
118-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.cpp")
119-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.h")
120-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/mathfix.h")
121-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.cpp")
122-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.h")
123-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.cpp")
124-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.h")
125-
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/vcsversion.h")
117+
remove_src_dir(vs2010/port/*)
126118
endif()
127119
128120
options:
@@ -236,5 +228,40 @@ projects:
236228
files: training/set_unicharset_properties.cpp
237229
dependencies: unicharset_training
238230

239-
# text2image
231+
text2image:
232+
files:
233+
- training/text2image.cpp
234+
- training/boxchar.cpp
235+
- training/boxchar.h
236+
- training/degradeimage.cpp
237+
- training/degradeimage.h
238+
- training/ligature_table.cpp
239+
- training/ligature_table.h
240+
- training/normstrngs.cpp
241+
- training/normstrngs.h
242+
- training/pango_font_info.cpp
243+
- training/pango_font_info.h
244+
- training/stringrenderer.cpp
245+
- training/stringrenderer.h
246+
- training/tlog.cpp
247+
- training/tlog.h
248+
- training/util.h
249+
- training/icuerrorcode.h
250+
251+
dependencies:
252+
- unicharset_training
253+
- pvt.cppan.demo.gnome.pango.pangocairo: 1
254+
255+
256+
257+
258+
259+
260+
261+
262+
263+
264+
265+
266+
240267

0 commit comments

Comments
 (0)