summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/symbian
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-09-03 08:33:38 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-09-03 12:04:07 (GMT)
commit5c978d026d378f7deaa14a87cf103ed43f14c413 (patch)
treecc83932a0ff8951819626f9ef5ce617d6156720d /mkspecs/common/symbian
parentd5373433d2a6d632e06d3873003069d49e17e2cd (diff)
downloadQt-5c978d026d378f7deaa14a87cf103ed43f14c413.zip
Qt-5c978d026d378f7deaa14a87cf103ed43f14c413.tar.gz
Qt-5c978d026d378f7deaa14a87cf103ed43f14c413.tar.bz2
Fix Symbian handling of projects with special characters in TARGET
Plenty of filenames got generated with spaces which didn't work as that was not taken into account. Harmonized TARGET fixing across prf files and qmake Symbian generator code. Task-number: QTBUG-13363 Reviewed-by: Thomas Zander
Diffstat (limited to 'mkspecs/common/symbian')
-rw-r--r--mkspecs/common/symbian/symbian.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/mkspecs/common/symbian/symbian.conf b/mkspecs/common/symbian/symbian.conf
index 61cc7d9..beef193 100644
--- a/mkspecs/common/symbian/symbian.conf
+++ b/mkspecs/common/symbian/symbian.conf
@@ -175,3 +175,21 @@ pkg_platform_dependencies = \
DEPLOYMENT += default_deployment
+defineReplace(symbianRemoveSpecialCharacters) {
+ # Produce identical string to what SymbianCommonGenerator::removeSpecialCharacters and
+ # SymbianCommonGenerator::removeEpocSpecialCharacters produce
+
+ fixedStr = $$1
+
+ fixedStr = $$replace(fixedStr, /,_)
+ fixedStr = $$replace(fixedStr, \\\\,_)
+ fixedStr = $$replace(fixedStr, " ",_)
+ symbian-abld|symbian-sbsv2 {
+ fixedStr = $$replace(fixedStr, -,_)
+ fixedStr = $$replace(fixedStr, \\.,_)
+ fixedStr = $$replace(fixedStr, :,_)
+ }
+
+ return ($$fixedStr)
+}
+