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
Added support for "node-gyp" build #69
Conversation
npm does this for us automatically.
before we were picking up the system openssl headers rather than the bundled one.
This doesn't look backwards compatible with 0.6.x One way forward might be to just use
Versus node-waf or node-gyp. |
|
Not everyone upgrades right away :) I am not against providing a gyp solution, but certainly not at the expense of patching for something that doesn't ship by default yet. I can already see the issue reports ;) Is there no way to make it waf/gyp agnostic at the build layer? I would hope npm would use the right system (or any that it finds) if you just do npm configure build. Is that not the case? |
The way it is set up here, a newer version of npm will use I promise, this is the right way to do it going forward. We're trying to phase out the "preinstall"/"install" steps, npm knows when to do the right thing. |
Fair enough, I will test this out on the curent 0.6.x branches and if things seems right will begin to merge some of the patches. I am still against the changed include style and will not merge that patch as is. |
I have cherry picked two of the commits:
I will hold off on the remaining gyp commits until a version of node is released which has node-gyp bundled to mitigate any transition problems people might have when grabbing the code from github and trying to build with the current "stable" node version. |
I think the only thing that remains from this pull commit is the Makefile changes (and readme). Is there a reference on how to install node-gyp? It does not install by default if you use the "make, make install" method in the 0.6 branch currently and as such I am hesitant to merge the makefile change until that is made clearer. |
@shtylman |
@TooTallNate I installed from the 0.6 branch from source today (0.6.14) and node-gyp was not installed. Do I need to change something during ./configure? (Note: I did not use makefile-gyp, but the traditional make, make install method the readme recommends). |
It's internally bundled with npm, not installed in your PATH, so when you do If you want it in your PATH you can just |
All of the accepted changes have been pulled into master. Thanks for the patches! |
Killer! Thanks for helping us phase out waf ;) |
@TooTallNate did you actually get this building on your system with your gyp setup? I'm trying to get an environment setup so I want to know what yours is like that way I've got it...setup similarly. :) |
@ncb000gt Ya Simply If you're just trying to compile the local repo, then Cheers :) |
@TooTallNate Heh. I should have been more clear in my question. I meant specifically as it regards using |
Hey guys, here's a pull for compatibility with
node-gyp
for building. As of npmv1.1.8
, npm is bundling node-gyp and will be used to build modules that have abinding.gyp
file in their root.So enjoy! :)