Question on building multiple Wasm files (and their js) for web #22483
Unanswered
ericoporto
asked this question in
Q&A
Replies: 1 comment 4 replies
-
If you want to hook up two completely seperate programs then emscripten doesn't really have any features for doing this, would need to do all the hooking up yourself. The one thing you would need to do is to compiler each program with If the engine and the compiler can be considered the same program then you could consider using dyanamic linking. In this case you would choose one of the programs to be the main module ( |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to build an experiment in the browser using multiple wasm files.
In the ags engine we have a successful Emscripten build of the engine, I would like to also build the Script compiler, so I can make a webpage where you could edit AGS script files in the browser, run them in the compiler and then run in the engine.
Do I have to put both the script compiler and the engine in the same build or is there some way to smash together later/ load both wasm files? They also build a js files (and an html file), how would I proceed if it is possible to build them separately?
If someone has any minimal example that plays with this idea, I would love to see it.
I am using the CMake build system to build each.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions