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

Made raylib bindings easier to use with emscripten #4640

Conversation

karl-zylinski
Copy link
Contributor

@karl-zylinski karl-zylinski commented Dec 31, 2024

Made raylib work with emscripten by importing env.o lib when ARCH is WASM. Also added raylib WASM lib, but that is for use with emcc after compilation of object file. This makes the raylib bindings work "out-of-the-box" with emscripten (i.e. you can compile, but it needs to be freestanding WASM target, which makes core:os and some other packages not work).

Also added the wasm raylib lib file.

TODO: Test raygui and perhaps compile a lib for it.

…s WASM. Also added raylib WASM lib, but that is for use with emcc after compilation of object file.
@karl-zylinski
Copy link
Contributor Author

I will probably rework this so we can override the lib path with a config flag. That way we don't need explicit emscripten fixes (having explicit emscripten fixes is a slippery slope of adding hacks).

@karl-zylinski
Copy link
Contributor Author

We merged this instead, which provides the same functionality without explicit emscripten hacks: #4647

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