From 5b33a1dfd1e61f7cdfc921085183b73b5fcd17ee Mon Sep 17 00:00:00 2001 From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com> Date: Fri, 19 Feb 2021 15:34:52 -0500 Subject: [PATCH] misc: execute copy-runtime-files with supportive arg for post build Support MODE, QT_VERSION, and DESTDIR Change-Id: I858610d12f9267263550a56ef6f7e994062dbdad --- jami-qt.pro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jami-qt.pro b/jami-qt.pro index 37403b5ba..cd3e9ce3a 100644 --- a/jami-qt.pro +++ b/jami-qt.pro @@ -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 { -- GitLab