Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Start using node-gyp to build #88

Merged
merged 1 commit into from

3 participants

@mojodna

Baby steps. This still needs to move binding.node to the right place and modify NPM's install target, probably among other things.

$ npm install -g node-gyp
$ node-gyp configure --target=0.6
$ node-gyp build

Confirmed working on OS X + Ubuntu 11.10 w/ Node 0.6.10.

(wscript appears to link to uuid, but binding.cc doesn't reference it anywhere.)

@TooTallNate

Awesome!

@TooTallNate

Note that the files added to the .gitignore file now get generated into the build dir, so the changes to that file aren't necessary. But the binding.gyp file looks good.

/cc @visionmedia

@tj
Collaborator
tj commented

whoop! will this build fine with npm install zmq? @TooTallNate you said npm bundles node-gyp or something now right?

@TooTallNate
@TooTallNate

Looks like there's already no "script" phases so that's good. Looks like all you need to do is grab that binding.gyp file!

@tj
Collaborator
tj commented

awesome thanks for the review my friend! merging

@tj tj merged commit 958c2be into JustinTulloss:master
@tj
Collaborator
tj commented

haha i still had npm 1.0.106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 11, 2012
  1. @mojodna

    Start using node-gyp to build

    mojodna authored
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +18 −0 binding.gyp
View
5 .gitignore
@@ -6,3 +6,8 @@ build
binding.node
examples/stress-test-client
node_modules
+Makefile.gyp
+binding.Makefile
+binding.target.gyp.mk
+gyp-mac-tool
+out/
View
18 binding.gyp
@@ -0,0 +1,18 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'binding',
+ 'sources': [ 'binding.cc' ],
+ 'libraries': ['-lzmq'],
+ 'cflags!': ['-fno-exceptions'],
+ 'cflags_cc!': ['-fno-exceptions'],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
+ }
+ }]
+ ]
+ }
+ ]
+}
Something went wrong with that request. Please try again.