summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-04-23 00:26:25 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-04-23 00:26:25 (GMT)
commitaf9fa6d83b30fb6434eefc478ab97c67c8e6ede4 (patch)
tree9fbfdfd05edbb9363aa738c545140d53323f0b8f /tools
parent478e914638f2131d1547c4e2dc4659723657194d (diff)
parentdea1e487b62bab557111e75bd1f534f16e9ca763 (diff)
downloadQt-af9fa6d83b30fb6434eefc478ab97c67c8e6ede4.zip
Qt-af9fa6d83b30fb6434eefc478ab97c67c8e6ede4.tar.gz
Qt-af9fa6d83b30fb6434eefc478ab97c67c8e6ede4.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.7
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp5
-rw-r--r--tools/configure/environment.cpp4
-rw-r--r--tools/configure/environment.h3
3 files changed, 9 insertions, 3 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 8a004fc..f4bd92e 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -1186,7 +1186,8 @@ void Configure::parseCmdLine()
dictionary[ "QMAKESPEC" ].endsWith( "-msvc2002" ) ||
dictionary[ "QMAKESPEC" ].endsWith( "-msvc2003" ) ||
dictionary[ "QMAKESPEC" ].endsWith( "-msvc2005" ) ||
- dictionary[ "QMAKESPEC" ].endsWith( "-msvc2008" )) {
+ dictionary[ "QMAKESPEC" ].endsWith( "-msvc2008" ) ||
+ dictionary[ "QMAKESPEC" ].endsWith( "-msvc2010" )) {
if ( dictionary[ "MAKE" ].isEmpty() ) dictionary[ "MAKE" ] = "nmake";
dictionary[ "QMAKEMAKEFILE" ] = "Makefile.win32";
} else if ( dictionary[ "QMAKESPEC" ] == QString( "win32-g++" ) ) {
@@ -2095,7 +2096,7 @@ bool Configure::checkAvailability(const QString &part)
} else if (part == "MULTIMEDIA" || part == "SCRIPT" || part == "SCRIPTTOOLS" || part == "DECLARATIVE") {
available = true;
} else if (part == "WEBKIT") {
- available = (dictionary.value("QMAKESPEC") == "win32-msvc2005") || (dictionary.value("QMAKESPEC") == "win32-msvc2008") || (dictionary.value("QMAKESPEC") == "win32-g++");
+ available = (dictionary.value("QMAKESPEC") == "win32-msvc2005") || (dictionary.value("QMAKESPEC") == "win32-msvc2008") || (dictionary.value("QMAKESPEC") == "win32-msvc2010") || (dictionary.value("QMAKESPEC") == "win32-g++");
} else if (part == "AUDIO_BACKEND") {
available = true;
if (dictionary.contains("XQMAKESPEC") && dictionary["XQMAKESPEC"].startsWith("symbian")) {
diff --git a/tools/configure/environment.cpp b/tools/configure/environment.cpp
index 60b8dcc..943a8a2 100644
--- a/tools/configure/environment.cpp
+++ b/tools/configure/environment.cpp
@@ -80,6 +80,7 @@ struct CompilerInfo{
{CC_NET2003, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2003 (7.1)", "Software\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\ProductDir", "cl.exe"}, // link.exe, lib.exe
{CC_NET2005, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2005 (8.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\8.0", "cl.exe"}, // link.exe, lib.exe
{CC_NET2008, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2008 (9.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\9.0", "cl.exe"}, // link.exe, lib.exe
+ {CC_NET2010, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2010 (10.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\10.0", "cl.exe"}, // link.exe, lib.exe
{CC_UNKNOWN, "Unknown", 0, 0},
};
@@ -105,6 +106,9 @@ QString Environment::detectQMakeSpec()
{
QString spec;
switch (detectCompiler()) {
+ case CC_NET2010:
+ spec = "win32-msvc2010";
+ break;
case CC_NET2008:
spec = "win32-msvc2008";
break;
diff --git a/tools/configure/environment.h b/tools/configure/environment.h
index b1cbe3a..16af8df 100644
--- a/tools/configure/environment.h
+++ b/tools/configure/environment.h
@@ -56,7 +56,8 @@ enum Compiler {
CC_NET2002 = 0x70,
CC_NET2003 = 0x71,
CC_NET2005 = 0x80,
- CC_NET2008 = 0x90
+ CC_NET2008 = 0x90,
+ CC_NET2010 = 0x91
};
struct CompilerInfo;