diff options
author | aavit <qt-info@nokia.com> | 2010-11-09 11:20:26 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-11-09 11:20:26 (GMT) |
commit | d25330abf4bfe73b7c2867923c461a762747c485 (patch) | |
tree | cb7f975a7c3e38057b5fac96f0bc23ec6897087e | |
parent | e4aa7e8f270bb722c458a0e4a756a159ab695a9c (diff) | |
download | Qt-d25330abf4bfe73b7c2867923c461a762747c485.zip Qt-d25330abf4bfe73b7c2867923c461a762747c485.tar.gz Qt-d25330abf4bfe73b7c2867923c461a762747c485.tar.bz2 |
Really fix getting qmakespec on windows
-rw-r--r-- | tests/arthur/common/baselineprotocol.cpp | 3 | ||||
-rw-r--r-- | tests/auto/lancelot/lancelot.pro | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/arthur/common/baselineprotocol.cpp b/tests/arthur/common/baselineprotocol.cpp index 3fdef88..2a41104 100644 --- a/tests/arthur/common/baselineprotocol.cpp +++ b/tests/arthur/common/baselineprotocol.cpp @@ -58,8 +58,7 @@ PlatformInfo::PlatformInfo(bool useLocal) if (useLocal) { insert(PI_HostName, QHostInfo::localHostName()); insert(PI_QtVersion, QLS(qVersion())); - QString mkspec = QDir::fromNativeSeparators(QLS(QMAKESPEC)).remove(QRegExp(QLS("^.*/mkspecs/"))); - insert(PI_QMakeSpec, mkspec); + insert(PI_QMakeSpec, QString(QLS(QMAKESPEC)).remove(QRegExp(QLS("^.*mkspecs/")))); insert(PI_BuildKey, QLibraryInfo::buildKey()); #if defined(Q_OS_LINUX) insert(PI_OSName, QLS("Linux")); diff --git a/tests/auto/lancelot/lancelot.pro b/tests/auto/lancelot/lancelot.pro index 6498f6c..4535b83 100644 --- a/tests/auto/lancelot/lancelot.pro +++ b/tests/auto/lancelot/lancelot.pro @@ -8,6 +8,8 @@ HEADERS += $$QT_SOURCE_TREE/tests/arthur/common/paintcommands.h RESOURCES += $$QT_SOURCE_TREE/tests/arthur/common/images.qrc include($$QT_SOURCE_TREE/tests/arthur/common/baselineprotocol.pri) -DEFINES += QMAKESPEC=\\\"$$QMAKESPEC\\\" +win32|symbian*:MKSPEC=$$replace(QMAKESPEC, \\\\, /) +else:MKSPEC=$$QMAKESPEC +DEFINES += QMAKESPEC=\\\"$$MKSPEC\\\" !symbian:!wince*:DEFINES += SRCDIR=\\\"$$PWD\\\" |