Fix broken autotools build for unittest

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2020-12-31 17:53:01 +01:00
parent 615a224c56
commit 19213e23a0
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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