summaryrefslogtreecommitdiff
path: root/src/plugins/qnx/qnxqtversion.cpp
diff options
context:
space:
mode:
authorMehdi Fekari <mfekari@blackberry.com>2013-10-12 19:20:37 +0200
committerMehdi Fekari <mfekari@blackberry.com>2013-10-21 10:24:48 +0200
commitab4207acf2f111f44d16ae5d63752ac59b312c1c (patch)
tree4e9a3e318f5616d3ff105e89ac0fc9c9c60fa863 /src/plugins/qnx/qnxqtversion.cpp
parent295c68846955efd4ba0c02ac3e8b6d72a07da157 (diff)
downloadqt-creator-ab4207acf2f111f44d16ae5d63752ac59b312c1c.tar.gz
Qnx: Use Utils::Environment for qnx environment
Change-Id: I499ca9be0abc15fc0c57847ff288e80612a536fe Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/qnx/qnxqtversion.cpp')
-rw-r--r--src/plugins/qnx/qnxqtversion.cpp34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/plugins/qnx/qnxqtversion.cpp b/src/plugins/qnx/qnxqtversion.cpp
index 9ac03c81fa..e134123088 100644
--- a/src/plugins/qnx/qnxqtversion.cpp
+++ b/src/plugins/qnx/qnxqtversion.cpp
@@ -33,6 +33,8 @@
#include "qnxconstants.h"
+#include "qnxutils.h"
+
#include <coreplugin/featureprovider.h>
#include <utils/hostosinfo.h>
@@ -92,35 +94,7 @@ QString QnxQtVersion::sdkDescription() const
return tr("QNX Software Development Platform:");
}
-QMultiMap<QString, QString> QnxQtVersion::environment() const
+QList<Utils::EnvironmentItem> QnxQtVersion::environment() const
{
- // Mimic what the SDP installer puts into the system environment
-
- QMultiMap<QString, QString> environment;
-
- if (Utils::HostOsInfo::isWindowsHost()) {
- // TODO:
- //environment.insert(QLatin1String("QNX_CONFIGURATION"), QLatin1String("/etc/qnx"));
- environment.insert(QLatin1String(Constants::QNX_TARGET_KEY), sdkPath() + QLatin1String("/target/qnx6"));
- environment.insert(QLatin1String(Constants::QNX_HOST_KEY), sdkPath() + QLatin1String("/host/win32/x86"));
-
- environment.insert(QLatin1String("PATH"), sdkPath() + QLatin1String("/host/win32/x86/usr/bin"));
-
- // TODO:
- //environment.insert(QLatin1String("PATH"), QLatin1String("/etc/qnx/bin"));
- } else if (Utils::HostOsInfo::isAnyUnixHost()) {
- environment.insert(QLatin1String("QNX_CONFIGURATION"), QLatin1String("/etc/qnx"));
- environment.insert(QLatin1String(Constants::QNX_TARGET_KEY), sdkPath() + QLatin1String("/target/qnx6"));
- environment.insert(QLatin1String(Constants::QNX_HOST_KEY), sdkPath() + QLatin1String("/host/linux/x86"));
-
- environment.insert(QLatin1String("PATH"), sdkPath() + QLatin1String("/host/linux/x86/usr/bin"));
- environment.insert(QLatin1String("PATH"), QLatin1String("/etc/qnx/bin"));
-
- environment.insert(QLatin1String("LD_LIBRARY_PATH"), sdkPath() + QLatin1String("/host/linux/x86/usr/lib"));
- }
-
- environment.insert(QLatin1String("QNX_JAVAHOME"), sdkPath() + QLatin1String("/_jvm"));
- environment.insert(QLatin1String("MAKEFLAGS"), QLatin1String("-I") + sdkPath() + QLatin1String("/target/qnx6/usr/include"));
-
- return environment;
+ return QnxUtils::qnxEnvironment(sdkPath());
}