-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwscript
More file actions
31 lines (25 loc) · 793 Bytes
/
wscript
File metadata and controls
31 lines (25 loc) · 793 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
27
28
29
30
31
#!/usr/bin/env python
from os import system, remove
from os.path import abspath, exists, join
from shutil import rmtree
srcdir = abspath(".")
blddir = "build"
VERSION = "0.0.1"
def set_options(opt):
opt.tool_options("compiler_cxx")
opt.tool_options("compiler_cc")
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("compiler_cc")
conf.check_tool("node_addon")
def clean(ctx):
if exists("build"): rmtree("build")
# if exists(build_config): remove(build_config)
def build(bld):
node_pdl = bld.new_task_gen("cxx", "shlib", "node_addon")
node_pdl.source = "src/node-pdl.cpp"
node_pdl.name = "node_pdl"
node_pdl.target = "node-pdl"
node_pdl.uselib = ["pdl"]
node_pdl.includes = ["/usr/include", "/usr/include/SDL"]
node_pdl.linkflags = ['-lpdl']