Skip to content

Commit

Permalink
use node-gyp instead of node-waf
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Apr 18, 2012
1 parent f23543b commit eeab61d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 40 deletions.
10 changes: 10 additions & 0 deletions binding.gyp
@@ -0,0 +1,10 @@
{
"targets": [
{
"target_name": "nroonga_bindings",
"sources": [ "src/nroonga.cc" ],
"include_dirs": ["<!@(pkg-config --cflags-only-I groonga | sed -e 's/-I//g')"],
"libraries": ["<!@(pkg-config --libs-only-l groonga)"]
}
]
}
2 changes: 1 addition & 1 deletion lib/nroonga.js
@@ -1,7 +1,7 @@
(function() {
var msgpack, nroonga, optionsToCommandString, overrideOutputType;

nroonga = module.exports = require('./nroonga_bindings.node');
nroonga = module.exports = require('../build/Release/nroonga_bindings.node');

msgpack = require('msgpack2');

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -21,10 +21,11 @@
},
"scripts": {
"test": "expresso",
"watch": "coffee -c -w -o lib src"
"watch": "coffee -c -w -o lib src",
"install": "node-gyp rebuild"
},
"main": "./lib/nroonga",
"engines": {
"node": "~ 0.6.9"
"node": "~ 0.6.15"
}
}
2 changes: 1 addition & 1 deletion src/nroonga.coffee
@@ -1,4 +1,4 @@
nroonga = module.exports = require('./nroonga_bindings.node')
nroonga = module.exports = require('../build/Release/nroonga_bindings.node')
msgpack = require('msgpack2')

optionsToCommandString = (command, options) ->
Expand Down
36 changes: 0 additions & 36 deletions wscript

This file was deleted.

0 comments on commit eeab61d

Please sign in to comment.