aboutsummaryrefslogtreecommitdiffstats
path: root/qbs_version.pri
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 /qbs_version.pri
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 'qbs_version.pri')
-rw-r--r--qbs_version.pri2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbs_version.pri b/qbs_version.pri
index 874d85184..97c4c799e 100644
--- a/qbs_version.pri
+++ b/qbs_version.pri
@@ -1,4 +1,4 @@
-QBS_VERSION = 1.9.0
+QBS_VERSION = $$cat($$PWD/VERSION)
QBS_VERSION_MAJ = $$section(QBS_VERSION, ., 0, 0)
QBS_VERSION_MIN = $$section(QBS_VERSION, ., 1, 1)
DEFINES += QBS_VERSION=\\\"$$QBS_VERSION\\\"