use the qmake config setting HAVE_RULES to enable/disable pcre rules support,

defaulting to on except on Windows.
This commit is contained in:
Ryan Pavlik 2011-08-18 12:13:21 -05:00
parent 232007b3c0
commit 33b5970c91
2 changed files with 18 additions and 4 deletions

View File

@ -1,7 +1,14 @@
# no manual edits - this file is autogenerated by dmake # no manual edits - this file is autogenerated by dmake
LIBS += -L../externals -lpcre !win32 {
INCLUDEPATH += ../externals ../externals/tinyxml CONFIG += HAVE_RULES
}
HAVE_RULES {
DEFINES += HAVE_RULES
LIBS += -L../externals -lpcre
INCLUDEPATH += ../externals
}
INCLUDEPATH += ../externals/tinyxml
HEADERS += $${BASEPATH}check.h \ HEADERS += $${BASEPATH}check.h \
$${BASEPATH}check64bit.h \ $${BASEPATH}check64bit.h \
$${BASEPATH}checkassignif.h \ $${BASEPATH}checkassignif.h \

View File

@ -182,8 +182,15 @@ int main(int argc, char **argv)
if (fout1.is_open()) if (fout1.is_open())
{ {
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n"; fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
fout1 << "LIBS += -L../externals -lpcre\n"; fout1 << "!win32 {\n";
fout1 << "INCLUDEPATH += ../externals ../externals/tinyxml\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"; fout1 << "HEADERS += $${BASEPATH}check.h \\\n";
for (unsigned int i = 0; i < libfiles.size(); ++i) for (unsigned int i = 0; i < libfiles.size(); ++i)
{ {