Get the version at make time, not qmake time

Let's see how many tries it will take me to get this one right...
The name of the .dmg needs to be determined when running make, not qmake.
Otherwise we'd have to force the user to run qmake every time version.h
changes. This looks better.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-10-15 02:49:46 -07:00
parent 5477c1ffa0
commit 03f4089acb

View file

@ -7,7 +7,7 @@ exists(.git/HEAD): {
GIT_HEAD = .git/HEAD
VERSION_SCRIPT = $$PWD/scripts/get-version
# always use linux here -------------------vvv so we get the true full version
FULL_VERSION = $$system("$$VERSION_SCRIPT linux")
FULL_VERSION = "`$$VERSION_SCRIPT linux`"
version_h.depends = $$VERSION_SCRIPT
version_h.commands = echo \\$${LITERAL_HASH}define VERSION_STRING \\\"`$$VERSION_SCRIPT $$VER_OS`\\\" > ${QMAKE_FILE_OUT}
version_h.input = GIT_HEAD