@@ -4,7 +4,6 @@ AM_CPPFLAGS += \
4
4
-I$(top_srcdir ) /viewer \
5
5
-I$(top_srcdir ) /classify -I$(top_srcdir ) /dict \
6
6
-I$(top_srcdir ) /wordrec -I$(top_srcdir ) /cutil \
7
- -I$(top_srcdir ) /neural_networks/runtime -I$(top_srcdir ) /cube \
8
7
-I$(top_srcdir ) /textord -I$(top_srcdir ) /opencl
9
8
if USE_OPENCL
10
9
AM_CPPFLAGS += -I$(OPENCL_HDR_PATH )
@@ -15,43 +14,50 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
15
14
endif
16
15
17
16
include_HEADERS = \
18
- thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h \
19
- osdetect.h
17
+ thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h \
18
+ osdetect.h
20
19
noinst_HEADERS = \
21
- control.h cube_reco_context.h cubeclassifier.h docqual.h \
22
- equationdetect.h fixspace.h mutableiterator.h \
20
+ control.h docqual.h equationdetect.h fixspace.h mutableiterator.h \
23
21
output.h paragraphs.h paragraphs_internal.h paramsd.h pgedit.h \
24
- reject.h tessbox.h tessedit.h tesseractclass.h \
25
- tesseract_cube_combiner.h tessvars.h werdit.h
22
+ reject.h tessbox.h tessedit.h tesseractclass.h tessvars.h werdit.h
26
23
27
24
if !USING_MULTIPLELIBS
28
25
noinst_LTLIBRARIES = libtesseract_main.la
29
26
else
30
27
lib_LTLIBRARIES = libtesseract_main.la
31
28
libtesseract_main_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION )
32
29
libtesseract_main_la_LIBADD = \
33
- ../wordrec/libtesseract_wordrec.la \
34
- ../textord/libtesseract_textord.la \
30
+ ../wordrec/libtesseract_wordrec.la \
31
+ ../textord/libtesseract_textord.la \
35
32
../ccutil/libtesseract_ccutil.la \
36
- ../ccstruct/libtesseract_ccstruct.la \
37
- ../viewer/libtesseract_viewer.la \
38
- ../dict/libtesseract_dict.la \
39
- ../classify/libtesseract_classify.la \
40
- ../cutil/libtesseract_cutil.la \
41
- ../cube/libtesseract_cube.la \
42
- ../opencl/libtesseract_opencl.la
43
-
33
+ ../ccstruct/libtesseract_ccstruct.la \
34
+ ../viewer/libtesseract_viewer.la \
35
+ ../dict/libtesseract_dict.la \
36
+ ../classify/libtesseract_classify.la \
37
+ ../cutil/libtesseract_cutil.la \
38
+ ../opencl/libtesseract_opencl.la
39
+ if !NO_CUBE_BUILD
40
+ libtesseract_main_la_LIBADD += ../cube/libtesseract_cube.la
41
+ endif
44
42
endif
45
43
46
44
libtesseract_main_la_SOURCES = \
47
- adaptions.cpp applybox.cpp \
48
- control.cpp cube_control.cpp cube_reco_context.cpp cubeclassifier.cpp \
45
+ adaptions.cpp applybox.cpp control.cpp \
49
46
docqual.cpp equationdetect.cpp fixspace.cpp fixxht.cpp \
50
47
ltrresultiterator.cpp \
51
48
osdetect.cpp output.cpp pageiterator.cpp pagesegmain.cpp \
52
49
pagewalk.cpp par_control.cpp paragraphs.cpp paramsd.cpp pgedit.cpp recogtraining.cpp \
53
50
reject.cpp resultiterator.cpp superscript.cpp \
54
- tesseract_cube_combiner.cpp \
55
51
tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \
56
52
tfacepp.cpp thresholder.cpp \
57
53
werdit.cpp
54
+
55
+ if !NO_CUBE_BUILD
56
+ AM_CPPFLAGS += \
57
+ -I$(top_srcdir ) /neural_networks/runtime -I$(top_srcdir ) /cube
58
+ noinst_HEADERS += \
59
+ cube_reco_context.h cubeclassifier.h tesseract_cube_combiner.h
60
+ libtesseract_main_la_SOURCES += \
61
+ cube_control.cpp cube_reco_context.cpp cubeclassifier.cpp \
62
+ tesseract_cube_combiner.cpp
63
+ endif
0 commit comments