Skip to content

Commit

Permalink
install only necessary headers, fix uninstall
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@692 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
zdenop@gmail.com committed Mar 3, 2012
1 parent 3b32653 commit 97e1944
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 34 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \

#EXTRA_DIST = doc/html doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.pdf doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.ps.gz

uninstall:
rm -rf $(DESTDIR)$(includedir)

dist-hook:
# Need to remove .svn directories from directories
# added using EXTRA_DIST. $(distdir)/tessdata would in
Expand Down
4 changes: 2 additions & 2 deletions api/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if VISIBILITY
AM_CPPFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
apitypes.h baseapi.h tesseractmain.h
include_HEADERS = apitypes.h baseapi.h
noinst_HEADERS = tesseractmain.h
lib_LTLIBRARIES =

if !USING_MULTIPLELIBS
Expand Down
2 changes: 1 addition & 1 deletion api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
*
**********************************************************************/

#include "mfcpch.h"
// #define USE_VLD //Uncomment for Visual Leak Detector.
#if (defined _MSC_VER && defined USE_VLD)
#include "mfcpch.h"
#include <vld.h>
#endif

Expand Down
6 changes: 3 additions & 3 deletions ccmain/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
include_HEADERS = thresholder.h
noinst_HEADERS = \
control.h cube_reco_context.h cubeclassifier.h \
docqual.h equationdetect.h fixspace.h \
imgscale.h ltrresultiterator.h mutableiterator.h osdetect.h output.h \
pageiterator.h paragraphs.h paragraphs_internal.h paramsd.h pgedit.h \
reject.h resultiterator.h scaleimg.h \
tessbox.h tessedit.h tesseractclass.h \
tesseract_cube_combiner.h \
tessvars.h tfacep.h tfacepp.h thresholder.h \
werdit.h
tessvars.h tfacep.h tfacepp.h werdit.h

if !USING_MULTIPLELIBS
noinst_LTLIBRARIES = libtesseract_main.la
Expand Down
4 changes: 2 additions & 2 deletions ccstruct/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
include_HEADERS = publictypes.h
noinst_HEADERS = \
blckerr.h blobbox.h blobs.h blread.h boxread.h boxword.h ccstruct.h coutln.h crakedge.h \
detlinefit.h dppoint.h fontinfo.h genblob.h hpddef.h hpdsizes.h ipoints.h \
linlsq.h matrix.h mod128.h normalis.h \
ocrblock.h ocrpara.h ocrrow.h otsuthr.h \
pageres.h params_training_featdef.h \
pdblock.h points.h polyaprx.h polyblk.h \
publictypes.h \
quadlsq.h quadratc.h quspline.h ratngs.h rect.h rejctmap.h \
seam.h split.h statistc.h stepblob.h vecfuncs.h werd.h

Expand Down
22 changes: 9 additions & 13 deletions ccutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ endif

EXTRA_DIST = mfcpch.cpp

include_HEADERS = \
ambigs.h basedir.h bits16.h bitvector.h \
tesscallback.h ccutil.h clst.h \
elst2.h elst.h errcode.h \
fileerr.h genericvector.h globaloc.h \
hashfn.h helpers.h host.h hosthplb.h indexmapbidi.h lsterr.h \
memry.h mfcpch.h \
ndminx.h notdll.h nwmain.h \
ocrclass.h platform.h qrsequence.h \
secname.h serialis.h sorthelper.h stderr.h strngs.h \
tessdatamanager.h tprintf.h \
unichar.h unicharmap.h unicharset.h unicity_table.h unicodes.h \
params.h
include_HEADERS = errcode.h fileerr.h host.h memry.h \
platform.h serialis.h strngs.h tesscallback.h unichar.h
noinst_HEADERS = \
ambigs.h basedir.h bits16.h bitvector.h ccutil.h clst.h \
elst2.h elst.h genericvector.h globaloc.h hashfn.h helpers.h \
hosthplb.h indexmapbidi.h lsterr.h mfcpch.h ndminx.h notdll.h \
nwmain.h ocrclass.h qrsequence.h secname.h sorthelper.h stderr.h \
tessdatamanager.h tprintf.h unicharmap.h unicharset.h \
unicity_table.h unicodes.h params.h

if !USING_MULTIPLELIBS
noinst_LTLIBRARIES = libtesseract_ccutil.la
Expand Down
2 changes: 1 addition & 1 deletion classify/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
adaptive.h baseline.h blobclass.h chartoname.h \
classify.h cluster.h clusttool.h cutoffs.h \
errorcounter.h extern.h extract.h \
Expand Down
2 changes: 1 addition & 1 deletion cube/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
altlist.h beam_search.h bmp_8.h cached_file.h \
char_altlist.h char_bigrams.h char_samp.h char_samp_enum.h \
char_samp_set.h char_set.h classifier_base.h classifier_factory.h \
Expand Down
2 changes: 1 addition & 1 deletion cutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
bitvec.h callcpp.h const.h cutil.h cutil_class.h danerror.h efio.h \
emalloc.h freelist.h globals.h listio.h \
oldheap.h oldlist.h structures.h tessarray.h
Expand Down
2 changes: 1 addition & 1 deletion dict/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
dawg.h dict.h matchdefs.h \
permute.h states.h stopper.h trie.h

Expand Down
2 changes: 1 addition & 1 deletion image/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
image.h img.h imgerrs.h imgs.h \
imgtiff.h imgunpk.h svshowim.h

Expand Down
2 changes: 1 addition & 1 deletion neural_networks/runtime/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
input_file_buffer.h neural_net.h neuron.h

if !USING_MULTIPLELIBS
Expand Down
2 changes: 1 addition & 1 deletion textord/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
endif


include_HEADERS = \
noinst_HEADERS = \
alignedblob.h bbgrid.h blkocc.h blobgrid.h \
ccnontextdetect.h cjkpitch.h colfind.h colpartition.h colpartitionset.h \
colpartitiongrid.h \
Expand Down
3 changes: 1 addition & 2 deletions training/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SUBDIRS =
AM_CPPFLAGS = \
-DUSE_STD_NAMESPACE \
-I$(top_srcdir)/ccmain -I$(top_srcdir)/api \
Expand All @@ -8,7 +7,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/classify -I$(top_srcdir)/display \
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil

include_HEADERS = \
noinst_HEADERS = \
commontraining.h tessopt.h mergenf.h

noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
Expand Down
2 changes: 1 addition & 1 deletion viewer/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
scrollview.h svmnode.h svutil.h

if !USING_MULTIPLELIBS
Expand Down
4 changes: 1 addition & 3 deletions wordrec/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif

include_HEADERS = \
noinst_HEADERS = \
associate.h bestfirst.h chop.h \
chopper.h closed.h drawfx.h findseam.h gradechop.h \
language_model.h makechop.h matchtab.h measure.h \
Expand Down Expand Up @@ -39,5 +39,3 @@ libtesseract_wordrec_la_SOURCES = \
olutil.cpp outlines.cpp pieces.cpp \
plotedges.cpp plotseg.cpp render.cpp segsearch.cpp \
tface.cpp wordclass.cpp wordrec.cpp


0 comments on commit 97e1944

Please sign in to comment.