Fix windows build.

This commit is contained in:
Egor Pugin 2019-04-01 22:38:01 +03:00
parent 81fbd878dd
commit af7cc1ce4c
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#include "debugpixa.h"
#include <stdint.h>
struct Boxa;
struct Pix;
struct Pixa;

3
sw.cpp
View File

@ -78,7 +78,10 @@ void build(Solution &s)
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;
if (s.Settings.TargetOS.Type == OSType::Windows)
{
libtesseract.Public += "ws2_32.lib"_l;
libtesseract.Protected += "NOMINMAX"_def;
}
libtesseract.Variables["TESSERACT_MAJOR_VERSION"] = libtesseract.Variables["PACKAGE_MAJOR_VERSION"];
libtesseract.Variables["TESSERACT_MINOR_VERSION"] = libtesseract.Variables["PACKAGE_MINOR_VERSION"];