Skip to content

Commit

Permalink
Fixing Wec2013 qmake support for VS2013 SDKs.
Browse files Browse the repository at this point in the history
SDKs generated from VS2013 use a different folder for
build settings than those generated from VS2012.
Check both folders, before rejecting a potential
SDK.

Change-Id: I5bee5cc3771352adaab07d39ebbc350618f6c573
Reviewed-by: Oswald Buddenhagen <[email protected]>
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
bbreitmeyer committed Jul 21, 2015
1 parent d149b1c commit e5b8c38
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions qmake/generators/win32/cesdkhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,14 @@ QStringList CeSdkHandler::filterMsBuildToolPaths(const QStringList &paths) const
{
QStringList result;
foreach (const QString &path, paths) {
QDir dir(path);
QDir dirVC110(path);
if (path.endsWith(QStringLiteral("bin")))
dir.cdUp();
if (dir.cd(QStringLiteral("Microsoft.Cpp\\v4.0\\V110\\Platforms"))
|| dir.cd(QStringLiteral("Microsoft.Cpp\\v4.0\\V120\\Platforms"))) {
result << dir.absolutePath();
}
dirVC110.cdUp();
QDir dirVC120 = dirVC110;
if (dirVC110.cd(QStringLiteral("Microsoft.Cpp\\v4.0\\V110\\Platforms")))
result << dirVC110.absolutePath();
if (dirVC120.cd(QStringLiteral("Microsoft.Cpp\\v4.0\\V120\\Platforms")))
result << dirVC120.absolutePath();
}
return result;
}
Expand Down Expand Up @@ -287,6 +288,8 @@ void CeSdkHandler::retrieveWEC2013SDKs()
currentSdk.m_minor = currentProperty.properties.value(QLatin1String("OSMinor")).value.toInt();
retrieveEnvironment(currentProperty.properties.value(QLatin1String("MSBuild Files110")).value.split(';'),
filteredToolPaths, &currentSdk);
retrieveEnvironment(currentProperty.properties.value(QLatin1String("MSBuild Files120")).value.split(';'),
filteredToolPaths, &currentSdk);
if (!currentSdk.m_include.isEmpty())
m_list.append(currentSdk);
}
Expand Down

0 comments on commit e5b8c38

Please sign in to comment.