Skip to content
Browse files

build: support dual-build with node-gyp and node-waf

Now newer versions of npm that include node-gyp will use that to build,
and older versions of npm will use node-waf to build.

Win-win!
  • Loading branch information...
1 parent 73adc11 commit 80054dba09c5ff03075c05c185dca7e59f068ceb @TooTallNate TooTallNate committed Jun 21, 2012
Showing with 11 additions and 3 deletions.
  1. +11 −0 binding.gyp
  2. +0 −3 package.json
View
11 binding.gyp
@@ -0,0 +1,11 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'kstat',
+ 'sources': [ 'kstat.cc' ],
+ 'libraries': [ '-lkstat' ],
+ 'cflags_cc': [ '-Wno-write-strings' ],
+ 'cflags_cc!': [ '-fno-exceptions' ],
+ }
+ ]
+}
View
3 package.json
@@ -6,7 +6,4 @@
"author": "Joyent (joyent.com)",
"engines": { "node": ">=0.6" },
"main": "build/Release/kstat",
- "scripts": {
- "install": "node-waf configure build"
- }
}

0 comments on commit 80054db

Please sign in to comment.
Something went wrong with that request. Please try again.