forked from qt-creator/qt-creator
QNX: OS/X support
On OS/X, use the darwin subdirectories in the environment. Makes it easier for those of us with access to the OS/X based QNX tools to use Qt Creator on OS/X. Change-Id: Iebc3a89978e6211781404bfc8a4ba95a3523d8b5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -305,6 +305,15 @@ QList<Utils::EnvironmentItem> QnxUtils::qnxEnvironment(const QString &sdkPath)
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
//environment.insert(QLatin1String("PATH"), QLatin1String("/etc/qnx/bin"));
|
//environment.insert(QLatin1String("PATH"), QLatin1String("/etc/qnx/bin"));
|
||||||
|
} else if (Utils::HostOsInfo::isMacHost()) {
|
||||||
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String("QNX_CONFIGURATION"), QLatin1String("/etc/qnx")));
|
||||||
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String(Constants::QNX_TARGET_KEY), sdkPath + QLatin1String("/target/qnx6")));
|
||||||
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String(Constants::QNX_HOST_KEY), sdkPath + QLatin1String("/host/darwin/x86")));
|
||||||
|
|
||||||
|
|
||||||
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String("PATH"), sdkPath + QLatin1String("/host/darwin/x86/usr/bin:/etc/qnx/bin:${PATH}")));
|
||||||
|
|
||||||
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String("LD_LIBRARY_PATH"), sdkPath + QLatin1String("/host/darwin/x86/usr/lib:${LD_LIBRARY_PATH}")));
|
||||||
} else if (Utils::HostOsInfo::isAnyUnixHost()) {
|
} else if (Utils::HostOsInfo::isAnyUnixHost()) {
|
||||||
environmentItems.append(Utils::EnvironmentItem(QLatin1String("QNX_CONFIGURATION"), QLatin1String("/etc/qnx")));
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String("QNX_CONFIGURATION"), QLatin1String("/etc/qnx")));
|
||||||
environmentItems.append(Utils::EnvironmentItem(QLatin1String(Constants::QNX_TARGET_KEY), sdkPath + QLatin1String("/target/qnx6")));
|
environmentItems.append(Utils::EnvironmentItem(QLatin1String(Constants::QNX_TARGET_KEY), sdkPath + QLatin1String("/target/qnx6")));
|
||||||
|
|||||||
Reference in New Issue
Block a user