From 99cdfb3572d3c1cc4e60f56c2cdff141c09fbb37 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Sun, 2 Apr 2023 10:04:31 +0800 Subject: fix missing frameworks in wasm --- xmake/rules/qt/xmake.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.3.1