Skip to content

Commit

Permalink
Build netsource tool when celt or opus are available
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Aug 10, 2021
1 parent ef2af68 commit c742b43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ example_tools = {
def configure(conf):
conf.env['BUILD_TOOL_ALSA_IO'] = conf.env['SAMPLERATE'] and conf.env['BUILD_DRIVER_ALSA']
conf.env['BUILD_TOOL_CLIENT_TRANSPORT'] = conf.env['READLINE']
conf.env['BUILD_TOOL_CLIENT_NETSOURCE'] = conf.env['CELT'] or conf.env['OPUS']
conf.env['BUILD_TOOL_ZALSA'] = conf.env['ZALSA']

def build(bld):
Expand Down Expand Up @@ -66,7 +67,7 @@ def build(bld):
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
prog.target = 'jack_transport'

if bld.env['IS_LINUX'] or bld.env['IS_MACOSX']:
if bld.env['BUILD_TOOL_CLIENT_NETSOURCE']:
prog = bld(features = 'c cprogram')
prog.includes = os_incdir + ['.', '..', '../common/jack', '../common']
prog.source = ['netsource.c', '../common/netjack_packet.c']
Expand Down

0 comments on commit c742b43

Please sign in to comment.