Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten support #2

Open
icculus opened this issue Sep 21, 2023 · 0 comments
Open

Emscripten support #2

icculus opened this issue Sep 21, 2023 · 0 comments
Assignees

Comments

@icculus
Copy link
Collaborator

icculus commented Sep 21, 2023

Ideally I'd like the emscripten builds to just use CMake with emsdk, but it needs a little work in CMakeLists.txt and main.c ...

  • The output file should be index.html (since this is meant to be a starting point, I'd rather a complete working thing is output instead of just the js/wasm files.
  • Eventually this should just compile with -sUSE_SDL=3 but I assume there is no SDL3 package for Emscripten yet. Once we get to that point, I'd rather this starting app not have to bother with finding a copy of SDL3, but just use the included one.
  • If main: Added _optional_ callback entry points. SDL#8247 lands, I'd like main.c to use SDL_MAIN_USE_CALLBACKS instead of SDL_main, so we don't have to stick in Emscripten #ifdefs, probably with a comment explaining that's an option but main() still works if they prefer.
@icculus icculus self-assigned this Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant