Skip to content

Commit 301eaec

Browse files
committed
replace vs2008 directory with vs2010 directory (fixes cygwin build)
1 parent 5cc948d commit 301eaec

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

ccutil/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ libtesseract_ccutil_la_SOURCES = \
4242
params.cpp universalambigs.cpp
4343

4444
if T_WIN
45-
AM_CPPFLAGS += -I$(top_srcdir)/vs2008/port -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
45+
AM_CPPFLAGS += -I$(top_srcdir)/vs2010/port -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
4646
noinst_HEADERS += ../vs2010/port/strtok_r.h
4747
libtesseract_ccutil_la_SOURCES += ../vs2010/port/strtok_r.cpp
4848
endif

ccutil/Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ host_triplet = @host@
8282
@NO_TESSDATA_PREFIX_FALSE@am__append_1 = -DTESSDATA_PREFIX=@datadir@/
8383
@VISIBILITY_TRUE@am__append_2 = -fvisibility=hidden -fvisibility-inlines-hidden
8484
@VISIBILITY_TRUE@am__append_3 = -DTESS_EXPORTS
85-
@T_WIN_TRUE@am__append_4 = -I$(top_srcdir)/vs2008/port -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
85+
@T_WIN_TRUE@am__append_4 = -I$(top_srcdir)/vs2010/port -DWINDLLNAME=\"lib@GENERIC_LIBRARY_NAME@\"
8686
@T_WIN_TRUE@am__append_5 = ../vs2010/port/strtok_r.h
8787
@T_WIN_TRUE@am__append_6 = ../vs2010/port/strtok_r.cpp
8888
subdir = ccutil

contrib/tesseract-c_api-demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
lang = "eng"
2929
filename = "../phototest.tif"
3030
libpath = "/usr/local/lib64/"
31-
libpath_w = "../vs2008/DLL_Release/"
31+
libpath_w = "../vs2010/DLL_Release/"
3232
TESSDATA_PREFIX = os.environ.get('TESSDATA_PREFIX')
3333
if not TESSDATA_PREFIX:
3434
TESSDATA_PREFIX = "../"

doc/Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ RECURSIVE = YES
828828
# Note that relative paths are relative to the directory from which doxygen is
829829
# run.
830830

831-
EXCLUDE = vs2008
831+
EXCLUDE = vs2010
832832

833833
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
834834
# directories that are symbolic links (a Unix file system feature) are excluded

vs2010/tesshelper.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from builtins import input
44
"""
55
tesshelper.py -- Utility operations to compare, report stats, and copy
6-
public headers for tesseract 3.0x VS2008 Project
6+
public headers for tesseract 3.0x VS2010 Project
77
88
$RCSfile: tesshelper.py,v $ $Revision: 7ca575b377aa $ $Date: 2012/03/07 17:26:31 $
99
"""
@@ -31,14 +31,14 @@
3131
epilogStr = r"""
3232
Examples:
3333
34-
Assume that tesshelper.py is in c:\buildfolder\tesseract-3.02\vs2008,
34+
Assume that tesshelper.py is in c:\buildfolder\tesseract-3.02\vs2010,
3535
which is also the current directory. Then,
3636
3737
python tesshelper .. compare
3838
3939
will compare c:\buildfolder\tesseract-3.02 "library" directories to the
4040
libtesseract Project
41-
(c:\buildfolder\tesseract-3.02\vs2008\libtesseract\libtesseract.vcproj).
41+
(c:\buildfolder\tesseract-3.02\vs2010\libtesseract\libtesseract.vcproj).
4242
4343
python tesshelper .. report
4444
@@ -52,7 +52,7 @@
5252
5353
python tesshelper .. clean
5454
55-
will clean the vs2008 folder of all build directories, and .user, .suo,
55+
will clean the vs2010 folder of all build directories, and .user, .suo,
5656
.ncb, and other temp files.
5757
5858
"""
@@ -70,7 +70,7 @@
7070
# ====================================================================
7171

7272
VERSION = "1.0 %s" % "$Date: 2012/03/07 17:26:31 $".split()[1]
73-
PROJ_SUBDIR = r"vs2008\libtesseract"
73+
PROJ_SUBDIR = r"vs2010\libtesseract"
7474
PROJFILE = "libtesseract.vcproj"
7575

