-
Notifications
You must be signed in to change notification settings - Fork 7
/
wscript
22 lines (17 loc) · 661 Bytes
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
nonmac = False
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=['sfml-system','sfml-window','sfml-graphics','sfml-audio'], uselib_store='SFML')
conf.check(lib='openal', uselib_store='AL')
conf.check(lib='sndfile', uselib_store='SNDFILE')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon', framework=['OpenAL','SFML','sfml-system','sfml-window','sfml-graphics','sfml-audio'])
obj.uselib=['SFML','AL','SNDFILE']
obj.target = 'nodesfml'
obj.source = 'src/NodeSFML.cc'