Permalink
Browse files

Merge pull request #5 from TooTallNate/gyp

Add support for "node-gyp"
  • Loading branch information...
2 parents f39706f + a6f7ee0 commit f3bd0e2de00519ea9319701e7f60cc32d7928629 @davglass committed Feb 7, 2012
Showing with 12 additions and 2 deletions.
  1. +6 −0 .gitignore
  2. +0 −1 getrusage.cc
  3. +2 −0 index.js
  4. +4 −1 package.json
View
@@ -1,2 +1,8 @@
build/
.lock-wscript
+*.gyp
+*.Makefile
+*.target.gyp.mk
+out
+node_modules
+gyp-mac-tool
View
@@ -6,7 +6,6 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ev.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <node.h>
View
@@ -0,0 +1,2 @@
+
+module.exports = require('bindings')('getrusage.node')
View
@@ -23,7 +23,10 @@
"url": "git://github.com/davglass/node-getrusage.git"
}
],
- "main": "./build/default/getrusage",
+ "main": "./index.js",
+ "dependencies": {
+ "bindings": "*"
+ },
"scripts": {
"build": "node-waf configure build",
"test": "node-waf test",

0 comments on commit f3bd0e2

Please sign in to comment.