From d9090efda16fcadb1ef3c529e115f3d04760d35c Mon Sep 17 00:00:00 2001 From: Da Shen Date: Tue, 3 Oct 2023 12:41:56 +0800 Subject: [PATCH 1/3] Revert "[48_11] Disable toolbars on wasm" This reverts commit d06548d117daa7570ed9f1c9912421a3d99344ba. --- src/Plugins/Qt/qt_tm_widget.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Plugins/Qt/qt_tm_widget.cpp b/src/Plugins/Qt/qt_tm_widget.cpp index 3da04c8be0..58284be30e 100644 --- a/src/Plugins/Qt/qt_tm_widget.cpp +++ b/src/Plugins/Qt/qt_tm_widget.cpp @@ -119,13 +119,6 @@ qt_tm_widget_rep::qt_tm_widget_rep(int mask, command _quit) visibility[6] = (mask & 64) == 64; // side tools #0 visibility[7] = (mask & 128) == 128; // bottom tools -#ifdef OS_WASM - visibility[1] = false; // main - visibility[2] = false; // mode - visibility[3] = false; // focus - visibility[4] = false; // user -#endif - // general setup for main window QMainWindow* mw= mainwindow (); From 6ac3c7f5d16e9110d93c6a3bc880135c68bdbb68 Mon Sep 17 00:00:00 2001 From: Da Shen Date: Tue, 3 Oct 2023 16:25:53 +0800 Subject: [PATCH 2/3] Asyncify --- xmake.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake.lua b/xmake.lua index e0d2f7f43a..0b50a76e54 100644 --- a/xmake.lua +++ b/xmake.lua @@ -596,6 +596,8 @@ function add_target_draw() add_files("src/Mogan/Draw/draw.cpp") if is_plat("wasm") then + set_optimize("fastest") + add_ldflags("-sASYNCIFY") add_ldflags("-s --preload-file $(projectdir)/TeXmacs@TeXmacs", {force = true}) end @@ -694,6 +696,8 @@ function add_target_code() add_files("src/Mogan/Code/code.cpp") if is_plat("wasm") then + set_optimize("fastest") + add_ldflags("-sASYNCIFY") add_ldflags("-s --preload-file $(projectdir)/TeXmacs@TeXmacs", {force = true}) end @@ -778,6 +782,8 @@ function add_target_research_on_wasm() add_files(plugin_xml_srcs) add_files("src/Mogan/Research/research.cpp") + set_optimize("fastest") + add_ldflags("-sASYNCIFY") add_ldflags("-s --preload-file $(projectdir)/TeXmacs@TeXmacs", {force = true}) before_build(function (target) From 7771b11fe60e286efa5a21f1cdb4f7b3272b9cb6 Mon Sep 17 00:00:00 2001 From: Da Shen Date: Tue, 3 Oct 2023 17:01:43 +0800 Subject: [PATCH 3/3] wip --- xmake.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 0b50a76e54..0f1a3ad815 100644 --- a/xmake.lua +++ b/xmake.lua @@ -782,7 +782,6 @@ function add_target_research_on_wasm() add_files(plugin_xml_srcs) add_files("src/Mogan/Research/research.cpp") - set_optimize("fastest") add_ldflags("-sASYNCIFY") add_ldflags("-s --preload-file $(projectdir)/TeXmacs@TeXmacs", {force = true})