-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
24 lines (20 loc) · 668 Bytes
/
wscript
File metadata and controls
24 lines (20 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]