mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
fdd40d3c6a
commit
8ccfacb908
1 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue