diff options
| author | KnightJun <[email protected]> | 2021-01-12 19:09:53 +0800 |
|---|---|---|
| committer | KnightJun <[email protected]> | 2021-01-12 19:10:50 +0800 |
| commit | c8a44c371d841dc9f02ee84c8c1ed12c14d27484 (patch) | |
| tree | 677a5157f686a8998f53358743ecdeeb98651180 | |
| parent | 9eca92ce0882344be8d945847643a3a5a4f066de (diff) | |
Add compile mode parameter for windeployqt.exe
| -rw-r--r-- | xmake/rules/qt/install/windows.lua | 7 |
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 |
