summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/qt/xmake.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua
index 08e8265c2..a0aed331d 100644
--- a/xmake/rules/qt/xmake.lua
+++ b/xmake/rules/qt/xmake.lua
@@ -164,7 +164,13 @@ rule("qt.widgetapp_static")
end
elseif target:is_plat("wasm") then
plugins.QWasmIntegrationPlugin = {linkdirs = "plugins/platforms", links = {"qwasm"}}
- table.join2(frameworks, "QtEventDispatcherSupport", "QtFontDatabaseSupport", "QtEglSupport")
+ if qt_sdkver then
+ if qt_sdkver:lt("6.0") then
+ table.join2(frameworks, "QtEventDispatcherSupport", "QtFontDatabaseSupport", "QtEglSupport")
+ else
+ table.join2(frameworks, "QtOpenGL")
+ end
+ end
end
import("load")(target, {gui = true, plugins = plugins, frameworks = frameworks})
end)