[sw] Add svpaint.

This commit is contained in:
Egor Pugin 2022-07-25 22:02:54 +03:00
parent 5781e0d5cf
commit 4de02dd7f9
3 changed files with 10 additions and 7 deletions

View File

@ -89,7 +89,7 @@ struct SVEvent {
// The SVEventHandler class is used for Event handling: If you register your
// class as SVEventHandler to a ScrollView Window, the SVEventHandler will be
// called whenever an appropriate event occurs.
class SVEventHandler {
class TESS_API SVEventHandler {
public:
virtual ~SVEventHandler();

View File

@ -35,7 +35,7 @@ namespace tesseract {
class ScrollView;
class SVMenuNode {
class TESS_API SVMenuNode {
public:
// Creating the (empty) root menu node.
SVMenuNode();

13
sw.cpp
View File

@ -15,14 +15,10 @@ void build(Solution &s)
libtesseract += "TESS_API"_api;
libtesseract += "include/.*"_rr;
libtesseract += "src/.*"_rr;
libtesseract += "src/.+/.*"_rr;
libtesseract -= "src/lstm/.*\\.cc"_rr;
libtesseract -= "src/training/.*"_rr;
libtesseract -=
"src/tesseract.cpp",
"src/svpaint.cpp";
libtesseract.Public += "include"_idir;
libtesseract.Protected +=
"src/opencl"_id,
@ -121,6 +117,13 @@ void build(Solution &s)
tesseract += libtesseract;
}
auto &svpaint = tess.addExecutable("svpaint");
{
svpaint += cppstd;
svpaint += "src/svpaint.cpp";
svpaint += libtesseract;
}
auto &training = tess.addDirectory("training");
//