tesseract/cppan.yml

282 lines
7.7 KiB
YAML
Raw Normal View History

2016-09-29 17:24:18 +08:00
local_settings:
2017-01-16 15:17:13 +08:00
#use_shared_libs: true
#short_local_names: true
#use_cache: false
2017-01-14 03:16:17 +08:00
#generator: Visual Studio 14 2015 Win64
silent: false
#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
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
options:
any:
compiler_options:
msvc:
private:
- /openmp
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:
2018-04-28 17:04:47 +08:00
- src/api/tess_version.h.in
- src/api/.*\.cpp
- src/arch/.*\.cpp
- src/ccmain/.*\.cpp
- src/ccstruct/.*\.cpp
- src/ccutil/.*\.cpp
- src/classify/.*\.cpp
- src/cutil/.*\.cpp
- src/dict/.*\.cpp
- src/lstm/.*\.cpp
- src/opencl/.*\.cpp
- src/textord/.*\.cpp
- src/viewer/.*\.cpp
- src/wordrec/.*\.cpp
- src/api/.*\.h
- src/arch/.*\.h
- src/ccmain/.*\.h
- src/ccstruct/.*\.h
- src/ccutil/.*\.h
- src/classify/.*\.h
- src/cutil/.*\.h
- src/dict/.*\.h
- src/lstm/.*\.h
- src/opencl/.*\.h
- src/textord/.*\.h
- src/viewer/.*\.h
- src/wordrec/.*\.h
- src/vs2010/port/.*
2016-12-23 03:30:16 +08:00
exclude_from_build:
- src/api/tesseractmain.cpp
- src/viewer/svpaint.cpp
2016-12-23 03:30:16 +08:00
include_directories:
2016-12-24 04:26:40 +08:00
public:
#private:
- src/arch
- src/classify
- src/cutil
- src/ccutil
- src/dict
- src/lstm
- src/opencl
- src/textord
- src/vs2010/port
- src/viewer
- src/wordrec
2016-12-24 04:26:40 +08:00
#public:
- src/api
- src/ccmain
- src/ccstruct
- src/ccutil
2016-12-23 03:30:16 +08:00
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
- 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: |
configure_file(
${SDIR}/src/api/tess_version.h.in
${BDIR}/tess_version.h @ONLY)
2017-02-24 00:29:48 +08:00
if (WIN32)
if (MSVC)
set_source_files_properties(
${SDIR}/src/arch/dotproductsse.cpp
PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
set_source_files_properties(
${SDIR}/src/arch/intsimdmatrixsse.cpp
PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
set_source_files_properties(
${SDIR}/src/arch/dotproductavx.cpp
2017-02-24 00:29:48 +08:00
PROPERTIES COMPILE_FLAGS "/arch:AVX")
set_source_files_properties(
${SDIR}/src/arch/intsimdmatrixavx2.cpp
PROPERTIES COMPILE_FLAGS "/arch:AVX2")
2017-02-24 00:29:48 +08:00
endif()
else()
remove_src_dir(src/vs2010/port/*)
2016-12-23 03:30:16 +08:00
endif()
options:
any:
definitions:
public:
- HAVE_CONFIG_H
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=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:
files: src/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
2018-04-25 16:35:26 +08:00
files: src/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:
2018-04-25 16:35:26 +08:00
- src/training/commandlineflags.cpp
- src/training/commandlineflags.h
- src/training/commontraining.cpp
- src/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:
2018-04-25 16:35:26 +08:00
files: src/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:
2018-04-25 16:35:26 +08:00
files: src/training/classifier_tester.cpp
2016-12-24 04:26:40 +08:00
dependencies: common_training
combine_lang_model:
2018-04-25 16:35:26 +08:00
files: src/training/combine_lang_model.cpp
dependencies: unicharset_training
2016-12-24 04:26:40 +08:00
combine_tessdata:
2018-04-25 16:35:26 +08:00
files: src/training/combine_tessdata.cpp
2017-02-23 20:54:56 +08:00
dependencies: libtesseract
2016-12-24 04:26:40 +08:00
cntraining:
2018-04-25 16:35:26 +08:00
files: src/training/cntraining.cpp
2016-12-24 04:26:40 +08:00
dependencies: common_training
dawg2wordlist:
2018-04-25 16:35:26 +08:00
files: src/training/dawg2wordlist.cpp
2017-02-23 20:54:56 +08:00
dependencies: libtesseract
2016-12-24 04:26:40 +08:00
mftraining:
files:
2018-04-25 16:35:26 +08:00
- src/training/mftraining.cpp
- src/training/mergenf.*
2016-12-24 04:26:40 +08:00
dependencies: common_training
shapeclustering:
2018-04-25 16:35:26 +08:00
files: src/training/shapeclustering.cpp
2016-12-24 04:26:40 +08:00
dependencies: common_training
unicharset_extractor:
2018-04-25 16:35:26 +08:00
files: src/training/unicharset_extractor.cpp
2017-09-10 07:28:05 +08:00
dependencies: unicharset_training
2016-12-24 04:26:40 +08:00
wordlist2dawg:
2018-04-25 16:35:26 +08:00
files: src/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:
2018-04-25 16:35:26 +08:00
- src/training/fileio.*
- src/training/icuerrorcode.h
- src/training/lang_model_helpers.*
- src/training/lstmtester.*
- src/training/normstrngs.*
- src/training/unicharset_training_utils.*
- src/training/validat.*
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:
2018-04-25 16:35:26 +08:00
files: src/training/lstmeval.cpp
2016-12-24 04:26:40 +08:00
dependencies: unicharset_training
lstmtraining:
2018-04-25 16:35:26 +08:00
files: src/training/lstmtraining.cpp
2016-12-24 04:26:40 +08:00
dependencies: unicharset_training
set_unicharset_properties:
2018-04-25 16:35:26 +08:00
files: src/training/set_unicharset_properties.cpp
2016-12-24 04:26:40 +08:00
dependencies: unicharset_training
text2image:
files:
2018-04-25 16:35:26 +08:00
- src/training/text2image.cpp
- src/training/boxchar.cpp
- src/training/boxchar.h
- src/training/degradeimage.cpp
- src/training/degradeimage.h
- src/training/ligature_table.cpp
- src/training/ligature_table.h
- src/training/normstrngs.cpp
- src/training/normstrngs.h
- src/training/pango_font_info.cpp
- src/training/pango_font_info.h
- src/training/stringrenderer.cpp
- src/training/stringrenderer.h
- src/training/tlog.cpp
- src/training/tlog.h
- src/training/util.h
- src/training/icuerrorcode.h
dependencies:
- unicharset_training
- pvt.cppan.demo.gnome.pango.pangocairo: 1