diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-24 00:51:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-24 00:51:51 +0200 |
commit | 53e9337eba17236550cee4c04cec41bcaf204fcf (patch) | |
tree | 9fed5e09dd3414a16ce40c1444872a4282adfed1 /libs/hidapi/wscript | |
parent | c78824aef510258545a04b477463b86be1fe55bd (diff) |
Fix HIDAPI optional (python: False vs 'False')
Diffstat (limited to 'libs/hidapi/wscript')
-rw-r--r-- | libs/hidapi/wscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/hidapi/wscript b/libs/hidapi/wscript index cf95c8c71d..2cb4a5f3f6 100644 --- a/libs/hidapi/wscript +++ b/libs/hidapi/wscript @@ -24,10 +24,12 @@ 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')) + if conf.is_defined('HAVE_SETUPAPI'): + 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) conf.load('compiler_c') |