Where to find "node.lib" for all operating systems and archs? #4787
-
Hey everyone. TL;DR: From which source can I obtain MacOS "libnode.dylib" for different architectures for manual compiling and linking of Node addons? Long Version: I am currently working on a special Skia wrapper for my project for which I target a matrix of runtimes (Node, .net, Java), operating systems (Windows, Linux, Android, MacOS, iOS) and architectures (x64, x86, arm, arm64). I am compiling all my native libs with GN/Ninja and Clang using the general skia toolchain and would also like to do so for my Node Addons. As I have already quite an advanced build system in place handling all other targets, I would like to avoid introducing node-gyp and trying to get it compile in the way I want. I know the headers are available via many sources like:
But how about node libraries required for linking?
I couldn't find yet anything about the libs in the docs or the node-gyp source code that would help me. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
I think you're conflating two things.
|
Beta Was this translation helpful? Give feedback.
I can confirm that this point is my goal. node-gyp is not in my interest to use due to various reasons I can share if anyone is interested. The main reason is: I have already a fully working setup for cross compiling 16 static libs (skia) and 29 shared libs (my wrapper) targeting 2 other runtimes (.net & java) and don't want to reinvent the wheel for Node only with (especially considering nodejs/node-gyp#2295). 😫
The statement that node-gyp is mandatory is not fully true, this toolchain also just calls other compilers with the right inputs. It definitely makes things e…