forked from qt-creator/qt-creator
QMake: Use FilePath::resolvePath to resolve files
Works with remote files, too. Change-Id: I90244e456633aec1c2a750b4be3c707efeede42c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -377,11 +377,9 @@ QVariant QmakeProFileNode::data(Utils::Id role) const
|
|||||||
if (role == Android::Constants::AndroidSoLibPath) {
|
if (role == Android::Constants::AndroidSoLibPath) {
|
||||||
TargetInformation info = targetInformation();
|
TargetInformation info = targetInformation();
|
||||||
QStringList res = {info.buildDir.toString()};
|
QStringList res = {info.buildDir.toString()};
|
||||||
Utils::FilePath destDir = info.destDir;
|
FilePath destDir = info.destDir;
|
||||||
if (!destDir.isEmpty()) {
|
if (!destDir.isEmpty()) {
|
||||||
if (destDir.toFileInfo().isRelative())
|
destDir = info.buildDir.resolvePath(destDir.path());
|
||||||
destDir = Utils::FilePath::fromString(QDir::cleanPath(info.buildDir.toString()
|
|
||||||
+ '/' + destDir.toString()));
|
|
||||||
res.append(destDir.toString());
|
res.append(destDir.toString());
|
||||||
}
|
}
|
||||||
res.removeDuplicates();
|
res.removeDuplicates();
|
||||||
|
Reference in New Issue
Block a user