Emscripten[1] comes with SDL support (cf its test suite [2]). Not sure how complete it is.
[1] http://kripken.github.io/emscripten-site/
[2] https://github.com/kripken/emscripten/blob/master/tests/hell...
[1] http://kripken.github.io/emscripten-site/
[2] https://github.com/kripken/emscripten/blob/master/tests/hell...
SDL2 cross-compiles to JavaScript properly and should be used by most things now.
I feel like I'm just asking dumb toolchain questions because I'm missing something fundamental about targeting an executable build to the browser.
https://kripken.github.io/emscripten-site/docs/porting/conne...