summaryrefslogtreecommitdiffstats
path: root/qmake/generators/symbian
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-03-31 12:08:09 (GMT)
committerThomas Zander <t.zander@nokia.com>2010-03-31 12:08:09 (GMT)
commit56949fc36c30a84e716b66ac74f3a0a8de74cc8e (patch)
treedbb5b05f4549c829dd1fc2295e75bad0662598d9 /qmake/generators/symbian
parentb75ebb19032ab2b739c848ed1e8cc1fa74f3cd21 (diff)
downloadQt-56949fc36c30a84e716b66ac74f3a0a8de74cc8e.zip
Qt-56949fc36c30a84e716b66ac74f3a0a8de74cc8e.tar.gz
Qt-56949fc36c30a84e716b66ac74f3a0a8de74cc8e.tar.bz2
Cleanup the deployment code
Remove local defines and passing of a list while its never used, only define it where its actually used.
Diffstat (limited to 'qmake/generators/symbian')
-rw-r--r--qmake/generators/symbian/symbian_makefile.h3
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp3
-rw-r--r--qmake/generators/symbian/symbiancommon.h2
-rw-r--r--qmake/generators/symbian/symmake.cpp7
-rw-r--r--qmake/generators/symbian/symmake.h3
5 files changed, 8 insertions, 10 deletions
diff --git a/qmake/generators/symbian/symbian_makefile.h b/qmake/generators/symbian/symbian_makefile.h
index f9d3c24..797a602 100644
--- a/qmake/generators/symbian/symbian_makefile.h
+++ b/qmake/generators/symbian/symbian_makefile.h
@@ -66,7 +66,6 @@ public:
// Generate pkg files if there are any actual files to deploy
bool generatePkg = false;
- DeploymentList depList;
if (targetType == TypeExe) {
generatePkg = true;
@@ -80,7 +79,7 @@ public:
}
if (generatePkg) {
- generatePkgFile(iconFile, depList, false);
+ generatePkgFile(iconFile, false);
}
// Get the application translations and convert to symbian OS lang code, i.e. decical number
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index 54b60be..10889c4 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -142,7 +142,7 @@ void SymbianCommonGenerator::removeEpocSpecialCharacters(QString& str)
removeSpecialCharacters(str);
}
-void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, DeploymentList &depList, bool epocBuild)
+void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, bool epocBuild)
{
QMakeProject *project = generator->project;
QString pkgTarget = project->first("QMAKE_ORIG_TARGET");
@@ -361,6 +361,7 @@ void SymbianCommonGenerator::generatePkgFile(const QString &iconFile, Deployment
QString remoteTestPath;
remoteTestPath = QString("!:\\private\\%1").arg(privateDirUid);
+ DeploymentList depList;
initProjectDeploySymbian(project, depList, remoteTestPath, true, epocBuild, "$(PLATFORM)", "$(TARGET)", generatedDirs, generatedFiles);
if (depList.size())
t << "; DEPLOYMENT" << endl;
diff --git a/qmake/generators/symbian/symbiancommon.h b/qmake/generators/symbian/symbiancommon.h
index e2b1173..3efe5a4 100644
--- a/qmake/generators/symbian/symbiancommon.h
+++ b/qmake/generators/symbian/symbiancommon.h
@@ -68,7 +68,7 @@ protected:
QString removePathSeparators(QString &file);
void removeSpecialCharacters(QString& str);
void removeEpocSpecialCharacters(QString& str);
- void generatePkgFile(const QString &iconFile, DeploymentList &depList, bool epocBuild);
+ void generatePkgFile(const QString &iconFile, bool epocBuild);
bool containsStartWithItem(const QChar &c, const QStringList& src);
void writeRegRssFile(QMap<QString, QStringList> &useritems);
diff --git a/qmake/generators/symbian/symmake.cpp b/qmake/generators/symbian/symmake.cpp
index 0fcd26d..e05ced2 100644
--- a/qmake/generators/symbian/symmake.cpp
+++ b/qmake/generators/symbian/symmake.cpp
@@ -187,7 +187,6 @@ bool SymbianMakefileGenerator::writeMakefile(QTextStream &t)
// Generate pkg files if there are any actual files to deploy
bool generatePkg = false;
- DeploymentList depList;
if (targetType == TypeExe) {
generatePkg = true;
@@ -201,10 +200,10 @@ bool SymbianMakefileGenerator::writeMakefile(QTextStream &t)
}
if (generatePkg) {
- generatePkgFile(iconFile, depList, true);
+ generatePkgFile(iconFile, true);
}
- writeBldInfContent(t, generatePkg, iconFile, depList);
+ writeBldInfContent(t, generatePkg, iconFile);
// Generate empty wrapper makefile here, because wrapper makefile must exist before writeMkFile,
// but all required data is not yet available.
@@ -948,7 +947,7 @@ void SymbianMakefileGenerator::writeMmpFileRulesPart(QTextStream& t)
}
}
-void SymbianMakefileGenerator::writeBldInfContent(QTextStream &t, bool addDeploymentExtension, const QString &iconFile, DeploymentList &depList)
+void SymbianMakefileGenerator::writeBldInfContent(QTextStream &t, bool addDeploymentExtension, const QString &iconFile)
{
// Read user defined bld inf rules
diff --git a/qmake/generators/symbian/symmake.h b/qmake/generators/symbian/symmake.h
index d9ca390..b06ff5b 100644
--- a/qmake/generators/symbian/symmake.h
+++ b/qmake/generators/symbian/symmake.h
@@ -90,8 +90,7 @@ protected:
void writeHeader(QTextStream &t);
void writeBldInfContent(QTextStream& t,
bool addDeploymentExtension,
- const QString &iconFile,
- DeploymentList &depList);
+ const QString &iconFile);
static bool removeDuplicatedStrings(QStringList& stringList);