summaryrefslogtreecommitdiffstats
path: root/qmake/generators/symbian/symbian_makefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'qmake/generators/symbian/symbian_makefile.h')
-rw-r--r--qmake/generators/symbian/symbian_makefile.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/qmake/generators/symbian/symbian_makefile.h b/qmake/generators/symbian/symbian_makefile.h
index 532ab89..0f2e29a 100644
--- a/qmake/generators/symbian/symbian_makefile.h
+++ b/qmake/generators/symbian/symbian_makefile.h
@@ -64,8 +64,24 @@ public:
QStringList userRssRules;
readRssRules(numberOfIcons, iconFile, userRssRules);
+ // Generate pkg files if there are any actual files to deploy
+ bool generatePkg = false;
DeploymentList depList;
- generatePkgFile(iconFile, depList, false);
+
+ if (targetType == TypeExe) {
+ generatePkg = true;
+ } else {
+ foreach(QString item, this->project->values("DEPLOYMENT")) {
+ if (!this->project->values(item + ".sources").isEmpty()) {
+ generatePkg = true;
+ break;
+ }
+ }
+ }
+
+ if (generatePkg) {
+ generatePkgFile(iconFile, depList, true);
+ }
// Get the application translations and convert to symbian OS lang code, i.e. decical number
QStringList symbianLangCodes = symbianLangCodesFromTsFiles();