Skip to content

Emscripten#122

Open
fgnm wants to merge 6 commits intolibgdx:masterfrom
fgnm:emscripten
Open

Emscripten#122
fgnm wants to merge 6 commits intolibgdx:masterfrom
fgnm:emscripten

Conversation

@fgnm
Copy link

@fgnm fgnm commented Mar 9, 2026

The aim of this PR is to support Emscripten (WASM) build target to jnigen. Most of the info are in the README file. TeaVM support should be already fully working (gdx-miniaudio successfully compiles in any aspect). GWT is half implemented, it lacks of auto-generated bridge functions, which I don't know how much it worth to support.. TeaVM is just better for anything :D

Because JNIEnv doesn't exists in emscripten, existing libraries that leverage on this to share objects between native and java should be replaced somehow, this how I did in miniaudio: rednblackgames/gdx-miniaudio@4e22360

Needs testing and reviewing. Mostly because I had just the general idea, but most of the code is AI generated, and so must be properly reviewed.

At moment, this is the best I can do, thanks!

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

Successfully merging this pull request may close these issues.

1 participant