summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/symbian/platform_paths.prf
diff options
context:
space:
mode:
authorAndy Shaw <qt-info@nokia.com>2010-06-21 10:08:26 (GMT)
committerAndy Shaw <qt-info@nokia.com>2010-06-21 10:08:26 (GMT)
commit033fea2483945aa2ecb238751121098b594a1877 (patch)
treef8a2b28e95640dab0e801037722e73b4633d0296 /mkspecs/features/symbian/platform_paths.prf
parent1fb24d6852e34bd58f35172dea4bfd4c41236689 (diff)
parent448dd8593f3e7e680ce3d0f92e279aad3c88d7d6 (diff)
downloadQt-033fea2483945aa2ecb238751121098b594a1877.zip
Qt-033fea2483945aa2ecb238751121098b594a1877.tar.gz
Qt-033fea2483945aa2ecb238751121098b594a1877.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'mkspecs/features/symbian/platform_paths.prf')
-rw-r--r--mkspecs/features/symbian/platform_paths.prf20
1 files changed, 19 insertions, 1 deletions
diff --git a/mkspecs/features/symbian/platform_paths.prf b/mkspecs/features/symbian/platform_paths.prf
index 0e8770d..5c190c8 100644
--- a/mkspecs/features/symbian/platform_paths.prf
+++ b/mkspecs/features/symbian/platform_paths.prf
@@ -45,8 +45,17 @@
# INCLUDEPATH += $$OS_LAYER_DBUS_SYSTEMINCLUDE
# INCLUDEPATH += $$OS_LAYER_LIBUTILITY_SYSTEMINCLUDE
#
+# These paths are primarily meant to be used as is in bld.inf and .mmp
+# files, so they do not contain epocroot when using official symbian
+# toolchains (symbian-abld or symbian-sbsv2).
+# For makefile based mkspecs, epocroot is prepended to all paths for
+# convenience.
#
-#
+# To use paths defined here in other contexts that require epocroot to be
+# prepended always, such as exists checks, please use prependEpocroot
+# replacement function:
+#
+# exists($$prependEpocroot($$MW_LAYER_PUBLIC_EXPORT_PATH(foobar.h)))
#
# ==============================================================================
@@ -472,4 +481,13 @@ exists($${EPOCROOT}epoc32/include/platform_paths.prf) {
STLLIB_USAGE_CW_FLAGS = "-wchar_t on"
STLLIB_USAGE_DEFINES = _WCHAR_T_DECLARED
+ # Smart prepend of EPOCROOT to a string
+ defineReplace(prependEpocroot) {
+ contains(1, ^$${EPOCROOT}) {
+ return($$1)
+ } else {
+ return($${EPOCROOT}$$replace(1,"^/",))
+ }
+ }
+
}