-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
node-gyp support? #23
Comments
Yup, I'm planning to upstream the mentioned common.gypi that I intentionally kept separate from sharp-specific variables. |
Thank you. I copied your emmake node-gyp rebuild --nodedir=node_modules/@tybys/emnapi Success on WSL2, but failed on Windows.
It seems that gyp still uses msvs generator. Another point, according to gyp doc
the So how can I use it on non-linux? |
It's because it still needs a bit more work for an actual PR, otherwise I'd already upstream it :P |
I tried |
I haven't had time to look into that yet; I only used it via WSL for now but my focus has been elsewhere, sorry. If you want to look into it, you're welcome to do so, I just 1) didn't have time but 2) want to make sure the authorship of |
Oh sorry, I don't mean to rush you. Looking forward to your PR in patient, not worry |
No problem, just saying it's been messy and don't know when I'll get around to this. If you want, I can commit just the common.gypi for now so that at least Linux users would have a way forward, and we can figure out the other OS later. |
depends on your opinion. emnapi has few users, perhaps you are the first one. I don't mind to wait :) |
I am also interested in this feature and I am ready to contribute if anything is still missing. FYI, I am the author of SWIG Node-API and I planning to use |
@mmomtchev Thank you so much! I still don't know how to make node-gyp works for all platforms. I created a reproduce repo here: https://github.com/toyobayashi/emnapi-node-gyp-test |
Thanks, will give it a try. This project is a wonderful idea, it opens many new doors. I am also the author/maintainer of a number of Node.js addons. |
Good news! Found ways to build successfully on Windows and macOS. nodejs/node-gyp#2823 (comment). I have pushed to emnapi-node-gyp-test. |
One of the ugliest parts of the |
upstream changes required:
test with patches: https://github.com/toyobayashi/emnapi-node-gyp-test/actions I think we can close this issue now since works in this repo has been done. Open issues at any time if have more specific problems. |
Awesome! I suspected that it would require upstream fixes but didn't want to dig into node-gyp itself 😅 Thanks for doing this (and for preserving the author notice)! |
It would be nice if node-gyp can work with emnapi on win/linux/mac.
The text was updated successfully, but these errors were encountered: