-
Notifications
You must be signed in to change notification settings - Fork 294
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
canvas
module does not work with ncc v0.3.0
#99
Comments
@TooTallNate how hard would it be to replicate the binary analysis from It would just be nicer to avoid random globbing where possible... |
I guess it wouldn't work cross platform, which would be the main concern as that's a lot of work to analyze all different binary types... |
I guess there would also be the issue that dynamic libraries can reference dynamic libraries here... so it gets a little bit too much... Do you think the assumption is ok that we only support |
Honestly I don't think many native modules bundle shared libs like this. My personal preference is to statically compile the dep and build it into the Other modules usually just depend on the system shared lib being installed from the package manager, but I don't really think we need to support that use-case (at least, it would require runtime trickery with the |
It correctly copies the
canvas.node
file:However,
canvas
also bundles the shared libs that it relies on:Proposal
When the native module case is hit, ncc should also look for shared libraries appropriate for the operating system (
.dylib
for MacOS,.so
for Linux,.dll
for Windows, etc.) relative to the.node
file and copy them into the output bundle as well.The text was updated successfully, but these errors were encountered: