2016-09-29 17:24:18 +08:00
|
|
|
local_settings:
|
2017-01-16 15:17:13 +08:00
|
|
|
#use_shared_libs: true
|
2017-01-14 03:16:17 +08:00
|
|
|
#generator: Visual Studio 14 2015 Win64
|
|
|
|
silent: false
|
2017-01-12 02:27:45 +08:00
|
|
|
#copy_import_libs: true
|
2017-05-08 01:05:12 +08:00
|
|
|
#build:
|
|
|
|
#c_flags: /W0
|
|
|
|
#cxx_flags: /W0
|
|
|
|
builds:
|
|
|
|
vs2017:
|
|
|
|
generator: Visual Studio 15 2017
|
|
|
|
vs2017_64:
|
|
|
|
generator: Visual Studio 15 2017 Win64
|
2016-11-24 22:32:23 +08:00
|
|
|
|
2016-12-23 03:30:16 +08:00
|
|
|
dependencies:
|
2016-12-25 02:44:15 +08:00
|
|
|
pvt.cppan.demo.danbloomberg.leptonica: 1
|
2016-12-17 21:19:35 +08:00
|
|
|
pvt.cppan.demo.unicode.icu.i18n: "*"
|
|
|
|
|
2016-12-23 03:30:16 +08:00
|
|
|
root_project: pvt.cppan.demo.google.tesseract
|
|
|
|
|
2016-12-24 04:26:40 +08:00
|
|
|
common_settings:
|
|
|
|
c++: 11
|
|
|
|
|
2016-12-23 03:30:16 +08:00
|
|
|
projects:
|
2017-02-23 20:39:58 +08:00
|
|
|
libtesseract:
|
2016-12-24 04:26:40 +08:00
|
|
|
type: lib
|
|
|
|
export_all_symbols: true
|
2016-12-23 03:30:16 +08:00
|
|
|
files:
|
|
|
|
- api/.*\.cpp
|
|
|
|
- arch/.*\.cpp
|
|
|
|
- ccmain/.*\.cpp
|
|
|
|
- ccstruct/.*\.cpp
|
|
|
|
- ccutil/.*\.cpp
|
|
|
|
- classify/.*\.cpp
|
|
|
|
- cutil/.*\.cpp
|
|
|
|
- dict/.*\.cpp
|
|
|
|
- lstm/.*\.cpp
|
|
|
|
- opencl/.*\.cpp
|
|
|
|
- textord/.*\.cpp
|
|
|
|
- viewer/.*\.cpp
|
|
|
|
- wordrec/.*\.cpp
|
|
|
|
|
|
|
|
- api/.*\.h
|
|
|
|
- arch/.*\.h
|
|
|
|
- ccmain/.*\.h
|
|
|
|
- ccstruct/.*\.h
|
|
|
|
- ccutil/.*\.h
|
|
|
|
- classify/.*\.h
|
|
|
|
- cutil/.*\.h
|
|
|
|
- dict/.*\.h
|
|
|
|
- lstm/.*\.h
|
|
|
|
- opencl/.*\.h
|
|
|
|
- textord/.*\.h
|
|
|
|
- viewer/.*\.h
|
|
|
|
- wordrec/.*\.h
|
|
|
|
|
|
|
|
- vs2010/port/.*
|
|
|
|
|
|
|
|
exclude_from_build:
|
|
|
|
- api/tesseractmain.cpp
|
|
|
|
- viewer/svpaint.cpp
|
|
|
|
|
|
|
|
include_directories:
|
2016-12-24 04:26:40 +08:00
|
|
|
public:
|
|
|
|
#private:
|
2016-12-23 03:30:16 +08:00
|
|
|
- arch
|
|
|
|
- classify
|
|
|
|
- cutil
|
2016-12-24 04:26:40 +08:00
|
|
|
- ccutil
|
2016-12-23 03:30:16 +08:00
|
|
|
- dict
|
|
|
|
- lstm
|
|
|
|
- opencl
|
|
|
|
- textord
|
|
|
|
- vs2010/port
|
|
|
|
- viewer
|
|
|
|
- wordrec
|
2016-12-24 04:26:40 +08:00
|
|
|
#public:
|
2016-12-23 03:30:16 +08:00
|
|
|
- api
|
|
|
|
- ccmain
|
|
|
|
- ccstruct
|
|
|
|
- ccutil
|
|
|
|
|
|
|
|
check_function_exists:
|
|
|
|
- getline
|
|
|
|
|
|
|
|
check_symbol_exists:
|
|
|
|
snprintf: stdio.h
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
check_type_size:
|
|
|
|
- long long int
|
|
|
|
- off_t
|
|
|
|
- mbstate_t
|
|
|
|
- wchar_t
|
|
|
|
- _Bool
|
|
|
|
|
|
|
|
pre_sources: |
|
2017-02-24 00:29:48 +08:00
|
|
|
file_write_once(${BDIR}/config_auto.h "")
|
2016-12-23 03:30:16 +08:00
|
|
|
|
|
|
|
post_sources: |
|
2017-02-24 00:29:48 +08:00
|
|
|
if (WIN32)
|
|
|
|
set_source_files_properties(
|
2017-02-24 01:47:17 +08:00
|
|
|
${SDIR}/arch/dotproductsse.cpp
|
2017-02-24 00:29:48 +08:00
|
|
|
PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
|
|
|
|
if (MSVC)
|
|
|
|
set_source_files_properties(
|
2017-02-24 01:47:17 +08:00
|
|
|
${SDIR}/arch/dotproductavx.cpp
|
2017-02-24 00:29:48 +08:00
|
|
|
PROPERTIES COMPILE_FLAGS "/arch:AVX")
|
|
|
|
endif()
|
|
|
|
else()
|
2017-01-12 02:27:45 +08:00
|
|
|
remove_src_dir(vs2010/port/*)
|
2016-12-23 03:30:16 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
options:
|
|
|
|
any:
|
|
|
|
definitions:
|
|
|
|
public:
|
|
|
|
- HAVE_CONFIG_H
|
|
|
|
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
|
|
|
|
- USE_STD_NAMESPACE=1
|
|
|
|
- WINDLLNAME="tesseract"
|
|
|
|
shared:
|
|
|
|
definitions:
|
|
|
|
private:
|
|
|
|
- TESS_EXPORTS
|
|
|
|
interface:
|
|
|
|
- TESS_IMPORTS
|
|
|
|
|
|
|
|
dependencies:
|
2017-01-24 04:52:57 +08:00
|
|
|
pvt.cppan.demo.danbloomberg.leptonica: 1
|
2016-12-23 03:30:16 +08:00
|
|
|
|
2017-02-23 20:39:58 +08:00
|
|
|
tesseract:
|
2016-12-24 04:29:30 +08:00
|
|
|
files: api/tesseractmain.cpp
|
2017-01-02 07:12:50 +08:00
|
|
|
dependencies:
|
2017-02-23 20:54:56 +08:00
|
|
|
- libtesseract
|
2016-12-24 04:29:30 +08:00
|
|
|
|
2016-12-24 04:26:40 +08:00
|
|
|
tessopt:
|
|
|
|
type: lib
|
|
|
|
static_only: true
|
|
|
|
files: training/tessopt.*
|
2017-01-02 08:08:55 +08:00
|
|
|
include_directories: training
|
2017-02-23 20:54:56 +08:00
|
|
|
dependencies: libtesseract
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
common_training:
|
|
|
|
type: lib
|
|
|
|
static_only: true
|
|
|
|
files:
|
|
|
|
- training/commandlineflags.cpp
|
|
|
|
- training/commandlineflags.h
|
|
|
|
- training/commontraining.cpp
|
|
|
|
- training/commontraining.h
|
2017-01-02 08:08:55 +08:00
|
|
|
include_directories: training
|
2017-01-02 07:12:50 +08:00
|
|
|
dependencies:
|
|
|
|
- tessopt
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
ambiguous_words:
|
|
|
|
files: training/ambiguous_words.cpp
|
2017-01-02 07:12:50 +08:00
|
|
|
dependencies:
|
2017-02-23 20:54:56 +08:00
|
|
|
- libtesseract
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
classifier_tester:
|
|
|
|
files: training/classifier_tester.cpp
|
|
|
|
dependencies: common_training
|
|
|
|
|
|
|
|
combine_tessdata:
|
|
|
|
files: training/combine_tessdata.cpp
|
2017-02-23 20:54:56 +08:00
|
|
|
dependencies: libtesseract
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
cntraining:
|
|
|
|
files: training/cntraining.cpp
|
|
|
|
dependencies: common_training
|
|
|
|
|
|
|
|
dawg2wordlist:
|
|
|
|
files: training/dawg2wordlist.cpp
|
2017-02-23 20:54:56 +08:00
|
|
|
dependencies: libtesseract
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
mftraining:
|
|
|
|
files:
|
|
|
|
- training/mftraining.cpp
|
|
|
|
- training/mergenf.*
|
|
|
|
dependencies: common_training
|
|
|
|
|
|
|
|
shapeclustering:
|
|
|
|
files: training/shapeclustering.cpp
|
|
|
|
dependencies: common_training
|
|
|
|
|
|
|
|
unicharset_extractor:
|
|
|
|
files: training/unicharset_extractor.cpp
|
|
|
|
dependencies: tessopt
|
|
|
|
|
|
|
|
wordlist2dawg:
|
|
|
|
files: training/wordlist2dawg.cpp
|
2017-02-23 20:54:56 +08:00
|
|
|
dependencies: libtesseract
|
2016-12-24 04:26:40 +08:00
|
|
|
|
|
|
|
unicharset_training:
|
|
|
|
type: lib
|
|
|
|
static_only: true
|
|
|
|
files:
|
|
|
|
- training/fileio.*
|
|
|
|
- training/icuerrorcode.h
|
|
|
|
- training/lstmtester.*
|
|
|
|
- training/normstrngs.*
|
|
|
|
- training/unicharset_training_utils.*
|
2017-01-02 08:08:55 +08:00
|
|
|
include_directories: training
|
2016-12-24 04:26:40 +08:00
|
|
|
dependencies:
|
|
|
|
- common_training
|
|
|
|
- pvt.cppan.demo.unicode.icu.i18n
|
|
|
|
|
|
|
|
lstmeval:
|
|
|
|
files: training/lstmeval.cpp
|
|
|
|
dependencies: unicharset_training
|
|
|
|
|
|
|
|
lstmtraining:
|
|
|
|
files: training/lstmtraining.cpp
|
|
|
|
dependencies: unicharset_training
|
|
|
|
|
|
|
|
set_unicharset_properties:
|
|
|
|
files: training/set_unicharset_properties.cpp
|
|
|
|
dependencies: unicharset_training
|
|
|
|
|
2017-01-12 02:27:45 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-24 04:26:40 +08:00
|
|
|
|