Skip to content

Commit

Permalink
Add text2image binary when building with cppan.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 11, 2017
1 parent 6f83ba0 commit 7156a7e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ kernel*.bin
/.cppan
/cppan
/*.dll
/*.lib
/*.exe
/*.lnk
/win*
55 changes: 41 additions & 14 deletions cppan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
local_settings:
use_shared_libs: true
#silent: false
#copy_import_libs: true
build:
c_flags: /W0
cxx_flags: /W0

dependencies:
pvt.cppan.demo.danbloomberg.leptonica: 1
Expand Down Expand Up @@ -94,11 +98,6 @@ projects:
- 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
Expand All @@ -115,14 +114,7 @@ projects:
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")
remove_src_dir(vs2010/port/*)
endif()
options:
Expand Down Expand Up @@ -236,5 +228,40 @@ projects:
files: training/set_unicharset_properties.cpp
dependencies: unicharset_training

# text2image
text2image:
files:
- training/text2image.cpp
- training/boxchar.cpp
- training/boxchar.h
- training/degradeimage.cpp
- training/degradeimage.h
- training/ligature_table.cpp
- training/ligature_table.h
- training/normstrngs.cpp
- training/normstrngs.h
- training/pango_font_info.cpp
- training/pango_font_info.h
- training/stringrenderer.cpp
- training/stringrenderer.h
- training/tlog.cpp
- training/tlog.h
- training/util.h
- training/icuerrorcode.h

dependencies:
- unicharset_training
- pvt.cppan.demo.gnome.pango.pangocairo: 1














0 comments on commit 7156a7e

Please sign in to comment.