13
0

make backend selection by product name more explicit

This commit is contained in:
Paul Davis 2014-10-14 16:58:11 -04:00
parent f77f54a6e2
commit 76edbdf5dc

View File

@ -11,26 +11,27 @@ out = 'build'
def backend_list(): def backend_list():
if Options.options.program_name == 'Ardour': if Options.options.program_name == 'Ardour':
# Ardour
backends = [ 'jack' ] backends = [ 'jack' ]
if Options.options.build_dummy: if Options.options.build_dummy:
backends += [ 'dummy' ] backends += [ 'dummy' ]
if Options.options.build_alsabackend: elif Options.options.program_name == 'Mixbus':
if re.search ("linux", sys.platform) != None: backends = [ 'jack' ]
backends += [ 'alsa' ]
else: elif Options.options.program_name == 'Tracks':
# Not Ardour
if re.search ("linux", sys.platform) != None: 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 backends = [ 'jack' ]
# created for the ALSA backend and JACK.
# backends = [ 'jack' ]
backends = [ ]
else: else:
backends = [ ] backends = [ ]
else:
print ('Unknown product name; backends will not include JACK ', Options.options.program_name)
if re.search ("linux", sys.platform) != None:
if Options.options.build_alsabackend:
backends += [ 'alsa' ]
if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc' or Options.options.dist_target == 'mingw': if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc' or Options.options.dist_target == 'mingw':
if Options.options.build_wavesbackend: if Options.options.build_wavesbackend:
backends += [ 'wavesaudio' ] backends += [ 'wavesaudio' ]