summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-14 23:46:12 +0800
committerruki <[email protected]>2020-11-14 23:46:12 +0800
commit55900556b2fe088b846d43067cab6a70f5b53e3c (patch)
tree95a2336be2177d759a8d6d9ffe54bb7cbd13ef76
parent8a223cf58575a311ac62ad24b00e925429ad5f44 (diff)
fix qt/debug for windows
-rw-r--r--xmake/rules/qt/xmake.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua
index a77ea2fd2..ce65651fe 100644
--- a/xmake/rules/qt/xmake.lua
+++ b/xmake/rules/qt/xmake.lua
@@ -107,13 +107,13 @@ rule("qt.widgetapp_static")
after_load(function (target)
local plugins = {}
local frameworks = {"QtGui", "QtWidgets", "QtCore"}
- if is_plat("macosx") then
+ if target:is_plat("macosx") then
plugins.QCocoaIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qcocoa", "cups"}}
table.join2(frameworks, "QtPrintSupport", "QtPlatformSupport", "QtWidgets")
- elseif is_plat("windows") then
- plugins.QWindowsIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qwindows"}}
+ elseif target:is_plat("windows") then
+ plugins.QWindowsIntegrationPlugin = {linkdirs = "plugins/platforms", links = {is_mode("debug") and "qwindowsd" or "qwindows"}}
table.join2(frameworks, "QtPrintSupport", "QtPlatformSupport", "QtWidgets")
- elseif is_plat("wasm") then
+ elseif target:is_plat("wasm") then
plugins.QWasmIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qwasm"}}
table.join2(frameworks, "QtEventDispatcherSupport", "QtFontDatabaseSupport", "QtEglSupport")
end
@@ -159,13 +159,13 @@ rule("qt.quickapp_static")
after_load(function (target)
local plugins = {}
local frameworks = {"QtGui", "QtQuick", "QtQml", "QtQmlModels", "QtCore", "QtNetwork"}
- if is_plat("macosx") then
+ if target:is_plat("macosx") then
plugins.QCocoaIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qcocoa", "cups"}}
table.join2(frameworks, "QtPrintSupport", "QtPlatformSupport", "QtWidgets")
- elseif is_plat("windows") then
- plugins.QWindowsIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qwindows"}}
+ elseif target:is_plat("windows") then
+ plugins.QWindowsIntegrationPlugin = {linkdirs = "plugins/platforms", links = {is_mode("debug") and "qwindowsd" or "qwindows"}}
table.join2(frameworks, "QtPrintSupport", "QtPlatformSupport", "QtWidgets")
- elseif is_plat("wasm") then
+ elseif target:is_plat("wasm") then
plugins.QWasmIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qwasm"}}
table.join2(frameworks, "QtEventDispatcherSupport", "QtFontDatabaseSupport", "QtEglSupport")
end