forked from qt-creator/qt-creator
Find created sis files, even if DESTDIR is set.
Symbian mkspec puts the package file into the build directory, not the destination directory.
This commit is contained in:
@@ -247,7 +247,7 @@ QString S60DeviceRunConfiguration::packageFileNameWithTargetInfo() const
|
||||
TargetInformation ti = qt4Target()->qt4Project()->rootProjectNode()->targetInformation(m_proFilePath);
|
||||
if (!ti.valid)
|
||||
return QString();
|
||||
QString baseFileName = ti.workingDir + QLatin1Char('/') + ti.target;
|
||||
QString baseFileName = ti.buildDir + QLatin1Char('/') + ti.target;
|
||||
baseFileName += QLatin1Char('_')
|
||||
+ (isDebug() ? QLatin1String("debug") : QLatin1String("release"))
|
||||
+ QLatin1Char('-') + symbianPlatform() + QLatin1String(".sis");
|
||||
@@ -284,7 +284,7 @@ QString S60DeviceRunConfiguration::packageTemplateFileName() const
|
||||
TargetInformation ti = qt4Target()->qt4Project()->rootProjectNode()->targetInformation(m_proFilePath);
|
||||
if (!ti.valid)
|
||||
return QString();
|
||||
return ti.workingDir + QLatin1Char('/') + ti.target + QLatin1String("_template.pkg");
|
||||
return ti.buildDir + QLatin1Char('/') + ti.target + QLatin1String("_template.pkg");
|
||||
}
|
||||
|
||||
/* Grep a package file for the '.exe' file. Curently for use on Linux only
|
||||
@@ -351,7 +351,7 @@ QString S60DeviceRunConfiguration::signedPackage() const
|
||||
TargetInformation ti = qt4Target()->qt4Project()->rootProjectNode()->targetInformation(m_proFilePath);
|
||||
if (!ti.valid)
|
||||
return QString();
|
||||
return ti.workingDir + QLatin1Char('/') + ti.target + QLatin1String(".sis");
|
||||
return ti.buildDir + QLatin1Char('/') + ti.target + QLatin1String(".sis");
|
||||
}
|
||||
|
||||
QStringList S60DeviceRunConfiguration::commandLineArguments() const
|
||||
|
||||
@@ -1428,7 +1428,8 @@ TargetInformation Qt4ProFileNode::targetInformation(ProFileReader *reader) const
|
||||
if (!reader)
|
||||
return result;
|
||||
|
||||
const QString baseDir = buildDir();
|
||||
result.buildDir = buildDir();
|
||||
const QString baseDir = result.buildDir;
|
||||
// qDebug() << "base build dir is:"<<baseDir;
|
||||
|
||||
// Working Directory
|
||||
|
||||
@@ -196,12 +196,14 @@ struct TargetInformation
|
||||
QString workingDir;
|
||||
QString target;
|
||||
QString executable;
|
||||
QString buildDir;
|
||||
bool operator==(const TargetInformation &other) const
|
||||
{
|
||||
return workingDir == other.workingDir
|
||||
&& target == other.target
|
||||
&& executable == other.executable
|
||||
&& valid == valid;
|
||||
&& valid == valid
|
||||
&& buildDir == buildDir;
|
||||
}
|
||||
bool operator!=(const TargetInformation &other) const
|
||||
{
|
||||
@@ -216,7 +218,8 @@ struct TargetInformation
|
||||
: valid(other.valid),
|
||||
workingDir(other.workingDir),
|
||||
target(other.target),
|
||||
executable(other.executable)
|
||||
executable(other.executable),
|
||||
buildDir(other.buildDir)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user