summaryrefslogtreecommitdiffstats
path: root/subsurface-gen-version.pri
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-02-15 21:50:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-15 14:06:48 -0800
commit8ccfacb908a350a83434c174ee1209ca63467cc0 (patch)
treee43102a8ec19d64e80884b9b9beb8f9c6d630f5b /subsurface-gen-version.pri
parentfdd40d3c6a7f92b1df167081bdd107041eb998ce (diff)
downloadsubsurface-8ccfacb908a350a83434c174ee1209ca63467cc0.tar.gz
PRI: include some variables in the version generation
the following are needed in subsurface-install.pri FULL_VERSION VERSION (this one is previously set in subsurface.pro) PRODVERSION_STRING VERSION_STRING Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-gen-version.pri')
-rw-r--r--subsurface-gen-version.pri7
1 files changed, 7 insertions, 0 deletions
diff --git a/subsurface-gen-version.pri b/subsurface-gen-version.pri
index 7ac78b33f..1e62b0d6d 100644
--- a/subsurface-gen-version.pri
+++ b/subsurface-gen-version.pri
@@ -14,3 +14,10 @@ silent: version_h.commands = @echo Checking $$VERSION_FILE && $$version_h.comman
version_h.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += version_h
QMAKE_CLEAN += $$VERSION_FILE
+
+# some qmake-time variables needed by subsurface-install.pri
+VERSION_SCRIPT = sh scripts/get-version
+FULL_VERSION = $$system("$$VERSION_SCRIPT linux")
+VERSION = $$system("$$VERSION_SCRIPT full || echo $${VERSION}")
+PRODVERSION_STRING = $$system("$$VERSION_SCRIPT win $$FULL_VERSION || echo $${VERSION}.0.0-git")
+VERSION_STRING = $$system("$$VERSION_SCRIPT linux $$FULL_VERSION || echo $${VERSION}-git")