make backend selection by product name more explicit
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Oct 2014 20:58:11 +0000 (16:58 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Oct 2014 20:58:11 +0000 (16:58 -0400)
libs/backends/wscript

index 547f7eb4fc43175f6b74d3538e699614469b1780..0d1330f58eed0fa8af22f0302fd5a46fca1c2506 100644 (file)
@@ -11,26 +11,27 @@ out = 'build'
 
 def backend_list():
     if Options.options.program_name == 'Ardour':
-        # Ardour
         backends = [ 'jack' ]
 
         if Options.options.build_dummy: 
             backends += [ 'dummy' ]
 
-        if Options.options.build_alsabackend:
-                if re.search ("linux", sys.platform) != None:
-                    backends += [ 'alsa' ]
+    elif Options.options.program_name == 'Mixbus':
+        backends = [ 'jack' ]
 
-    else:
-        # Not Ardour
+    elif Options.options.program_name == 'Tracks':
         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 = [ ]
+            backends = [ 'jack' ]
         else:
             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 Options.options.build_wavesbackend:
             backends += [ 'wavesaudio' ]