Repository navigation
Can Node.js be compiled as a DLL rather than a .exe #2953
Description
Activity
- addedquestionIssues asking questions about Node.js.Issues asking questions about Node.js.buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.
on Sep 18, 2015 Related: nodejs/roadmap#9
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Sep 18, 2015 There is no easy way to build a .dll right now. I'd start with setting node_target_type to 'shared_library' in node.gyp but that's probably not the only knob you have to adjust. You'll find out quick enough when you start building.
I think atom/electron comes with a node.dll. Short search gave me this atom/node@71ace5e
Maybe this will help. Don't know much about this topic.
Edit : Here is a full commit list for patches applied on 4.1.0 by atom https://github.com/atom/node/commits/atom I think there will be more interesting commits. Or you can just download the prebuild dll from atom if you are ok with all these changes.Cc @zcbenz -- any advice? Anything that could be upstreamed to us?
Cc @zcbenz -- any advice? Anything that could be upstreamed to us?
I'm still trying to figure out a decent and flexible interface of embedding Node.js to other applications, haven't got a good idea yet.
For op's question, I think setting
node_target_typetoshared_libraryis enough.@gesslerpd any update? did @zcbenz's suggestion work?
Big thanks to you all for the help! I was able to find the
node.dllwhich is included with atom/electron builds. Suggested by @mathiask88@gesslerpd would you please suggest how you actually get the .dll? I am confused!
Is there an existing .dll file for node that will allow node to be used within the same process space as a C#/.NET application. If not is there anyway to build this .dll easily?