forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.6'
Conflicts: src/libs/utils/settingsaccessor.cpp src/plugins/autotest/autotestplugin.cpp src/plugins/git/gitclient.cpp src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp src/plugins/qbsprojectmanager/qbsrunconfiguration.h Change-Id: I65f143cad18af509a2621d6c5925abbd038ea70f
This commit is contained in:
@@ -156,8 +156,8 @@ bool AndroidDeployQtStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
m_filesToPull["/system/bin/app_process32"] = buildDir + "app_process";
|
||||
}
|
||||
} else {
|
||||
m_appProcessBinaries << QLatin1String("/system/bin/app_process32")
|
||||
<< QLatin1String("/system/bin/app_process");
|
||||
m_filesToPull["/system/bin/app_process32"] = buildDir + "app_process";
|
||||
m_filesToPull["/system/bin/app_process"] = buildDir + "app_process";
|
||||
}
|
||||
|
||||
m_filesToPull["/system/bin/" + linkerName] = buildDir + linkerName;
|
||||
|
||||
@@ -116,7 +116,6 @@ private:
|
||||
QString m_avdName;
|
||||
QString m_apkPath;
|
||||
QMap<QString, QString> m_filesToPull;
|
||||
QStringList m_appProcessBinaries;
|
||||
|
||||
QString m_targetArch;
|
||||
bool m_uninstallPreviousPackage = false;
|
||||
|
||||
@@ -150,7 +150,8 @@ QString AndroidToolChain::typeDisplayName() const
|
||||
bool AndroidToolChain::isValid() const
|
||||
{
|
||||
return GccToolChain::isValid() && targetAbi().isValid() && !m_ndkToolChainVersion.isEmpty()
|
||||
&& compilerCommand().isChildOf(AndroidConfigurations::currentConfig().ndkLocation());
|
||||
&& compilerCommand().isChildOf(AndroidConfigurations::currentConfig().ndkLocation())
|
||||
&& !originalTargetTriple().isEmpty();
|
||||
}
|
||||
|
||||
void AndroidToolChain::addToEnvironment(Environment &env) const
|
||||
@@ -417,6 +418,9 @@ bool AndroidToolChainFactory::versionCompareLess(const QList<int> &a, const QLis
|
||||
bool AndroidToolChainFactory::versionCompareLess(QList<AndroidToolChain *> atc,
|
||||
QList<AndroidToolChain *> btc)
|
||||
{
|
||||
if (atc.isEmpty() || btc.isEmpty())
|
||||
return false;
|
||||
|
||||
const QList<int> a = versionNumberFromString(atc.at(0)->ndkToolChainVersion());
|
||||
const QList<int> b = versionNumberFromString(btc.at(0)->ndkToolChainVersion());
|
||||
|
||||
@@ -463,7 +467,7 @@ AndroidToolChainFactory::autodetectToolChainsForNdk(const FileName &ndkPath,
|
||||
FileName compilerPath = AndroidConfigurations::currentConfig().gccPath(abi, lang, version);
|
||||
|
||||
AndroidToolChain *tc = findToolChain(compilerPath, lang, alreadyKnown);
|
||||
if (!tc) {
|
||||
if (!tc || tc->originalTargetTriple().isEmpty()) {
|
||||
tc = new AndroidToolChain(abi, version, lang,
|
||||
ToolChain::AutoDetection);
|
||||
tc->resetToolChain(compilerPath);
|
||||
@@ -473,6 +477,8 @@ AndroidToolChainFactory::autodetectToolChainsForNdk(const FileName &ndkPath,
|
||||
toolChainBundle.append(tc);
|
||||
}
|
||||
|
||||
QTC_ASSERT(!toolChainBundle.isEmpty(), continue);
|
||||
|
||||
auto it = newestToolChainForArch.constFind(abi);
|
||||
if (it == newestToolChainForArch.constEnd())
|
||||
newestToolChainForArch.insert(abi, toolChainBundle);
|
||||
|
||||
Reference in New Issue
Block a user