Skip to content
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

Can Node.js be compiled as a DLL rather than a .exe #2953

Closed
gesslerpd opened this issue Sep 18, 2015 · 9 comments
Closed

Can Node.js be compiled as a DLL rather than a .exe #2953

gesslerpd opened this issue Sep 18, 2015 · 9 comments
Labels
build Issues and PRs related to build files or the CI. feature request Issues that request new features to be added to Node.js. question Issues that look for answers.

Comments

@gesslerpd
Copy link

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?

@mscdex mscdex added question Issues that look for answers. build Issues and PRs related to build files or the CI. labels Sep 18, 2015
@mscdex
Copy link
Contributor

mscdex commented Sep 18, 2015

Related: nodejs/roadmap#9

@Fishrock123 Fishrock123 added the feature request Issues that request new features to be added to Node.js. label Sep 18, 2015
@Fishrock123
Copy link
Contributor

Related: #2021 & #556

@bnoordhuis
Copy link
Member

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.

@mathiask88
Copy link
Contributor

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.

@Fishrock123
Copy link
Contributor

Cc @zcbenz -- any advice? Anything that could be upstreamed to us?

@zcbenz
Copy link
Contributor

zcbenz commented Sep 21, 2015

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_type to shared_library is enough.

@Fishrock123
Copy link
Contributor

@gesslerpd any update? did @zcbenz's suggestion work?

@gesslerpd
Copy link
Author

Big thanks to you all for the help! I was able to find the node.dll which is included with atom/electron builds. Suggested by @mathiask88

@AnkitSource
Copy link

@gesslerpd would you please suggest how you actually get the .dll? I am confused!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. feature request Issues that request new features to be added to Node.js. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

7 participants