Skip to content

Commit

Permalink
adapt to hidapi changes on Linux, using libudev now
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner committed Aug 12, 2012
1 parent e4b9e04 commit e2755e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wscript
Expand Up @@ -6,7 +6,7 @@ import os;
hidapi_home='../hidapi'

cflags=["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall", "-fPIC" ]
includes=[ hidapi_home + "/hidapi", '/usr/include/libusb-1.0/' ]
includes=[ hidapi_home + "/hidapi" ]

def set_options(opt):
opt.tool_options("compiler_cxx")
Expand All @@ -19,7 +19,7 @@ def configure(conf):
if sys.platform == 'darwin':
conf.env.append_value('LINKFLAGS', ['Release/libhidapi.a', '-framework', 'IOKit', '-framework', 'CoreFoundation'])
else:
conf.env.append_value('LINKFLAGS', ['Release/libhidapi.a', '-lusb-1.0' ])
conf.env.append_value('LINKFLAGS', ['Release/libhidapi.a', '-ludev' ])

def build(bld):
bld.add_group("hidapi")
Expand All @@ -29,7 +29,7 @@ def build(bld):
if sys.platform == 'darwin':
hidapi.source = "../hidapi/mac/hid.c"
else:
hidapi.source = "../hidapi/linux/hid-libusb.c"
hidapi.source = "../hidapi/linux/hid.c"
hidapi.target = "hidapi"

bld.add_group("adapter")
Expand Down

0 comments on commit e2755e6

Please sign in to comment.