You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some wasm program needs local asset files when starting. Emscripten provides a 'preload' mechanism to package these file into a .data package. XMake should make this kind of package from the list of install file.
Describe the solution you'd like
target("wasmapp") doset_kind("binary")
add_installfiles("assets/as_1.md")
add_installfiles("assets/as_2.md", {prefixdir="doc"})
add_installfiles("assets/(nest/as_3.md)", {prefixdir="doc"})
end
We should not use add_installfiles, it only for installation. xmake install
but --preload-file is only for building stage.
you can use
target("wasmapp") do
set_kind("binary")
add_ldflags({"--preload-file", "src/xxx.md"}, {expand = false, force = true})
add_ldflags({"--preload-file", "src/xxx2.md"}, {expand = false, force = true})
end
Is your feature request related to a problem? Please describe.
Some wasm program needs local asset files when starting. Emscripten provides a 'preload' mechanism to package these file into a
.data
package. XMake should make this kind of package from the list of install file.Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
Usage of package arg of emcc is documented here.
The text was updated successfully, but these errors were encountered: