OSC: Reworked select to follow Gui selected strip regardless of it's inclusion in...
[ardour.git] / libs / backends / wscript
index d405751f78ff2e10f594ea8ee76a2186efbaac00..833d831e27670d7abf368846941974c6bb665cd6 100644 (file)
@@ -20,32 +20,12 @@ def configure(conf):
     autowaf.set_recursive()
     autowaf.configure(conf)
 
-    backends = [ 'jack' ]
-
-    if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc':
-        backends += [ 'wavesaudio' ]
-
-    if Options.options.build_dummy: 
-        backends += [ 'dummy' ]
-
-    if re.search ("linux", sys.platform) != None:
-        backends += [ 'alsa' ]
-
+    backends = conf.env['BACKENDS']
     for i in backends:
         sub_config_and_use(conf, i)
 
 def build(bld):
-    backends = [ 'jack' ]
-
-    if sys.platform == 'darwin' or sys.platform == 'mingw' or sys.platform == 'msvc':
-        backends += [ 'wavesaudio' ]
-
-    if bld.is_defined('HAVE_DUMMY'):
-        backends += [ 'dummy' ]
-
-    if re.search ("linux", sys.platform) != None:
-        if bld.is_defined('HAVE_ALSA'):
-            backends += [ 'alsa' ]
+    backends = bld.env['BACKENDS']
 
     for i in backends:
         bld.recurse(i)