Skip to content

Commit

Permalink
[sw] Set cpp standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 25, 2020
1 parent 946ed4e commit 8c20573
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ void build(Solution &s)
libtesseract.ExportAllSymbols = true;
libtesseract.PackageDefinitions = true;

libtesseract += cpp14;

libtesseract += "src/.*"_rr;
libtesseract -= "src/lstm/.*\\.cc"_rr;
libtesseract -= "src/training/.*"_rr;
Expand Down Expand Up @@ -79,16 +81,19 @@ void build(Solution &s)

//
auto &tesseract = tess.addExecutable("tesseract");
tesseract += cpp14;
tesseract += "src/api/tesseractmain.cpp";
tesseract += libtesseract;

//
auto &tessopt = tess.addStaticLibrary("tessopt");
tessopt += cpp14;
tessopt += "src/training/tessopt.*"_rr;
tessopt.Public += libtesseract;

//
auto &common_training = tess.addStaticLibrary("common_training");
common_training += cpp14;
common_training +=
"src/training/commandlineflags.cpp",
"src/training/commandlineflags.h",
Expand All @@ -114,6 +119,7 @@ void build(Solution &s)

//
auto &unicharset_training = tess.addStaticLibrary("unicharset_training");
unicharset_training += cpp14;
unicharset_training +=
"src/training/fileio.*"_rr,
"src/training/icuerrorcode.*"_rr,
Expand All @@ -130,6 +136,7 @@ void build(Solution &s)
//
#define ADD_EXE(n, ...) \
auto &n = tess.addExecutable(#n); \
n += cpp14; \
n += "src/training/" #n ".*"_rr; \
n.Public += __VA_ARGS__; \
n
Expand All @@ -149,6 +156,7 @@ void build(Solution &s)
ADD_EXE(set_unicharset_properties, unicharset_training);

ADD_EXE(text2image, unicharset_training);
text2image += cpp14;
text2image +=
"src/training/boxchar.cpp",
"src/training/boxchar.h",
Expand Down

0 comments on commit 8c20573

Please sign in to comment.