use some structured code to decide which backends to build (should have cherry picked from waves' code but ...)
This commit is contained in:
parent
ce4333f059
commit
16e37d975f
@ -9,6 +9,34 @@ import re
|
|||||||
top = '.'
|
top = '.'
|
||||||
out = 'build'
|
out = 'build'
|
||||||
|
|
||||||
|
def backend_list():
|
||||||
|
if Options.options.program_name == 'Ardour':
|
||||||
|
# Ardour
|
||||||
|
backends = [ 'jack' ]
|
||||||
|
|
||||||
|
# These will come over from Ardour at some point soon (PD)
|
||||||
|
#if Options.options.build_dummy:
|
||||||
|
# backends += [ 'dummy' ]
|
||||||
|
|
||||||
|
#if Options.options.build_alsabackend:
|
||||||
|
# if re.search ("linux", sys.platform) != None:
|
||||||
|
# backends += [ 'alsa' ]
|
||||||
|
|
||||||
|
else:
|
||||||
|
# Not Ardour
|
||||||
|
if re.search ("linux", sys.platform) != None:
|
||||||
|
# Can't build this till the ALSA backend is merged because of a dependency (on Linux) on a shared utility library
|
||||||
|
# created for the ALSA backend and JACK.
|
||||||
|
# backends = [ 'jack' ]
|
||||||
|
backends = [ ]
|
||||||
|
else:
|
||||||
|
backends = [ ]
|
||||||
|
|
||||||
|
if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc':
|
||||||
|
backends += [ 'wavesaudio' ]
|
||||||
|
|
||||||
|
return backends
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
autowaf.set_options(opt)
|
autowaf.set_options(opt)
|
||||||
|
|
||||||
@ -20,33 +48,13 @@ def configure(conf):
|
|||||||
autowaf.set_recursive()
|
autowaf.set_recursive()
|
||||||
autowaf.configure(conf)
|
autowaf.configure(conf)
|
||||||
|
|
||||||
backends = [ 'jack' ]
|
backends = backend_list()
|
||||||
|
|
||||||
if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc':
|
|
||||||
backends += [ 'wavesaudio' ]
|
|
||||||
|
|
||||||
if Options.options.build_dummy:
|
|
||||||
backends += [ 'dummy' ]
|
|
||||||
|
|
||||||
if Options.options.build_alsabackend:
|
|
||||||
if re.search ("linux", sys.platform) != None:
|
|
||||||
backends += [ 'alsa' ]
|
|
||||||
|
|
||||||
for i in backends:
|
for i in backends:
|
||||||
sub_config_and_use(conf, i)
|
sub_config_and_use(conf, i)
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
backends = [ 'jack' ]
|
backends = backend_list()
|
||||||
|
|
||||||
if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc':
|
|
||||||
backends += [ 'wavesaudio' ]
|
|
||||||
|
|
||||||
if bld.env['BUILD_DUMMYBACKEND']:
|
|
||||||
backends += [ 'dummy' ]
|
|
||||||
|
|
||||||
if re.search ("linux", sys.platform) != None:
|
|
||||||
if bld.env['BUILD_ALSABACKEND'] and bld.is_defined('HAVE_ALSA'):
|
|
||||||
backends += [ 'alsa' ]
|
|
||||||
|
|
||||||
for i in backends:
|
for i in backends:
|
||||||
bld.recurse(i)
|
bld.recurse(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user