-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathwscript
More file actions
26 lines (22 loc) · 687 Bytes
/
wscript
File metadata and controls
26 lines (22 loc) · 687 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
25
26
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 pre(bld):
import Utils
Utils.exec_command(bld.path.abspath()+'/do')
def build(bld):
bld.add_pre_fun(pre)
bld.env.LIBPATH_NACL=[bld.path.abspath()+'/build/localhost/lib/x86/']
bld.env.STATICLIB_NACL="nacl"
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.target = "node_nacl"
obj.source = "node_nacl.cc"
obj.includes = bld.path.abspath()+'/build/localhost/include/x86/'
obj.uselib = 'NACL'
obj.add_obj_file("cpucycles.o")
obj.add_obj_file("randombytes.o")