Improve emscripten support

This commit is contained in:
SirLynix
2022-12-06 08:05:28 +01:00
committed by Jérôme Leclercq
parent 7cb90782de
commit ea5c5240fc
10 changed files with 53 additions and 32 deletions

View File

@@ -3,5 +3,9 @@ option("examples", { description = "Build examples", default = true })
if has_config("examples") then
set_group("Examples")
if is_plat("wasm") then
add_ldflags("--preload-file assets/", { force = true })
end
includes("*/xmake.lua")
end