Fix "TARGET=" in .pro files

Default to the baseName() of the .pro file.
This commit is contained in:
dt
2009-08-13 17:18:18 +02:00
parent b104b43fa0
commit 39913b3216
3 changed files with 14 additions and 3 deletions

View File

@@ -149,8 +149,12 @@ void S60EmulatorRunConfiguration::updateTarget()
qmakeBuildConfig = "udeb";
baseDir += "/epoc32/release/winscw/" + qmakeBuildConfig;
QString target = reader->value("TARGET");
if (target.isEmpty())
target = QFileInfo(m_proFilePath).baseName();
m_executable = QDir::toNativeSeparators(
QDir::cleanPath(baseDir + QLatin1Char('/') + reader->value("TARGET")));
QDir::cleanPath(baseDir + QLatin1Char('/') + target));
m_executable += QLatin1String(".exe");
delete reader;