summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")