Really, deploying for mobile and embedded devices is only copying the resulting files from Emscripten built onto a CORS-enabled web server.
Any web browser that supports WebAssembly will be able to run it.
Of course, there are considerations regarding screen size.
For testing, you can run your application using the emrun
command from the Emscripten SDK. If you plan on testing from another device other than localhost, you will need to use the --hostname
argument to set the IP address that it uses.
There are Python scripts for CORS-enabled web servers for testing as well. The Apache web server can also be configured to support CORS.
There are five files that currently need to be deployed—qtloader.js
, qtlogo.svg
, <target>.html
, <target>.js
, and <target>.wasm
. The .wasm
file is the big WebAssembly binary, statically linked. Following are few suggestions to help you along with the process.