use the qmake config setting HAVE_RULES to enable/disable pcre rules support,
defaulting to on except on Windows.
This commit is contained in:
parent
232007b3c0
commit
33b5970c91
11
lib/lib.pri
11
lib/lib.pri
|
@ -1,7 +1,14 @@
|
|||
# no manual edits - this file is autogenerated by dmake
|
||||
|
||||
LIBS += -L../externals -lpcre
|
||||
INCLUDEPATH += ../externals ../externals/tinyxml
|
||||
!win32 {
|
||||
CONFIG += HAVE_RULES
|
||||
}
|
||||
HAVE_RULES {
|
||||
DEFINES += HAVE_RULES
|
||||
LIBS += -L../externals -lpcre
|
||||
INCLUDEPATH += ../externals
|
||||
}
|
||||
INCLUDEPATH += ../externals/tinyxml
|
||||
HEADERS += $${BASEPATH}check.h \
|
||||
$${BASEPATH}check64bit.h \
|
||||
$${BASEPATH}checkassignif.h \
|
||||
|
|
|
@ -182,8 +182,15 @@ int main(int argc, char **argv)
|
|||
if (fout1.is_open())
|
||||
{
|
||||
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
|
||||
fout1 << "LIBS += -L../externals -lpcre\n";
|
||||
fout1 << "INCLUDEPATH += ../externals ../externals/tinyxml\n";
|
||||
fout1 << "!win32 {\n";
|
||||
fout1 << " CONFIG += HAVE_RULES\n";
|
||||
fout1 << "}\n";
|
||||
fout1 << "HAVE_RULES {\n";
|
||||
fout1 << " DEFINES += HAVE_RULES\n";
|
||||
fout1 << " LIBS += -L../externals -lpcre\n";
|
||||
fout1 << " INCLUDEPATH += ../externals\n";
|
||||
fout1 << "}\n";
|
||||
fout1 << "INCLUDEPATH += ../externals/tinyxml\n";
|
||||
fout1 << "HEADERS += $${BASEPATH}check.h \\\n";
|
||||
for (unsigned int i = 0; i < libfiles.size(); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue