2014-09-29 05:19:52 +08:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
2012-03-23 04:01:33 +08:00
|
|
|
AM_CPPFLAGS += \
|
2014-01-10 02:01:34 +08:00
|
|
|
-DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE\
|
2012-02-02 11:02:16 +08:00
|
|
|
-I$(top_srcdir)/ccmain -I$(top_srcdir)/api \
|
2007-03-08 04:03:40 +08:00
|
|
|
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
2016-11-08 07:38:07 +08:00
|
|
|
-I$(top_srcdir)/lstm -I$(top_srcdir)/arch \
|
2014-01-10 02:01:34 +08:00
|
|
|
-I$(top_srcdir)/viewer \
|
2011-10-17 03:39:54 +08:00
|
|
|
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
|
2007-03-08 04:03:40 +08:00
|
|
|
-I$(top_srcdir)/classify -I$(top_srcdir)/display \
|
2011-10-17 03:39:54 +08:00
|
|
|
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2015-05-13 09:08:39 +08:00
|
|
|
EXTRA_DIST = language-specific.sh tesstrain.sh tesstrain_utils.sh
|
2014-08-12 07:20:45 +08:00
|
|
|
|
2012-03-04 05:13:42 +08:00
|
|
|
# TODO: training programs can not be linked to shared library created
|
|
|
|
# with -fvisibility
|
|
|
|
if VISIBILITY
|
2012-03-23 04:01:33 +08:00
|
|
|
AM_LDFLAGS += -all-static
|
2012-03-04 05:13:42 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-03 21:22:51 +08:00
|
|
|
noinst_HEADERS = \
|
2014-01-10 02:01:34 +08:00
|
|
|
boxchar.h commandlineflags.h commontraining.h degradeimage.h \
|
2017-08-03 04:29:23 +08:00
|
|
|
fileio.h icuerrorcode.h lang_model_helpers.h ligature_table.h \
|
|
|
|
lstmtester.h mergenf.h normstrngs.h pango_font_info.h stringrenderer.h \
|
2017-07-15 01:05:05 +08:00
|
|
|
tessopt.h tlog.h unicharset_training_utils.h util.h \
|
|
|
|
validate_grapheme.h validate_indic.h validate_khmer.h \
|
|
|
|
validate_myanmar.h validator.h
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2011-08-30 05:28:28 +08:00
|
|
|
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
|
|
|
|
2014-01-11 07:52:04 +08:00
|
|
|
libtesseract_training_la_LIBADD = \
|
|
|
|
../cutil/libtesseract_cutil.la
|
|
|
|
# ../api/libtesseract.la
|
|
|
|
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training_la_SOURCES = \
|
2017-09-11 00:21:52 +08:00
|
|
|
boxchar.cpp commandlineflags.cpp commontraining.cpp degradeimage.cpp \
|
2017-08-03 04:29:23 +08:00
|
|
|
fileio.cpp lang_model_helpers.cpp ligature_table.cpp lstmtester.cpp \
|
|
|
|
normstrngs.cpp pango_font_info.cpp stringrenderer.cpp tlog.cpp unicharset_training_utils.cpp \
|
2017-07-15 01:05:05 +08:00
|
|
|
validate_grapheme.cpp validate_indic.cpp validate_khmer.cpp \
|
|
|
|
validate_myanmar.cpp validator.cpp
|
2012-03-24 18:14:47 +08:00
|
|
|
|
2010-11-24 02:34:14 +08:00
|
|
|
libtesseract_tessopt_la_SOURCES = \
|
|
|
|
tessopt.cpp
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2017-09-11 00:21:52 +08:00
|
|
|
bin_PROGRAMS = \
|
|
|
|
ambiguous_words\
|
|
|
|
classifier_tester \
|
|
|
|
cntraining \
|
|
|
|
combine_lang_model \
|
|
|
|
combine_tessdata \
|
|
|
|
dawg2wordlist \
|
|
|
|
lstmeval \
|
|
|
|
lstmtraining \
|
|
|
|
merge_unicharsets \
|
|
|
|
mftraining \
|
|
|
|
set_unicharset_properties \
|
|
|
|
shapeclustering \
|
|
|
|
text2image \
|
|
|
|
unicharset_extractor \
|
|
|
|
wordlist2dawg
|
2012-02-02 11:02:16 +08:00
|
|
|
|
|
|
|
ambiguous_words_SOURCES = ambiguous_words.cpp
|
|
|
|
ambiguous_words_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
ambiguous_words_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
|
|
|
|
classifier_tester_SOURCES = classifier_tester.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#classifier_tester_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
classifier_tester_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
classifier_tester_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
|
2017-08-03 04:29:23 +08:00
|
|
|
combine_lang_model_SOURCES = combine_lang_model.cpp
|
|
|
|
#combine_lang_model_LDFLAGS = -static
|
|
|
|
combine_lang_model_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la \
|
|
|
|
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
|
|
|
combine_lang_model_LDADD += \
|
|
|
|
../api/libtesseract.la
|
|
|
|
|
2009-07-11 10:44:07 +08:00
|
|
|
combine_tessdata_SOURCES = combine_tessdata.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#combine_tessdata_LDFLAGS = -static
|
2011-08-30 05:28:28 +08:00
|
|
|
combine_tessdata_LDADD = \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2009-07-11 10:44:07 +08:00
|
|
|
|
|
|
|
cntraining_SOURCES = cntraining.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#cntraining_LDFLAGS = -static
|
2007-03-08 04:03:40 +08:00
|
|
|
cntraining_LDADD = \
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training.la \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
cntraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2012-02-02 11:02:16 +08:00
|
|
|
dawg2wordlist_SOURCES = dawg2wordlist.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#dawg2wordlist_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
dawg2wordlist_LDADD = \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
dawg2wordlist_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
|
2016-12-01 07:51:17 +08:00
|
|
|
lstmeval_SOURCES = lstmeval.cpp
|
|
|
|
#lstmeval_LDFLAGS = -static
|
|
|
|
lstmeval_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la \
|
2016-12-13 20:26:40 +08:00
|
|
|
$(ICU_UC_LIBS)
|
2016-12-01 07:51:17 +08:00
|
|
|
lstmeval_LDADD += \
|
|
|
|
../api/libtesseract.la
|
|
|
|
|
2016-11-08 07:38:07 +08:00
|
|
|
lstmtraining_SOURCES = lstmtraining.cpp
|
|
|
|
#lstmtraining_LDFLAGS = -static
|
|
|
|
lstmtraining_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la \
|
2016-12-13 20:26:40 +08:00
|
|
|
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2016-11-08 07:38:07 +08:00
|
|
|
lstmtraining_LDADD += \
|
|
|
|
../api/libtesseract.la
|
|
|
|
|
2017-09-11 00:21:52 +08:00
|
|
|
merge_unicharsets_SOURCES = merge_unicharsets.cpp
|
|
|
|
#merge_unicharsets_LDFLAGS = -static
|
|
|
|
merge_unicharsets_LDADD = \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
merge_unicharsets_LDADD += \
|
|
|
|
../api/libtesseract.la
|
|
|
|
|
2009-07-11 10:44:07 +08:00
|
|
|
mftraining_SOURCES = mftraining.cpp mergenf.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#mftraining_LDFLAGS = -static
|
2007-03-08 04:03:40 +08:00
|
|
|
mftraining_LDADD = \
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training.la \
|
2016-12-13 20:26:40 +08:00
|
|
|
libtesseract_tessopt.la \
|
|
|
|
$(ICU_UC_LIBS)
|
2011-10-17 03:39:54 +08:00
|
|
|
mftraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2013-09-23 23:26:50 +08:00
|
|
|
set_unicharset_properties_SOURCES = set_unicharset_properties.cpp
|
|
|
|
set_unicharset_properties_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la \
|
2016-12-13 20:26:40 +08:00
|
|
|
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2013-09-23 23:26:50 +08:00
|
|
|
set_unicharset_properties_LDADD += \
|
|
|
|
../api/libtesseract.la
|
|
|
|
|
2012-02-02 11:02:16 +08:00
|
|
|
shapeclustering_SOURCES = shapeclustering.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#shapeclustering_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
shapeclustering_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
shapeclustering_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
|
2014-01-10 02:01:34 +08:00
|
|
|
text2image_SOURCES = text2image.cpp
|
|
|
|
#text2image_LDFLAGS = -static
|
|
|
|
text2image_LDADD = \
|
|
|
|
libtesseract_training.la \
|
2016-12-13 20:26:40 +08:00
|
|
|
libtesseract_tessopt.la \
|
|
|
|
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2014-01-10 02:01:34 +08:00
|
|
|
text2image_LDADD += \
|
|
|
|
../api/libtesseract.la
|
2016-12-13 20:26:40 +08:00
|
|
|
text2image_LDADD += $(ICU_UC_LIBS) -lpango-1.0 -lpangocairo-1.0 \
|
2015-05-14 08:46:58 +08:00
|
|
|
-lgobject-2.0 -lglib-2.0 -lcairo -lpangoft2-1.0 -lfontconfig
|
2014-01-10 02:01:34 +08:00
|
|
|
|
2007-07-18 09:04:56 +08:00
|
|
|
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#unicharset_extractor_LDFLAGS = -static
|
2007-07-18 09:04:56 +08:00
|
|
|
unicharset_extractor_LDADD = \
|
2017-09-11 17:15:25 +08:00
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la \
|
|
|
|
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
2011-10-17 03:39:54 +08:00
|
|
|
unicharset_extractor_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2007-07-18 09:04:56 +08:00
|
|
|
wordlist2dawg_SOURCES = wordlist2dawg.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#wordlist2dawg_LDFLAGS = -static
|
2007-07-18 09:04:56 +08:00
|
|
|
wordlist2dawg_LDADD = \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
wordlist2dawg_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-03-24 18:14:47 +08:00
|
|
|
|
2014-09-29 05:19:52 +08:00
|
|
|
if T_WIN
|
2012-03-24 18:14:47 +08:00
|
|
|
ambiguous_words_LDADD += -lws2_32
|
|
|
|
classifier_tester_LDADD += -lws2_32
|
|
|
|
cntraining_LDADD += -lws2_32
|
|
|
|
combine_tessdata_LDADD += -lws2_32
|
|
|
|
dawg2wordlist_LDADD += -lws2_32
|
2017-09-11 00:21:52 +08:00
|
|
|
merge_unicharsets_LDADD += -lws2_32
|
2012-03-24 18:14:47 +08:00
|
|
|
mftraining_LDADD += -lws2_32
|
2014-05-17 03:36:32 +08:00
|
|
|
set_unicharset_properties_LDADD += -lws2_32
|
2012-03-24 18:14:47 +08:00
|
|
|
shapeclustering_LDADD += -lws2_32
|
|
|
|
unicharset_extractor_LDADD += -lws2_32
|
2014-05-17 03:36:32 +08:00
|
|
|
text2image_LDADD += -lws2_32
|
2012-03-24 18:14:47 +08:00
|
|
|
wordlist2dawg_LDADD += -lws2_32
|
2014-01-27 06:39:20 +08:00
|
|
|
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/vs2010/port
|
2013-09-23 23:26:50 +08:00
|
|
|
endif
|
2014-05-17 03:36:32 +08:00
|
|
|
|
2015-08-26 17:03:07 +08:00
|
|
|
ambiguous_words_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
classifier_tester_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
cntraining_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
combine_tessdata_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
dawg2wordlist_LDFLAGS = $(OPENCL_LDFLAGS)
|
2017-09-11 00:21:52 +08:00
|
|
|
merge_unicharsets_LDFLAGS = $(OPENCL_LDFLAGS)
|
2015-08-26 17:03:07 +08:00
|
|
|
mftraining_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
set_unicharset_properties_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
shapeclustering_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
text2image_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
unicharset_extractor_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
wordlist2dawg_LDFLAGS = $(OPENCL_LDFLAGS)
|
2016-12-16 00:21:27 +08:00
|
|
|
|
|
|
|
ambiguous_words_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
classifier_tester_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
cntraining_LDADD += $(LEPTONICA_LIBS)
|
2016-12-16 05:20:35 +08:00
|
|
|
combine_tessdata_LDADD += $(LEPTONICA_LIBS)
|
2016-12-16 00:21:27 +08:00
|
|
|
dawg2wordlist_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
lstmeval_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
lstmtraining_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
mftraining_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
set_unicharset_properties_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
shapeclustering_LDADD += $(LEPTONICA_LIBS)
|
|
|
|
text2image_LDADD += $(LEPTONICA_LIBS)
|
2016-12-16 05:20:35 +08:00
|
|
|
unicharset_extractor_LDFLAGS += $(LEPTONICA_LIBS)
|
2016-12-16 00:21:27 +08:00
|
|
|
wordlist2dawg_LDADD += $(LEPTONICA_LIBS)
|