forked from qt-creator/qt-creator
Qnx: Install/uninstall NDK targets
Basic implementation of an install/uninstall targets utility. Note: This does not support 10.1 NKDs. Change-Id: I3bb29ef467dd24a121ee59e11abb2237dcff696a Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
This commit is contained in:
committed by
Mehdi Fekari
parent
668a50b775
commit
59a578d4a9
@@ -1,8 +1,8 @@
|
||||
/**************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011 - 2013 Research In Motion
|
||||
** Copyright (C) 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.
|
||||
@@ -311,3 +311,28 @@ QList<NdkInstallInformation> QnxUtils::installedNdks()
|
||||
|
||||
return ndkList;
|
||||
}
|
||||
|
||||
QString QnxUtils::sdkInstallerPath(const QString &ndkPath)
|
||||
{
|
||||
QString sdkinstallPath;
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
sdkinstallPath = ndkPath + QLatin1String("/qde.exe");
|
||||
else
|
||||
sdkinstallPath = ndkPath + QLatin1String("/qde");
|
||||
|
||||
if (QFileInfo(sdkinstallPath).exists())
|
||||
return sdkinstallPath;
|
||||
|
||||
return QString();
|
||||
}
|
||||
|
||||
// The resulting process when launching sdkinstall
|
||||
QString QnxUtils::qdeInstallProcess(const QString &ndkPath, const QString &option, const QString &version)
|
||||
{
|
||||
QString installerPath = sdkInstallerPath(ndkPath);
|
||||
if (ndkPath.isEmpty())
|
||||
return QString();
|
||||
|
||||
return QString::fromLatin1("%1 -nosplash -application com.qnx.tools.ide.sdk.manager.core.SDKInstallerApplication "
|
||||
"%2 %3 -vmargs -Dosgi.console=:none").arg(installerPath, option, version);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user