2023-11-07 23:14:51 -06:00
|
|
|
APP_VERSION = 1.4.0-dev
|
2015-08-12 09:41:17 -05:00
|
|
|
APP_REVISION = $(shell git rev-parse --short=12 --verify HEAD)
|
2015-04-16 11:50:07 -05:00
|
|
|
#uncomment the below line in a source package and fill-in the correct revision
|
|
|
|
#APP_REVISION = <rev-hash>@
|
|
|
|
|
|
|
|
ver_info {
|
|
|
|
APP_VERSION_FILE = version.cpp
|
|
|
|
revtarget.target = $$APP_VERSION_FILE
|
|
|
|
win32:revtarget.commands = echo "const char *version = \"$$APP_VERSION\";" \
|
|
|
|
"const char *revision = \"$$APP_REVISION\";" \
|
|
|
|
> $$APP_VERSION_FILE
|
|
|
|
unix:revtarget.commands = echo \
|
|
|
|
"\"const char *version = \\\"$$APP_VERSION\\\";" \
|
|
|
|
"const char *revision = \\\"$$APP_REVISION\\\";\"" \
|
|
|
|
> $$APP_VERSION_FILE
|
|
|
|
revtarget.depends = $$SOURCES $$HEADERS $$FORMS $$POST_TARGETDEPS
|
|
|
|
|
|
|
|
SOURCES += $$APP_VERSION_FILE
|
|
|
|
QMAKE_EXTRA_TARGETS += revtarget
|
|
|
|
POST_TARGETDEPS += $$APP_VERSION_FILE
|
|
|
|
QMAKE_DISTCLEAN += $$APP_VERSION_FILE
|
|
|
|
}
|