aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cmdlineparser
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-05-30 18:03:13 -0700
committerJake Petroules <jake.petroules@qt.io>2017-06-02 19:41:38 +0000
commitb3e8a5c5f8dd7be8abe3a1543cfa818f6f2eee3b (patch)
treeb26358a50ac250d34a8f5e965fc7c62a34093411 /tests/auto/cmdlineparser
parent11a08386295c1b9c9abb71899421274daea07d2c (diff)
Introduce the qbsversion module for building Qbs
Use that instead of QbsFunctions.qbsVersion() and read it in qbs_version.pri; this has the advantage that simple text processing tools can retrieve the project version without having to parse JavaScript. It's also set from only one place now. Change-Id: Icfd2a6bf12b794b55c9ba31934a96b4483224eae Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/cmdlineparser')
-rw-r--r--tests/auto/cmdlineparser/cmdlineparser.qbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/cmdlineparser/cmdlineparser.qbs b/tests/auto/cmdlineparser/cmdlineparser.qbs
index 774372c61..717814661 100644
--- a/tests/auto/cmdlineparser/cmdlineparser.qbs
+++ b/tests/auto/cmdlineparser/cmdlineparser.qbs
@@ -1,13 +1,13 @@
import qbs
-import QbsFunctions
QbsAutotest {
+ Depends { name: "qbsversion" }
testName: "cmdlineparser"
files: ["tst_cmdlineparser.cpp", "../../../src/app/qbs/qbstool.cpp"]
// TODO: Use Utilities.cStringQuote
cpp.defines: base.concat([
'SRCDIR="' + path + '"',
- "QBS_VERSION=\"" + QbsFunctions.qbsVersion() + "\""
+ "QBS_VERSION=\"" + qbsversion.version + "\""
])
// TODO: Make parser a static library?