-
Notifications
You must be signed in to change notification settings - Fork 281
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
[WIP] Experimental WebAssembly Support #2561
base: main
Are you sure you want to change the base?
Conversation
Uhhh try with meson instead edit: need to pass -Ddefault_library=static
edit2: nvm:
|
ninja: Entering directory `WebAssembly' |
meson.build
Outdated
gnu_symbol_visibility: 'hidden', | ||
dependencies: [deps, exiv2int_dep], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's your problem
peter.kovar@Pascal /2TB/usr/src/github.com/1div0/exiv2/WebAssembly |
What's the issue? |
This was output to the developer console in Brave. Just a confirmation that Exiv2 library is executing via WebAssembly. |
OK. The purpose of the meson build is simply to build the library. The goal is not to fully replace the CMake build. I have no idea whether or not it works properly. |
Well, my intent was to make sure that WebAssembly can be built and viable option. Maybe even for 1.0. Thoughts? |
Sure, why not. I can’t help much with CMake though |
I tried this again. Needs:
Maybe I should completely get rid of it. It doesn't even work for cmake. meson ran with
em.txt:
|
if you want to build the subprojects as well, -Dauto_features=enable and -DXXX:default_library=static for each subproject. |
great, a bug in the wrap. |
hmm tests don't compile
|
The reason for the tests is because gtest uses std::atomic. Might be fixed in a newer version of emscripten. Who knows. |
Will check ASAP. |
meson setup --cross-file wasm32.text -Ddefault_library=static WebAssembly |
Codecov Report
@@ Coverage Diff @@
## main #2561 +/- ##
=======================================
Coverage 63.96% 63.96%
=======================================
Files 103 103
Lines 22344 22344
Branches 10835 10835
=======================================
Hits 14293 14293
Misses 5828 5828
Partials 2223 2223 |
emcmake cmake -B WebAssembly
cmake --build WebAssembly
Exiv2 WebAssembly.log
Failure by linking stage. Need to dig deeper.