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

libusb: support building for emscripten #1903

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

darkvision77
Copy link
Contributor

Added emscripten backend compilation.

cpp_std=c++20 is required to build with emscripten.

How to compile:

# https://github.com/mesonbuild/meson/blob/master/cross/wasm.txt
meson setup --cross-file wasm.txt build -Ddefault_library=static
meson compile -C build

@neheb
Copy link
Collaborator

neheb commented Feb 2, 2025

I'm actually curious whether adding CI for emscripten is a good idea. I don't know how valuable it is.

From my experience, it blows up when needing to link to pthread.

@darkvision77
Copy link
Contributor Author

I'm actually curious whether adding CI for emscripten is a good idea.

IMHO, CI for emscripten is a must have thing.
After all, if the original project supports builds with emscripten, then wrap should probably support them too.

@darkvision77
Copy link
Contributor Author

@neheb, what's the problem?

@neheb neheb merged commit 6ff216b into mesonbuild:master Feb 8, 2025
13 of 15 checks passed
@darkvision77 darkvision77 deleted the libusb-emscripten branch February 8, 2025 01:42
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.

2 participants