summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-01 12:31:05 +0800
committerGitHub <[email protected]>2021-09-01 12:31:05 +0800
commit6b10c3a9380131639bbf183d78491f6fc0f20535 (patch)
tree558d91bafae6e5dd225275013cd59220ccab1acc
parent985541b808d3ff8b7302fae7214a0e868e3a8346 (diff)
Update xmake.lua
-rw-r--r--xmake/rules/qt/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua
index 3310f596a..df6f2e79d 100644
--- a/xmake/rules/qt/xmake.lua
+++ b/xmake/rules/qt/xmake.lua
@@ -140,6 +140,9 @@ rule("qt.widgetapp_static")
-- laod some basic plugins and frameworks
local plugins = {}
local frameworks = {"QtGui", "QtWidgets", "QtCore"}
+ if qt_sdkver and qt_sdkver:lt("5.0") then
+ frameworks = {"QtGui", "QtCore"} -- qt4.x has not QtWidgets, it is in QtGui
+ end
if target:is_plat("macosx") then
plugins.QCocoaIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qcocoa", "cups"}}
table.join2(frameworks, QtPlatformSupport, "QtWidgets")