Skip to content

Commit e87e896

Browse files
committed
Remove more header files from public API
Install only those headers which are needed by third party applications. Signed-off-by: Stefan Weil <[email protected]>
1 parent 29f280e commit e87e896

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

src/ccmain/Makefile.am

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
2020
endif
2121

2222
pkginclude_HEADERS = \
23-
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h \
24-
osdetect.h
23+
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h
24+
2525
noinst_HEADERS = \
2626
control.h docqual.h equationdetect.h fixspace.h mutableiterator.h \
27-
output.h paragraphs.h paragraphs_internal.h paramsd.h pgedit.h \
27+
output.h paragraphs.h paragraphs_internal.h osdetect.h paramsd.h pgedit.h \
2828
reject.h tessbox.h tessedit.h tesseractclass.h tessvars.h werdit.h
2929

3030
noinst_LTLIBRARIES = libtesseract_main.la

src/ccutil/Makefile.am

+8-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ AM_CPPFLAGS += -DTESS_EXPORTS
1212
endif
1313

1414
pkginclude_HEADERS = \
15-
basedir.h errcode.h fileerr.h genericvector.h helpers.h host.h memry.h \
16-
ndminx.h params.h ocrclass.h platform.h serialis.h strngs.h \
17-
tesscallback.h unichar.h unicharcompress.h unicharmap.h unicharset.h
15+
errcode.h genericvector.h helpers.h host.h memry.h \
16+
ndminx.h ocrclass.h platform.h serialis.h strngs.h \
17+
tesscallback.h unichar.h
1818

1919
noinst_HEADERS = \
20-
ambigs.h bits16.h bitvector.h ccutil.h clst.h doubleptr.h elst2.h \
21-
elst.h genericheap.h globaloc.h indexmapbidi.h kdpair.h lsterr.h \
22-
nwmain.h object_cache.h qrsequence.h sorthelper.h stderr.h \
23-
scanutils.h tessdatamanager.h tprintf.h unicity_table.h unicodes.h \
20+
ambigs.h basedir.h bits16.h bitvector.h ccutil.h clst.h doubleptr.h elst2.h \
21+
elst.h fileerr.h genericheap.h globaloc.h indexmapbidi.h kdpair.h lsterr.h \
22+
nwmain.h object_cache.h params.h qrsequence.h sorthelper.h stderr.h \
23+
scanutils.h tessdatamanager.h tprintf.h \
24+
unicharcompress.h unicharmap.h unicharset.h unicity_table.h unicodes.h \
2425
universalambigs.h
2526

2627
noinst_LTLIBRARIES = libtesseract_ccutil.la

src/lstm/Makefile.am

+8-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ AM_CPPFLAGS += -DTESS_EXPORTS
2121
endif
2222

2323
pkginclude_HEADERS = \
24-
convolve.h ctc.h fullyconnected.h functions.h input.h \
25-
lstm.h lstmrecognizer.h lstmtrainer.h maxpool.h \
26-
networkbuilder.h network.h networkio.h networkscratch.h \
27-
parallel.h plumbing.h recodebeam.h reconfig.h reversed.h \
28-
series.h static_shape.h stridemap.h tfnetwork.h weightmatrix.h
24+
network.h networkio.h networkscratch.h \
25+
static_shape.h stridemap.h weightmatrix.h
2926

30-
noinst_HEADERS =
27+
noinst_HEADERS = convolve.h ctc.h
28+
noinst_HEADERS += fullyconnected.h functions.h input.h
29+
noinst_HEADERS += lstm.h lstmrecognizer.h lstmtrainer.h maxpool.h
30+
noinst_HEADERS += networkbuilder.h
31+
noinst_HEADERS += parallel.h plumbing.h recodebeam.h reconfig.h reversed.h
32+
noinst_HEADERS += series.h tfnetwork.h
3133

3234
noinst_LTLIBRARIES = libtesseract_lstm.la
3335

0 commit comments

Comments
 (0)