aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/qbs.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-13 11:10:28 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-10-13 13:14:13 +0000
commita56458abad59da32c5f5d2a1c1ea7c92a93b7285 (patch)
tree94ea1e9d0bae2614d67c0a4a32cc63a415bc3784 /src/app/qbs/qbs.qbs
parentcd567e8e298c78e0c7a81f5ef4a97b516eb85466 (diff)
Use Utilities.cStringQuote in qbs project files
This function has been available since 1.8. Change-Id: I0114bf8ec41f3be0c306be943d15599e09f69cc7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/app/qbs/qbs.qbs')
-rw-r--r--src/app/qbs/qbs.qbs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/qbs/qbs.qbs b/src/app/qbs/qbs.qbs
index ae4c0ab72..f22fe5de5 100644
--- a/src/app/qbs/qbs.qbs
+++ b/src/app/qbs/qbs.qbs
@@ -1,15 +1,15 @@
import qbs 1.0
+import qbs.Utilities
QbsApp {
name: "qbs_app"
Depends { name: "qbs resources" }
targetName: "qbs"
- // TODO: Use Utilities.cStringQuote
cpp.defines: base.concat([
- 'QBS_VERSION="' + qbsversion.version + '"',
- 'QBS_RELATIVE_LIBEXEC_PATH="' + qbsbuildconfig.relativeLibexecPath + '"',
- 'QBS_RELATIVE_SEARCH_PATH="' + qbsbuildconfig.relativeSearchPath + '"',
- 'QBS_RELATIVE_PLUGINS_PATH="' + qbsbuildconfig.relativePluginsPath + '"',
+ "QBS_VERSION=" + Utilities.cStringQuote(qbsversion.version),
+ "QBS_RELATIVE_LIBEXEC_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativeLibexecPath),
+ "QBS_RELATIVE_SEARCH_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativeSearchPath),
+ "QBS_RELATIVE_PLUGINS_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativePluginsPath),
])
files: [
"application.cpp",