Skip to content
Snippets Groups Projects
Commit 5b33a1df authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

misc: execute copy-runtime-files with supportive arg for post build

Support MODE, QT_VERSION, and DESTDIR

Change-Id: I858610d12f9267263550a56ef6f7e994062dbdad
parent 637b7d64
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,11 @@ win32-msvc {
RCC_DIR = obj/.rcc
UI_DIR = obj/.ui
MODE = "Release"
# ReleaseCompile config
contains(CONFIG, ReleaseCompile) {
MODE = "ReleaseCompile"
CONFIG(ReleaseCompile) {
message(ReleaseCompile config enabled)
Release: DEFINES += COMPILE_ONLY
......@@ -57,6 +60,7 @@ win32-msvc {
# beta config
contains(CONFIG, Beta) {
MODE = "Beta"
CONFIG(Beta) {
message(Beta config enabled)
Release: DESTDIR = x64/Beta
......@@ -77,7 +81,9 @@ win32-msvc {
Release: RC_FILE = ico.rc
# run the deployment script(run windeployqt)
QMAKE_POST_LINK += $$quote(python .\copy-runtime-files.py -o $${DESTDIR})
!equals(MODE, "ReleaseCompile") {
QMAKE_POST_LINK += $$quote(python .\copy-runtime-files.py -m $${MODE} -q $${QT_VERSION} -o $${DESTDIR})
}
}
unix {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment