Skip to content

Commit

Permalink
build: support dual-build with node-gyp and node-waf
Browse files Browse the repository at this point in the history
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
TooTallNate committed Jun 22, 2012
1 parent 73adc11 commit 80054db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions binding.gyp
@@ -0,0 +1,11 @@
{
'targets': [
{
'target_name': 'kstat',
'sources': [ 'kstat.cc' ],
'libraries': [ '-lkstat' ],
'cflags_cc': [ '-Wno-write-strings' ],
'cflags_cc!': [ '-fno-exceptions' ],
}
]
}
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -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.