Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Layout simplification (move wscript to root level, remove lib folder)…
… and fix bug tracker url
- Loading branch information
Showing
4 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./lib/hash_ring'); | ||
module.exports = require("./build/default/hash_ring").HashRing; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
srcdir = '.' | ||
blddir = '../build' | ||
VERSION = '0.0.1' | ||
from os.path import exists | ||
from shutil import rmtree | ||
|
||
def set_options(ctx): | ||
ctx.tool_options('compiler_cxx') | ||
|
||
def clean(cln): | ||
if exists('build'): rmtree('build') | ||
|
||
def configure(ctx): | ||
ctx.check_tool('compiler_cxx') | ||
ctx.check_tool('node_addon') | ||
|
||
def build(ctx): | ||
t = ctx.new_task_gen('cxx', 'shlib', 'node_addon') | ||
t.target = 'hash_ring' | ||
t.source = 'md5.cc hash_ring.cc module.cc' | ||
t.source = [ | ||
'src/md5.cc', | ||
'src/hash_ring.cc', | ||
'src/module.cc' | ||
] |