Skip to content
Browse files

converted to GYP

  • Loading branch information...
1 parent b668b0f commit fa1a129f37c00f9ae8fbe4516c940a91753a5658 @egorFiNE committed Mar 22, 2013
Showing with 17 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 Makefile
  3. +8 −0 bindings.gyp
  4. +1 −1 index.js
  5. +0 −4 package.json
  6. +3 −0 src/compress-buffer.cc
View
1 .gitignore
@@ -2,3 +2,4 @@ build/
lib/compress-buffer/compress-buffer-bindings.node
.lock-wscript
nbproject/
+node_modules/*
View
8 Makefile
@@ -5,16 +5,16 @@ all: test
build: clean configure compile
configure:
- node-waf configure
+ node-gyp configure
-compile:
- node-waf build
+compile: configure
+ node-gyp build
test: build
@nodeunit $(TESTS)
clean:
- rm -Rf build
+ node-gyp clean
.PHONY: clean test build
View
8 bindings.gyp
@@ -0,0 +1,8 @@
+{
+ "targets": [
+ {
+ "target_name": "compress_buffer_bindings",
+ "sources": [ "src/compress-buffer.cc" ]
+ }
+ ]
+}
View
2 index.js
@@ -1 +1 @@
-module.exports = require(__dirname+'/build/Release/compress-buffer-bindings');
+module.exports = require(__dirname+'/build/Release/compress_buffer_bindings');
View
4 package.json
@@ -9,11 +9,7 @@
"type": "git",
"url": "http://github.com/egorfine/node-compress-buffer.git"
},
- "engine": [ "node >=0.6.0" ],
"main" : "./index",
- "scripts": {
- "install": "make build"
- },
"devDependencies": {
"nodeunit": ">=0.5.4"
}
View
3 src/compress-buffer.cc
@@ -198,3 +198,6 @@ init (Handle<Object> target) {
NODE_SET_METHOD(target, "compress", compress);
NODE_SET_METHOD(target, "uncompress", uncompress);
}
+
+NODE_MODULE(compress_buffer_bindings, init);
+

0 comments on commit fa1a129

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