don't build a-r-d if alsa backend is not built
authorRobin Gareus <robin@gareus.org>
Thu, 5 Jun 2014 16:18:56 +0000 (18:18 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 5 Jun 2014 16:19:55 +0000 (18:19 +0200)
libs/ardouralsautil/wscript

index 9ff4e424239df16b8a901121f03935794c83d63b..57d02cc27eeb83151c171bbc00ded1ac37305aff 100644 (file)
@@ -37,7 +37,7 @@ def build(bld):
             obj.vnum     = '0.0.1'
             obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardouralsautil')
 
-        if bld.is_defined('HAVE_ALSA') and bld.is_defined('HAVE_DBUS'):
+        if bld.env['BUILD_ALSABACKEND'] and bld.is_defined('HAVE_ALSA') and bld.is_defined('HAVE_DBUS'):
             obj = bld(features = 'c cprogram')
             obj.source = [
                 'reserve.c',