Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 668 Bytes
import Options
from os import unlink, symlink
from os.path import exists
srcdir = "."
blddir = "build"
VERSION = "0.1.0"
def set_options(opt):
opt.tool_options("compiler_cxx compiler_cc")
def configure(conf):
conf.check_tool("compiler_cxx compiler_cc")
conf.check_tool("node_addon")
def build(bld):
aeternum = bld.new_task_gen("cc")
aeternum.target = "aeternum"
aeternum.source = ["deps/aeternum/aeternum.c"]
aeternum.includes = "deps/aeternum/"
aeternum.ccflags = ["-fPIC", "-Wall", "-pedantic"]
prefork = bld.new_task_gen("cxx", "shlib", "node_addon", add_objects="aeternum")
prefork.target = "prefork"
prefork.source = ["src/prefork.cc"]