summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorjingkaimori <[email protected]>2023-04-02 10:04:31 +0800
committerjingkaimori <[email protected]>2023-04-02 10:04:31 +0800
commit99cdfb3572d3c1cc4e60f56c2cdff141c09fbb37 (patch)
tree002c9a7de1511c2a1712f06451b9b318c2991f7e /xmake/rules
parentdeb6f50f31462813059fb08ce842a15218bb869f (diff)
fix missing frameworks in wasm
Diffstat (limited to 'xmake/rules')
-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)