summaryrefslogtreecommitdiff
path: root/src/plugins/qnx/blackberryqtversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qnx/blackberryqtversion.cpp')
-rw-r--r--src/plugins/qnx/blackberryqtversion.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/plugins/qnx/blackberryqtversion.cpp b/src/plugins/qnx/blackberryqtversion.cpp
index 5ef63c37bb..208a71b148 100644
--- a/src/plugins/qnx/blackberryqtversion.cpp
+++ b/src/plugins/qnx/blackberryqtversion.cpp
@@ -1,8 +1,8 @@
/**************************************************************************
**
-** Copyright (C) 2011 - 2013 Research In Motion
+** Copyright (C) 2012, 2013 BlackBerry Limited. All rights reserved.
**
-** Contact: Research In Motion (blackberry-qt@qnx.com)
+** Contact: BlackBerry (qt@blackberry.com)
** Contact: KDAB (info@kdab.com)
**
** This file is part of Qt Creator.
@@ -103,14 +103,15 @@ void BlackBerryQtVersion::fromMap(const QVariantMap &map)
m_ndkEnvFile = map.value(NndkEnvFile).toString();
}
-QMultiMap<QString, QString> BlackBerryQtVersion::environment() const
+QList<Utils::EnvironmentItem> BlackBerryQtVersion::environment() const
{
QTC_CHECK(!sdkPath().isEmpty());
if (sdkPath().isEmpty())
- return QMultiMap<QString, QString>();
+ return QList<Utils::EnvironmentItem>();
QString envFile = m_ndkEnvFile.isEmpty() ? QnxUtils::envFilePath(sdkPath()) : m_ndkEnvFile;
- QMultiMap<QString,QString> result = QnxUtils::parseEnvironmentFile(envFile);
+ QList<Utils::EnvironmentItem> env = QnxUtils::qnxEnvironmentFromNdkFile(envFile);
+
// BB NDK Host is having qmake executable which is using qt.conf file to specify
// base information. The qt.conf file is using 'CPUVARDIR' environment variable
// to provide correct information for both x86 and armle-v7 architectures.
@@ -119,9 +120,11 @@ QMultiMap<QString, QString> BlackBerryQtVersion::environment() const
// CPUVARDIR to match expected architecture() otherwise qmake environment is
// always resolved to be for armle-v7 architecture only as it is specified
// BB NDK environment file.
- result.replace(QLatin1String("CPUVARDIR"),
- architecture() == X86 ? QLatin1String("x86") : QLatin1String("armle-v7"));
- return result;
+
+ env.append(Utils::EnvironmentItem(QLatin1String("CPUVARDIR"),
+ architecture() == X86 ? QLatin1String("x86") : QLatin1String("armle-v7")));
+
+ return env;
}
void BlackBerryQtVersion::setDefaultSdkPath()