From 7156a7e2883a24bf10b1a25dfa3673f43cf78ddd Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Wed, 11 Jan 2017 21:27:45 +0300 Subject: [PATCH] Add text2image binary when building with cppan. --- .gitignore | 3 +++ cppan.yml | 55 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 9516bf3e9b..ecc4a94ef8 100644 --- a/.gitignore +++ b/.gitignore @@ -75,4 +75,7 @@ kernel*.bin /.cppan /cppan /*.dll +/*.lib +/*.exe +/*.lnk /win* diff --git a/cppan.yml b/cppan.yml index 8596c5e22e..a84fb380d4 100644 --- a/cppan.yml +++ b/cppan.yml @@ -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 @@ -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 @@ -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: @@ -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 + + + + + + + + + + + + +