From eb5ad74665e3ca72e8b53e806d05143dfe0ef432 Mon Sep 17 00:00:00 2001 From: amitdo Date: Thu, 18 Jun 2020 18:24:17 +0300 Subject: [PATCH] Disabled legacy build: Don't compile permdawg.cpp --- CMakeLists.txt | 1 + Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 982cb10e..d426ffcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,6 +449,7 @@ if (DISABLED_LEGACY_ENGINE) src/classify/shapetable.cpp src/classify/tessclassifier.cpp src/classify/trainingsample.cpp + src/dict/permdawg.cpp src/dict/hyphen.cpp src/wordrec/associate.cpp src/wordrec/chop.cpp diff --git a/Makefile.am b/Makefile.am index aa935fd1..54674f14 100644 --- a/Makefile.am +++ b/Makefile.am @@ -488,11 +488,11 @@ libtesseract_la_SOURCES += src/dict/context.cpp libtesseract_la_SOURCES += src/dict/dawg.cpp libtesseract_la_SOURCES += src/dict/dawg_cache.cpp libtesseract_la_SOURCES += src/dict/dict.cpp -libtesseract_la_SOURCES += src/dict/permdawg.cpp libtesseract_la_SOURCES += src/dict/stopper.cpp libtesseract_la_SOURCES += src/dict/trie.cpp if !DISABLED_LEGACY_ENGINE libtesseract_la_SOURCES += src/dict/hyphen.cpp +libtesseract_la_SOURCES += src/dict/permdawg.cpp endif # Rules for src/lstm.