summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKnightJun <[email protected]>2021-01-12 19:09:53 +0800
committerKnightJun <[email protected]>2021-01-12 19:10:50 +0800
commitc8a44c371d841dc9f02ee84c8c1ed12c14d27484 (patch)
tree677a5157f686a8998f53358743ecdeeb98651180
parent9eca92ce0882344be8d945847643a3a5a4f066de (diff)
Add compile mode parameter for windeployqt.exe
-rw-r--r--xmake/rules/qt/install/windows.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/rules/qt/install/windows.lua b/xmake/rules/qt/install/windows.lua
index a9b3db6b9..429130afd 100644
--- a/xmake/rules/qt/install/windows.lua
+++ b/xmake/rules/qt/install/windows.lua
@@ -68,6 +68,13 @@ function main(target, opt)
else
table.insert(argv, "--verbose=0")
end
+
+ if is_mode("debug") then
+ table.insert(argv, "--debug")
+ elseif is_mode("release") then
+ table.insert(argv, "--release")
+ end
+
if qmldir then
table.insert(argv, "--qmldir=" .. qmldir)
end