forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user