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

Proposal: Make zgui a module for emscripten #22

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ckrowland
Copy link
Contributor

In order to build for emscripten, all library code must be imported into the wasm lib instead of linked. Zig modules seem to cover both emscripten and native builds. Also a fix in the underlying imgui lib can be removed and an additional C flag can be added to build for native wgpu.

Might be stomping on some toes by removing the shared / static library, maybe we should have a linked build and a module build side by side?

Tested against gui_test_wgpu for native and my project for native and web.

Copy link
Member

@hazeycode hazeycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants