Use XMLNode::get/set_property API in ARDOUR::AudioSource class
[ardour.git] / libs / hidapi / wscript
index cf95c8c71d2fc23cadb3d2bc4ba3d66afb81d5e6..2c870661b8a8234251f43c0b11ae63f8e32d3792 100644 (file)
@@ -24,19 +24,22 @@ def configure(conf):
     else:
         if conf.env['build_target'] == 'mingw':
             conf.check (compiler='cxx', lib='setupapi', mandatory=True, uselib_store='SETUPAPI')
-            conf.define ('HAVE_HIDAPI', conf.is_defined('HAVE_SETUPAPI'))
+            conf.define ('HAVE_HIDAPI', 1)
+        elif sys.platform == 'darwin':
+            conf.define ('HAVE_HIDAPI', 1)
         elif re.search ("linux", sys.platform) != None:
             autowaf.check_pkg(conf, 'libudev', uselib_store='UDEV', mandatory=False)
-            conf.define ('HAVE_HIDAPI', conf.is_defined('HAVE_UDEV'))
+            if conf.is_defined('HAVE_UDEV'):
+                conf.define ('HAVE_HIDAPI', 1)
         else:
-            conf.define ('HAVE_HIDAPI', 1)
+            print ("hidapi is not yet available for the given system")
         conf.load('compiler_c')
         autowaf.configure(conf)
 
 def build(bld):
     if bld.is_defined('USE_EXTERNAL_LIBS'):
         return
-    if not bld.get_define('HAVE_HIDAPI'):
+    if not bld.is_defined('HAVE_HIDAPI'):
         return
 
     # Host Library