-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathmbseedkey_cli.pro
More file actions
50 lines (37 loc) · 1.42 KB
/
mbseedkey_cli.pro
File metadata and controls
50 lines (37 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
QT -= quick
CONFIG += c++latest
CONFIG += console
GIT_LATEST_TAG=$$system(git describe --always --abbrev=0)
SW_VERSION=\\\"$$GIT_LATEST_TAG\\\"
DEFINES += SW_VERSION=$$(SW_VERSION)
VERSION_MAJOR=$$section(GIT_LATEST_TAG, ., 0, 0)
VERSION_MINOR=$$section(GIT_LATEST_TAG, ., 1, 1)
VERSION_PATCH=$$section(GIT_LATEST_TAG, ., 2, 2)
RC_ICONS="Resources/icon.ico"
RC_LANG="en"
VERSION=$$GIT_LATEST_TAG
VERSION_PE_HEADER = $$VERSION_MAJOR'.'$$VERSION_MINOR
message("VER: $$VERSION" )
DEFINES += QT_NO_DEBUG_OUTPUT
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
TARGET = mbseedkey_cli
DESTDIR = build/release
SOURCES += \
ecuseedkeydll.cpp \
exutils.cpp \
main_cli.cpp
HEADERS += \
ecuseedkeydll.h \
exutils.h
#RESOURCES += qml.qrc
TRANSLATIONS += mbseedkey_en.ts
win32 {
CONFIG += embed_manifest_exe
QMAKE_LFLAGS += /LARGEADDRESSAWARE
# QMAKE_LFLAGS_WINDOWS += /MANIFESTUAC:"level='requireAdministrator'"
}
DEPLOY_TARGET = $$shell_quote($$shell_path($$DESTDIR"/"$$TARGET".exe"))
WINDEPLOY_CMD = $$shell_quote($$shell_path($$[QT_INSTALL_BINS]$$QMAKE_DIR_SEP"windeployqt.exe"))
win32: QMAKE_POST_LINK = $$WINDEPLOY_CMD --compiler-runtime --verbose 2 --release $$DEPLOY_TARGET