summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32/msvc_nmake.cpp
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-05-21 16:42:31 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-22 07:59:49 +0200
commit9d3b169bda1a48c6eee0820b6a2fd50d6dd6a023 (patch)
treef770d683f84d9a688b3668ce3867f66ec7d2bf88 /qmake/generators/win32/msvc_nmake.cpp
parent26a2fb744866414748ed35a36322460b06911394 (diff)
Add build support for Windows Phone 8.1
Tweak qmake, add mkspecs for emulator and device, adjust the manifest template for WP8.1, and add missing icons. Change-Id: I7a6405fa85297ae4cc8522015274e65fb7a315a6 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'qmake/generators/win32/msvc_nmake.cpp')
-rw-r--r--qmake/generators/win32/msvc_nmake.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/qmake/generators/win32/msvc_nmake.cpp b/qmake/generators/win32/msvc_nmake.cpp
index b8a564968d..4239ceb90f 100644
--- a/qmake/generators/win32/msvc_nmake.cpp
+++ b/qmake/generators/win32/msvc_nmake.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the qmake application of the Qt Toolkit.
@@ -166,10 +166,17 @@ NmakeMakefileGenerator::writeMakefile(QTextStream &t)
return false;
}
- regKey = regKeyPrefix
- + (isPhone ? QStringLiteral("Microsoft\\Microsoft SDKs\\WindowsPhone\\v")
- : QStringLiteral("Microsoft\\Microsoft SDKs\\Windows\\v"))
- + winsdkVer + QStringLiteral("\\InstallationFolder");
+ QString windowsPath;
+ if (isPhone) {
+ if (targetVer == "WP80") // ### Windows Phone 8.0, remove in Qt 5.4
+ windowsPath = "Microsoft\\Microsoft SDKs\\WindowsPhone\\v";
+ else
+ windowsPath = "Microsoft\\Microsoft SDKs\\WindowsPhoneApp\\v";
+ } else {
+ windowsPath = "Microsoft\\Microsoft SDKs\\Windows\\v";
+ }
+
+ regKey = regKeyPrefix + windowsPath + winsdkVer + QStringLiteral("\\InstallationFolder");
const QString kitDir = qt_readRegistryKey(HKEY_LOCAL_MACHINE, regKey);
if (kitDir.isEmpty()) {
fprintf(stderr, "Failed to find the Windows Kit installation directory.\n");
@@ -184,7 +191,9 @@ NmakeMakefileGenerator::writeMakefile(QTextStream &t)
QStringList libDirs;
QStringList binDirs;
if (isPhone) {
- QString sdkDir = vcInstallDir + QStringLiteral("/WPSDK/") + targetVer;
+ QString sdkDir = vcInstallDir;
+ if (targetVer == "WP80")
+ sdkDir += QStringLiteral("/WPSDK/") + targetVer;
if (!QDir(sdkDir).exists()) {
fprintf(stderr, "Failed to find the Windows Phone SDK in %s.\n"
"Check that it is properly installed.\n",
@@ -192,7 +201,8 @@ NmakeMakefileGenerator::writeMakefile(QTextStream &t)
return false;
}
incDirs << sdkDir + QStringLiteral("/include");
- libDirs << sdkDir + QStringLiteral("/lib/") + compilerArch;
+ libDirs << sdkDir + QStringLiteral("/lib/store/") + compilerArch
+ << sdkDir + QStringLiteral("/lib/") + compilerArch;
binDirs << sdkDir + QStringLiteral("/bin/") + compiler;
libDirs << kitDir + QStringLiteral("/lib/") + arch;
incDirs << kitDir + QStringLiteral("/include")