4 def create_jack_driver_obj(bld
, target
, sources
, uselib
= None):
5 driver
= bld
.new_task_gen('cxx', 'shlib')
6 driver
.features
.append('cc')
7 driver
.env
['shlib_PATTERN'] = 'jack_%s.so'
8 #driver.env.append_unique('CXXFLAGS', '-march=i686 -msse3 -ffast-math')
9 #driver.env.append_unique('CFLAGS', '-march=i686 -msse3 -ffast-math')
10 driver
.defines
= 'HAVE_CONFIG_H'
11 driver
.includes
= ['.', '..','../posix', '../common', '../common/jack']
12 driver
.target
= target
13 driver
.source
= sources
14 driver
.install_path
= '${ADDON_DIR}/'
15 driver
.uselib_local
= 'serverlib'
17 driver
.uselib
= uselib
21 jackd
= bld
.new_task_gen('cxx', 'program')
22 jackd
.includes
= ['.','..', '../posix', '../common/jack', '../common']
23 jackd
.defines
= 'HAVE_CONFIG_H'
24 jackd
.source
= ['../common/Jackdmp.cpp']
25 jackd
.uselib
= 'PTHREAD DL'
26 jackd
.uselib_local
= 'serverlib'
27 jackd
.target
= 'jackd'
29 create_jack_driver_obj(bld
, 'oss', ['oss/JackOSSDriver.cpp', '../common/memops.c'])
31 create_jack_driver_obj(bld
, 'boomer', ['oss/JackBoomerDriver.cpp', '../common/memops.c'])
33 create_jack_driver_obj(bld
, 'dummy', '../common/JackDummyDriver.cpp')
35 create_jack_driver_obj(bld
, 'net', '../common/JackNetDriver.cpp')
37 create_jack_driver_obj(bld
, 'loopback', '../common/JackLoopbackDriver.cpp')