mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Fix and improve xswiftbus version mismatch warning
This commit is contained in:
committed by
Mat Sutcliffe
parent
8223ddb710
commit
6b17f847e9
@@ -72,7 +72,19 @@ DEFINES += XPLM210=1
|
||||
DEFINES += XPMP_CLIENT_NAME=\\\"xswiftbus\\\"
|
||||
DEFINES += XPMP_CLIENT_LONGNAME=\\\"xswiftbus\\\"
|
||||
|
||||
win32: GIT_BIN = $$system($$(SYSTEMROOT)\system32\where git 2> nul)
|
||||
else: GIT_BIN = $$system(which git 2> /dev/null)
|
||||
|
||||
isEmpty(GIT_BIN) {
|
||||
GIT_HEAD_SHA1="<unknown>"
|
||||
GIT_COMMIT_TS="0"
|
||||
} else {
|
||||
GIT_HEAD_SHA1=$$system(git rev-parse --short HEAD)
|
||||
GIT_COMMIT_TS=$$system(git log -1 --date=format:'%Y%m%d%H%M' --pretty=format:%cd)
|
||||
}
|
||||
|
||||
DEFINES += XSWIFTBUS_VERSION=\\\"$$swiftConfig(version.full)\\\"
|
||||
DEFINES += GIT_COMMIT_TS=\\\"$$GIT_COMMIT_TS\\\"
|
||||
|
||||
# X-Plane plugins must follow a prescribed filename and directory structure.
|
||||
TARGET_EXT = .xpl
|
||||
|
||||
Reference in New Issue
Block a user