Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Symlinking binary

  • Loading branch information...
commit effe72d6bc6df1d5a1975a9a74bca187379de691 1 parent e832edb
@kuebk kuebk authored
Showing with 13 additions and 2 deletions.
  1. +12 −1 binding.gyp
  2. +1 −1  lib/zookeeper.js
View
13 binding.gyp
@@ -8,7 +8,7 @@
"target_name": "zookeeper",
'dependencies': ['libzk'],
"sources": [ "src/node-zk.cpp" ],
- 'cflags': ['-Wall', '-Werror', '-O0'],
+ 'cflags': ['-Wall', '-O0'],
'conditions': [
['OS=="solaris"', {
'cflags': ['-Wno-strict-aliasing'],
@@ -37,6 +37,17 @@
'outputs': [''],
'action': ['sh', 'libzk-build.sh']
}]
+ },
+ {
+ "target_name": "after_build",
+ "type": "none",
+ "dependencies": ["zookeeper"],
+ "actions": [{
+ "action_name": "symlink",
+ "inputs": ["<@(PRODUCT_DIR)/zookeeper.node"],
+ "outputs": ["<(module_root_dir)/build/zookeeper.node"],
+ "action": ["ln", "-s", "<@(PRODUCT_DIR)/zookeeper.node", "<(module_root_dir)/build/zookeeper.node"]
+ }]
}
],
}
View
2  lib/zookeeper.js
@@ -3,7 +3,7 @@ var util = require('util');
var _ = require('underscore');
var path = require('path');
var async = require('async');
-var NativeZk = require(__dirname + '/../build/Release/zookeeper.node').ZooKeeper;
+var NativeZk = require(__dirname + '/../build/zookeeper.node').ZooKeeper;
// with Node 0.5.x and greater, EventEmitter is pure-js, so we make a simple wrapper...
// Partly inspired by https://github.com/bnoordhuis/node-event-emitter
Please sign in to comment.
Something went wrong with that request. Please try again.