Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v.0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.669 kB
import os
from os.path import exists, abspath
from os import unlink
from shutil import copy
srcdir = "."
blddir = "build"
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):
cargo = bld.new_task_gen('cxx', 'shlib', 'node_addon')
cargo.cxxflags = ["-g",]
cargo.target = 'nTPL.native'
cargo.source = 'nTPL.native/nTPL.native.cc'
def shutdown():
if exists('./lib/nTPL.native.node'):
unlink('./lib/nTPL.native.node');
if exists('./build/default/nTPL.native.node'):
copy('./build/default/nTPL.native.node', './lib/nTPL.native.node')
Jump to Line
Something went wrong with that request. Please try again.