QmakeAndroid: Fill application combobox

... using a new base ProjectNode::targetApplications() function.

Change-Id: Id210683dce6bfa7ffbc89973423d326d76ac9309
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-12-04 15:32:40 +01:00
parent 1dfa7279d4
commit a9ce1a66a0
7 changed files with 24 additions and 26 deletions

View File

@@ -216,6 +216,19 @@ QString QmakeProFileNode::buildKey() const
return filePath().toString();
}
QStringList QmakeProFileNode::targetApplications() const
{
QStringList apps;
if (includedInExactParse() && projectType() == ProjectType::ApplicationTemplate) {
const QString target = targetInformation().target;
if (target.startsWith("lib") && target.endsWith(".so"))
apps << target.mid(3, target.lastIndexOf('.') - 3);
else
apps << target;
}
return apps;
}
QmakeProFile *QmakeProFileNode::proFile() const
{
return static_cast<QmakeProFile*>(QmakePriFileNode::priFile());