summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-02-11 12:18:13 (GMT)
committerThomas Zander <t.zander@nokia.com>2010-02-11 12:18:13 (GMT)
commit4b4021443ba06b966c46994eeeceb34dd607bd9b (patch)
tree60951acfddbf2373de75bbaf2b433ebe330e574e /qmake
parente2510486b8857c8f660dfc2d0ef2e4798c60a262 (diff)
downloadQt-4b4021443ba06b966c46994eeeceb34dd607bd9b.zip
Qt-4b4021443ba06b966c46994eeeceb34dd607bd9b.tar.gz
Qt-4b4021443ba06b966c46994eeeceb34dd607bd9b.tar.bz2
More src!=builddir fixes for symbian makefile generator
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index 652025b..7100b57 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -57,7 +57,7 @@ SymbianCommonGenerator::SymbianCommonGenerator(MakefileGenerator *generator)
void SymbianCommonGenerator::init()
{
QMakeProject *project = generator->project;
- fixedTarget = generator->escapeFilePath(generator->fileFixify(project->first("TARGET")));
+ fixedTarget = generator->escapeFilePath(project->first("TARGET"));
fixedTarget = removePathSeparators(fixedTarget);
removeSpecialCharacters(fixedTarget);
@@ -118,8 +118,9 @@ void SymbianCommonGenerator::removeSpecialCharacters(QString& str)
void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, DeploymentList &depList, bool epocBuild)
{
QMakeProject *project = generator->project;
- QString pkgFilename = QString("%1/%2_template.%3")
- .arg(Option::output_dir).arg(fixedTarget).arg("pkg");
+ QString pkgFilename = QString("%1_template.%2").arg(fixedTarget).arg("pkg");
+ if (!Option::output_dir.isEmpty())
+ pkgFilename = Option::output_dir + '/' + pkgFilename;
QFile pkgFile(pkgFilename);
if (!pkgFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
@@ -311,6 +312,8 @@ void SymbianCommonGenerator::writeRegRssFile(QStringList &userItems)
{
QString filename(fixedTarget);
filename.append("_reg.rss");
+ if (!Option::output_dir.isEmpty())
+ filename = Option::output_dir + '/' + filename;
QFile ft(filename);
if (ft.open(QIODevice::WriteOnly)) {
generatedFiles << ft.fileName();
@@ -344,6 +347,8 @@ void SymbianCommonGenerator::writeRegRssFile(QStringList &userItems)
void SymbianCommonGenerator::writeRssFile(QString &numberOfIcons, QString &iconFile)
{
QString filename(fixedTarget);
+ if (!Option::output_dir.isEmpty())
+ filename = Option::output_dir + '/' + filename;
filename.append(".rss");
QFile ft(filename);
if (ft.open(QIODevice::WriteOnly)) {
@@ -390,6 +395,8 @@ void SymbianCommonGenerator::writeRssFile(QString &numberOfIcons, QString &iconF
void SymbianCommonGenerator::writeLocFile(QStringList &symbianLangCodes)
{
QString filename(fixedTarget);
+ if (!Option::output_dir.isEmpty())
+ filename = Option::output_dir + '/' + filename;
filename.append(".loc");
QFile ft(filename);
if (ft.open(QIODevice::WriteOnly)) {