Commit 91872fa0 authored by Torben Hohn's avatar Torben Hohn
Browse files

add netsource to wscript... maybe still needs some conditional lib deps.

parent 923cec42
......@@ -30,9 +30,16 @@ example_libs = {
def configure(conf):
e = conf.check_cc(header_name='sndfile.h', define_name="HAVE_SNDFILE")
conf.check_cc(header_name='samplerate.h', define_name="HAVE_SAMPLERATE")
if conf.is_defined('HAVE_SAMPLERATE'):
conf.env['LIB_SAMPLERATE'] = ['samplerate']
if conf.is_defined('HAVE_SNDFILE'):
conf.env['LIB_SNDFILE'] = ['sndfile']
conf.check_cfg(package='celt', atleast_version='0.5.0', args='--cflags --libs')
e = conf.check_cc(header_name='ncurses.h', define_name="HAVE_NCURSES")
if conf.is_defined('HAVE_NCURSES'):
......@@ -105,6 +112,14 @@ def build(bld):
prog.uselib_local = 'clientlib'
prog.target = 'jack_rec'
prog = bld.new_task_gen('cc', 'program')
prog.includes = os_incdir + ['../common/jack', '../common']
prog.source = ['netsource.c', '../common/netjack_packet.c']
prog.env.append_value("CCFLAGS", "-DNO_JACK_ERROR")
prog.uselib = 'CELT SAMPLERATE'
prog.uselib_local = 'clientlib'
prog.target = 'jack_netsource'
for example_lib, example_lib_source in example_libs.items():
lib = bld.new_task_gen('cc', 'shlib')
lib.env['shlib_PATTERN'] = '%s.so'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment