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

[3.2] [HTML5] Optional GDNative Support #44170

Merged
merged 5 commits into from
Dec 7, 2020

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Dec 7, 2020

3.2 version of #44076 .

As mentioned, the GDNative variant requires emscripten 2.0.10+, I'll update the build containers to install both versions and use the correct one for GDNative (this will mean no gdnative with C# on HTML5 until mono can be built with a new emscripten version).

Working, with emscripten > 2.0.9
Yes, the unreleased version. 2.0.9 works, but throws and error due to a
bug in emscripten with the thirdparty ENet library.
The issue is fixed upstream so newer releases will work.
This "breaks" our loading bar logic (libraries are not counted).
Fixing it is non trivial and probably deserves investigating a different
strategy.
Available types:
- Regular
- GDNative (support dynamic linking and thus GDNative WASM files)
- Threads (uses WebAssembly Threads)
This is suboptimal as it requires adding an extra flag, but rewriting
how feature tags work is beyond the scope of this work.
@akien-mga akien-mga merged commit 2beb36f into godotengine:3.2 Dec 7, 2020
@akien-mga
Copy link
Member

Thanks! 🎉

@SIsilicon
Copy link

@Faless Is it possible for you to make a PR of your cpp bindings to add HTML support to it? It could benefit those that want to use those bindings for HTML.

@Faless
Copy link
Collaborator Author

Faless commented Mar 11, 2021

@SIsilicon sure, thanks for the reminder, I had totally forgotten. PRed here: godotengine/godot-cpp#530

@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants