fix check for Windows CE platform

We don't have to do fuzzy mkspec name searches anymore.
The WinCE mkspecs add "wince" to QMAKE_PLATFORM which ends
up in CONFIG.

Change-Id: I6c0576b5504beb416e95eeae0dec579b16b84746
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Joerg Bornemann 2013-02-12 10:04:06 +01:00 committed by The Qt Project
parent cd84491aad
commit 93b155a850

View File

@ -79,7 +79,7 @@ NmakeMakefileGenerator::writeMakefile(QTextStream &t)
#endif #endif
if (!project->isHostBuild()) { if (!project->isHostBuild()) {
const ProValueMap &variables = project->variables(); const ProValueMap &variables = project->variables();
if (variables["QMAKESPEC"].first().contains("wince", Qt::CaseInsensitive)) { if (project->isActiveConfig("wince")) {
CeSdkHandler sdkhandler; CeSdkHandler sdkhandler;
sdkhandler.parse(); sdkhandler.parse();
const QString sdkName = variables["CE_SDK"].join(' ') const QString sdkName = variables["CE_SDK"].join(' ')