forked from TooTallNate/node-lame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
25 lines (20 loc) · 751 Bytes
/
wscript
File metadata and controls
25 lines (20 loc) · 751 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
sjrcdir = '.'
blddir = 'build'
VERSION = '0.0.0'
def set_options(ctx):
ctx.tool_options('compiler_cxx')
def configure(ctx):
ctx.check_tool('compiler_cxx')
ctx.check_tool('node_addon')
ctx.env.append_value('LINKFLAGS', ['-L/usr/local/lib'])
ctx.env.append_value('CXXFLAGS', ['-I/usr/local/include'])
ctx.check_cxx(lib="mp3lame")
ctx.check_cxx(header_name='lame/lame.h', mandatory="True")
ctx.check_cxx(lib="mpg123")
ctx.check_cxx(header_name='mpg123.h', mandatory="True")
def build(ctx):
t = ctx.new_task_gen('cxx', 'shlib', 'node_addon')
t.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE"]
t.target = 'bindings'
t.source = 'src/bindings.cc src/node_lame.cc src/node_mpg123.cc'
t.uselib = 'MP3LAME MPG123'