summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorAndreas Holzammer <andreas.holzammer@kdab.com>2012-09-21 15:12:14 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 06:07:29 +0200
commit7ba31ff5a4f5b3a395efb7821df9834c76f9eb71 (patch)
tree6da5c826e7996a21d89233ca07604012f347885a /qmake
parentc39b6e31884a2ef16aa71e7ed191c9dcff35eefe (diff)
Fail when Windows CE SDK not found
Add failing when crosscompile for Windows CE and no matching SDK is found. Change-Id: I359e792fe46bab46729788666679a16cb94f340e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/win32/msvc_nmake.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qmake/generators/win32/msvc_nmake.cpp b/qmake/generators/win32/msvc_nmake.cpp
index 8af28e086f..d982d8bcf0 100644
--- a/qmake/generators/win32/msvc_nmake.cpp
+++ b/qmake/generators/win32/msvc_nmake.cpp
@@ -96,6 +96,17 @@ NmakeMakefileGenerator::writeMakefile(QTextStream &t)
t << "\nINCLUDE = " << sdk.includePath();
t << "\nLIB = " << sdk.libPath();
t << "\nPATH = " << sdk.binPath() << "\n";
+ } else {
+ QStringList sdkStringList;
+ foreach (const CeSdkInfo &info, sdkList)
+ sdkStringList << info.name();
+
+ fprintf(stderr, "Failed to find Windows CE SDK matching %s, found: %s\n"
+ "SDK needs to be specified in mkspec (using: %s/qmake.conf)\n"
+ "SDK name needs to match the following format: CE_SDK (CE_ARCH)\n",
+ qPrintable(sdkName), qPrintable(sdkStringList.join(", ")),
+ qPrintable(variables["QMAKESPEC"].first().toQString()));
+ return false;
}
}
}