mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Qt: Revert annoying git_version string to support all qmake's + symbian.
This commit is contained in:
parent
e1f2317e0c
commit
010517910f
2 changed files with 10 additions and 6 deletions
|
@ -13,11 +13,15 @@ UI_DIR = $$CONFIG_DIR/.ui/$$TARGET
|
|||
P = $$_PRO_FILE_PWD_/..
|
||||
INCLUDEPATH += $$P/ext/zlib $$P/Common
|
||||
|
||||
exists($$P/.git): GIT_VERSION = $$system(git describe --always)
|
||||
isEmpty(GIT_VERSION): GIT_VERSION = $$VERSION
|
||||
symbian: DEFINES += "PPSSPP_GIT_VERSION=\"$$GIT_VERSION\""
|
||||
else:greaterThan(QT_MAJOR_VERSION,4): DEFINES += PPSSPP_GIT_VERSION=$$shell_quote(\"$$GIT_VERSION\")
|
||||
else: DEFINES += PPSSPP_GIT_VERSION=$$quote($$GIT_VERSION)
|
||||
symbian {
|
||||
exists($$P/.git): GIT_VERSION = $$system(git describe --always)
|
||||
isEmpty(GIT_VERSION): GIT_VERSION = $$VERSION
|
||||
} else {
|
||||
# QMake seems to change how it handles quotes with every version. This works for most systems:
|
||||
exists($$P/.git): GIT_VERSION = '\\"$$system(git describe --always)\\"'
|
||||
isEmpty(GIT_VERSION): GIT_VERSION = '\\"$$VERSION\\"'
|
||||
}
|
||||
DEFINES += PPSSPP_GIT_VERSION=\"$$GIT_VERSION\"
|
||||
|
||||
win32-msvc* {
|
||||
QMAKE_CXXFLAGS_RELEASE += /O2 /arch:SSE2 /fp:fast
|
||||
|
|
2
native
2
native
|
@ -1 +1 @@
|
|||
Subproject commit 9c0d44ceb0b628b5d66f9257e8f59cf97a9ab888
|
||||
Subproject commit 320f5f1952c1c462e67c634af7455105967fc602
|
Loading…
Add table
Reference in a new issue