forked from bsuh/node_xslt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
22 lines (17 loc) · 646 Bytes
/
wscript
File metadata and controls
22 lines (17 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import subprocess
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')
conf.check(lib=['xml2', 'xslt', 'exslt'], uselib_store='M', mandatory=True)
conf.env.set_variant('Release')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'node_xslt'
obj.source = 'node_xslt.cc'
obj.cxxflags = subprocess.Popen(["xml2-config", "--cflags"], stdout=subprocess.PIPE).communicate()[0].strip().split()
obj.lib = ['xml2', 'xslt', 'exslt']
obj.libpath = ['/usr/lib']