7676
NEWHEADERS_FILENAME = "newheaders.txt"
@@ -209,7 +209,7 @@ def tessCompare(tessDir):
209209
def tessReport(tessDir):
210210
"""Report summary stats on "sub-library" files and libtesseract Project file."""
211211

212-
vs2010Dir = os.path.join(tessDir, "vs2008")
212+
vs2010Dir = os.path.join(tessDir, "vs2010")
213213
libTessDir = os.path.join(vs2010Dir, "libtesseract")
214214
libProjectFile = os.path.join(libTessDir,"libtesseract.vcproj")
215215
tessAbsDir = os.path.abspath(tessDir)
@@ -253,7 +253,7 @@ def tessReport(tessDir):
253253
print(" %5d %3d %3d" % (totalFiles, totalH, totalCPP))
254254

255255
print()
256-
print('Summary stats for VS2008 Project "%s"' % libProjectFile)
256+
print('Summary stats for VS2010 Project "%s"' % libProjectFile)
257257
print(" %5d %s" %(len(projectHFiles), "Header files"))
258258
print(" %5d %s" % (len(projectCFiles), "Source files"))
259259
print(" %5d %s" % (len(projectRFiles), "Resource files"))
@@ -359,9 +359,9 @@ def tessCopy(tessDir, includeDir):
359359
}
360360

361361
extraFilesSet = {
362-
#r"vs2008\include\stdint.h",
363-
r"vs2008\include\leptonica_versionnumbers.vsprops",
364-
r"vs2008\include\tesseract_versionnumbers.vsprops",
362+
#r"vs2010\include\stdint.h",
363+
r"vs2010\include\leptonica_versionnumbers.vsprops",
364+
r"vs2010\include\tesseract_versionnumbers.vsprops",
365365
}
366366

367367
tessIncludeDir = os.path.join(includeDir, "tesseract")
@@ -380,21 +380,21 @@ def tessCopy(tessDir, includeDir):
380380
# ====================================================================
381381

382382
def tessClean(tessDir):
383-
'''Clean vs2008 folder of all build directories and certain temp files.'''
383+
'''Clean vs2010 folder of all build directories and certain temp files.'''
384384

385-
vs2010Dir = os.path.join(tessDir, "vs2008")
386-
vs2008AbsDir = os.path.abspath(vs2010Dir)
385+
vs2010Dir = os.path.join(tessDir, "vs2010")
386+
vs2010AbsDir = os.path.abspath(vs2010Dir)
387387

388388
answer = eval(input(
389389
'Are you sure you want to clean the\n "%s" folder (Yes/No) [No]? ' %
390-
vs2008AbsDir))
390+
vs2010AbsDir))
391391
if answer.lower() not in ("yes",):
392392
return
393393
answer = eval(input('Only list the items to be deleted (Yes/No) [Yes]? '))
394394
answer = answer.strip()
395395
listOnly = answer.lower() not in ("no",)
396396

397-
for rootDir, dirs, files in os.walk(vs2008AbsDir):
397+
for rootDir, dirs, files in os.walk(vs2010AbsDir):
398398
for buildDir in ("LIB_Release", "LIB_Debug", "DLL_Release", "DLL_Debug"):
399399
if buildDir in dirs:
400400
dirs.remove(buildDir)
@@ -405,7 +405,7 @@ def tessClean(tessDir):
405405
print("Removing: %s" % absBuildDir)
406406
shutil.rmtree(absBuildDir)
407407

408-
if rootDir == vs2008AbsDir:
408+
if rootDir == vs2010AbsDir:
409409
for file in files:
410410
if file.lower() not in ("tesseract.sln",
411411
"tesshelper.py",
@@ -484,7 +484,7 @@ def main ():
484484
parser_copy.set_defaults(func=tessCopy)
485485

486486
parser_clean = subparsers.add_parser('clean',
487-
help="clean vs2008 folder of build folders and .user files")
487+
help="clean vs2010 folder of build folders and .user files")
488488
parser_clean.set_defaults(func=tessClean)
489489

490490
#kludge because argparse has no ability to set default subparser

0 commit comments

Comments
 (0)