5 'jack_alias' : 'alias.c',
6 'jack_bufsize' : 'bufsize.c',
7 'jack_connect' : 'connect.c',
8 'jack_evmon' : 'evmon.c',
9 'jack_freewheel' : 'freewheel.c',
10 'jack_load' : 'ipload.c',
12 'jack_midi_dump' : 'midi_dump.c',
13 'jack_monitor_client' : 'monitor_client.c',
14 'jack_property' : 'property.c',
15 'jack_samplerate' : 'samplerate.c',
16 'jack_session_notify' : 'session_notify.c',
17 'jack_unload' : 'ipunload.c',
18 'jack_wait' : 'wait.c',
22 conf.env['BUILD_TOOL_ALSA_IO'] = conf.env['SAMPLERATE'] and conf.env['BUILD_DRIVER_ALSA']
23 conf.env['BUILD_TOOL_CLIENT_TRANSPORT'] = conf.env['READLINE']
24 conf.env['BUILD_TOOL_CLIENT_NETSOURCE'] = conf.env['CELT'] or conf.env['OPUS']
25 conf.env['BUILD_TOOL_ZALSA'] = conf.env['ZALSA']
28 if bld.env['IS_LINUX']:
29 os_incdir = ['../linux', '../posix']
30 if bld.env['IS_MACOSX']:
31 os_incdir = ['../macosx', '../posix']
32 if bld.env['IS_FREEBSD']:
33 os_incdir = ['../freebsd', '../posix']
35 os_incdir = ['../solaris', '../posix']
36 if bld.env['IS_WINDOWS']:
37 os_incdir = ['../windows']
38 for example_tool, example_tool_source in list(example_tools.items()):
39 if bld.env['IS_MACOSX']:
40 prog = bld(features='c cprogram', framework = ['Foundation'])
42 prog = bld(features='c cprogram')
43 prog.includes = os_incdir + ['../common/jack', '../common']
44 prog.source = example_tool_source
45 prog.use = ['clientlib']
46 if bld.env['IS_LINUX']:
47 prog.use += ['RT', 'M']
50 if bld.env['IS_WINDOWS'] and bld.env['BUILD_STATIC']:
51 prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
52 #prog.cflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']
53 #prog.cxxflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']
55 prog.target = example_tool
57 if bld.env['BUILD_TOOL_CLIENT_TRANSPORT']:
58 prog = bld(features = 'c cprogram')
59 prog.includes = os_incdir + ['../common/jack', '../common']
60 prog.source = 'transport.c'
61 prog.use = ['clientlib']
62 if bld.env['IS_LINUX']:
63 prog.use += ['RT', 'READLINE']
64 if bld.env['IS_MACOSX']:
65 prog.use += ['READLINE']
66 if bld.env['IS_WINDOWS']:
67 prog.use += ['READLINE']
68 if bld.env['BUILD_STATIC']:
69 prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
70 prog.target = 'jack_transport'
72 if bld.env['BUILD_TOOL_CLIENT_NETSOURCE']:
73 prog = bld(features = 'c cprogram')
74 prog.includes = os_incdir + ['.', '..', '../common/jack', '../common']
75 prog.source = ['netsource.c', '../common/netjack_packet.c']
76 prog.env.append_value('CFLAGS', '-DNO_JACK_ERROR')
77 prog.use = ['CELT', 'SAMPLERATE', 'OPUS', 'M', 'clientlib']
78 prog.target = 'jack_netsource'
79 prog.defines = ['HAVE_CONFIG_H']
81 if bld.env['IS_LINUX'] and bld.env['BUILD_TOOL_ALSA_IO']:
82 prog = bld(features = 'c cprogram')
83 prog.includes = os_incdir + ['../common/jack', '../common']
84 prog.source = ['alsa_in.c', '../common/memops.c']
85 prog.env.append_value('CFLAGS', '-DNO_JACK_ERROR')
86 prog.use = ['clientlib', 'ALSA', 'SAMPLERATE', 'M']
87 prog.target = 'alsa_in'
89 prog = bld(features = 'c cprogram')
90 prog.includes = os_incdir + ['../common/jack', '../common']
91 prog.source = ['alsa_out.c', '../common/memops.c']
92 prog.env.append_value('CFLAGS', '-DNO_JACK_ERROR')
93 prog.use = ['clientlib', 'ALSA', 'SAMPLERATE', 'M']
94 prog.target = 'alsa_out'
96 if bld.env['IS_LINUX'] and bld.env['BUILD_TOOL_ZALSA']:
97 prog = bld(features = ['cxx', 'cxxshlib'])
98 prog.defines = ['HAVE_CONFIG_H','SERVER_SIDE','APPNAME="zalsa_in"','VERSION="0.4.0"']
99 prog.install_path = '${ADDON_DIR}/'
100 prog.includes = os_incdir + ['../common/jack', '../common', 'zalsa']
101 prog.source = ['zalsa/zita-a2j.cc', 'zalsa/alsathread.cc', 'zalsa/jackclient.cc', 'zalsa/pxthread.cc', 'zalsa/lfqueue.cc']
102 prog.target = 'zalsa_in'
103 prog.use = ['ZITA-ALSA-PCMI', 'ZITA-RESAMPLER', 'ALSA', 'M', 'RT', 'serverlib']
104 prog.env['cxxshlib_PATTERN'] = '%s.so'
106 prog = bld(features = ['cxx', 'cxxshlib'])
107 prog.defines = ['HAVE_CONFIG_H','SERVER_SIDE','APPNAME="zalsa_out"','VERSION="0.4.0"']
108 prog.install_path = '${ADDON_DIR}/'
109 prog.includes = os_incdir + ['../common/jack', '../common', 'zalsa']
110 prog.source = ['zalsa/zita-j2a.cc', 'zalsa/alsathread.cc', 'zalsa/jackclient.cc', 'zalsa/pxthread.cc', 'zalsa/lfqueue.cc']
111 prog.target = 'zalsa_out'
112 prog.use = ['ZITA-ALSA-PCMI', 'ZITA-RESAMPLER', 'ALSA', 'M', 'RT', 'serverlib']
113 prog.env['cxxshlib_PATTERN'] = '%s.so'
115 if not bld.env['IS_WINDOWS']:
116 bld.symlink_as('${PREFIX}/bin/jack_disconnect', 'jack_connect')
117 bld.install_files('${PREFIX}/bin', 'jack_control', chmod=0o755)