Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.663 kB
from os import unlink, symlink, chdir
from os.path import exists
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'bindings'
obj.source = 'mdgram.cc'
def shutdown():
# HACK to get bindings.node out of build directory.
# better way to do this?
if exists('bindings.node'):
unlink('bindings.node')
if exists('build/default/bindings.node') and not exists('bindings.node'):
symlink('build/default/bindings.node', 'bindings.node')
Jump to Line
Something went wrong with that request. Please try again.