From 19213e23a011cb56df8280b7af30fe981b1beef2 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 31 Dec 2020 17:53:01 +0100 Subject: [PATCH] Fix broken autotools build for unittest Signed-off-by: Stefan Weil --- Makefile.am | 1 - unittest/Makefile.am | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 31297fc33..21c5a9485 100644 --- a/Makefile.am +++ b/Makefile.am @@ -815,7 +815,6 @@ noinst_HEADERS += src/training/pango/stringrenderer.h noinst_HEADERS += src/training/tessopt.h noinst_HEADERS += src/training/pango/tlog.h noinst_HEADERS += src/training/unicharset/unicharset_training_utils.h -noinst_HEADERS += src/training/util.h noinst_HEADERS += src/training/unicharset/validate_grapheme.h noinst_HEADERS += src/training/unicharset/validate_indic.h noinst_HEADERS += src/training/unicharset/validate_javanese.h diff --git a/unittest/Makefile.am b/unittest/Makefile.am index fcc8c8f98..fc01bf80d 100644 --- a/unittest/Makefile.am +++ b/unittest/Makefile.am @@ -29,6 +29,9 @@ AM_CPPFLAGS += -DPANGO_ENABLE_ENGINE if DISABLED_LEGACY_ENGINE AM_CPPFLAGS += -DDISABLED_LEGACY_ENGINE endif # DISABLED_LEGACY_ENGINE +AM_CPPFLAGS += -DTESS_COMMON_TRAINING_API= +AM_CPPFLAGS += -DTESS_PANGO_TRAINING_API= +AM_CPPFLAGS += -DTESS_UNICHARSET_TRAINING_API= AM_CPPFLAGS += -I$(top_builddir)/include AM_CPPFLAGS += -I$(top_srcdir)/include AM_CPPFLAGS += -I$(top_srcdir)/src/arch @@ -46,6 +49,9 @@ AM_CPPFLAGS += -I$(top_srcdir)/unittest/util AM_CPPFLAGS += $(LEPTONICA_CFLAGS) if ENABLE_TRAINING AM_CPPFLAGS += -I$(top_srcdir)/src/training +AM_CPPFLAGS += -I$(top_srcdir)/src/training/common +AM_CPPFLAGS += -I$(top_srcdir)/src/training/pango +AM_CPPFLAGS += -I$(top_srcdir)/src/training/unicharset AM_CPPFLAGS += $(pangocairo_CFLAGS) endif # ENABLE_TRAINING AM_CPPFLAGS += -I$(top_srcdir)/src/viewer