[sw] Install tess headers.

This commit is contained in:
Egor Pugin 2019-07-28 18:20:43 +03:00 committed by zdenop
parent 7fcad19286
commit f522b51b90

77
sw.cpp
View File

@ -87,6 +87,83 @@ void build(Solution &s)
libtesseract.Variables["TESSERACT_MICRO_VERSION"] = libtesseract.Variables["PACKAGE_PATCH_VERSION"];
libtesseract.Variables["TESSERACT_VERSION_STR"] = "master";
libtesseract.configureFile("src/api/tess_version.h.in", "tess_version.h");
// install
if (!libtesseract.DryRun)
{
const Files files
{
// from api/makefile.am
"src/api/apitypes.h",
"src/api/baseapi.h",
"src/api/capi.h",
"src/api/renderer.h",
"tess_version.h",
//from arch/makefile.am
"src/arch/dotproduct.h",
"src/arch/intsimdmatrix.h",
"src/arch/simddetect.h",
//from ccmain/makefile.am
"src/ccmain/thresholder.h",
"src/ccmain/ltrresultiterator.h",
"src/ccmain/pageiterator.h",
"src/ccmain/resultiterator.h",
"src/ccmain/osdetect.h",
//from ccstruct/makefile.am
"src/ccstruct/publictypes.h",
//from ccutil/makefile.am
"src/ccutil/basedir.h",
"src/ccutil/errcode.h",
"src/ccutil/fileerr.h",
"src/ccutil/genericvector.h",
"src/ccutil/helpers.h",
"src/ccutil/params.h",
"src/ccutil/ocrclass.h",
"src/ccutil/platform.h",
"src/ccutil/serialis.h",
"src/ccutil/strngs.h",
"src/ccutil/unichar.h",
"src/ccutil/unicharcompress.h",
"src/ccutil/unicharmap.h",
"src/ccutil/unicharset.h",
//from lstm/makefile.am
"src/lstm/convolve.h",
"src/lstm/ctc.h",
"src/lstm/fullyconnected.h",
"src/lstm/functions.h",
"src/lstm/input.h",
"src/lstm/lstm.h",
"src/lstm/lstmrecognizer.h",
"src/lstm/maxpool.h",
"src/lstm/networkbuilder.h",
"src/lstm/network.h",
"src/lstm/networkio.h",
"src/lstm/networkscratch.h",
"src/lstm/parallel.h",
"src/lstm/plumbing.h",
"src/lstm/recodebeam.h",
"src/lstm/reconfig.h",
"src/lstm/reversed.h",
"src/lstm/series.h",
"src/lstm/static_shape.h",
"src/lstm/stridemap.h",
"src/lstm/tfnetwork.h",
"src/lstm/weightmatrix.h",
};
auto d = libtesseract.BinaryDir / "tesseract";
fs::create_directories(d);
for (auto f : files)
{
libtesseract.check_absolute(f);
fs::copy_file(f, d / f.filename(), fs::copy_options::overwrite_existing);
}
}
}
//