Skip to content

Commit

Permalink
update hidapi to 0.9.0
Browse files Browse the repository at this point in the history
The original maintainer of hidapi (signal11) stopped responding
to communication for a long time, so hidapi has been forked. It is
now hosted by libusb at
https://github.com/libusb/hidapi
0.9.0 is the first stable release since the fork.
  • Loading branch information
Be-ing committed Apr 6, 2020
1 parent 6882798 commit 1072d95
Show file tree
Hide file tree
Showing 71 changed files with 3,112 additions and 2,044 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1985,16 +1985,16 @@ if(HID)
if(HIDAPI_STATIC)
message(STATUS "Linking internal libhidapi statically")
add_library(mixxx-hidapi STATIC EXCLUDE_FROM_ALL)
target_include_directories(mixxx-hidapi SYSTEM PUBLIC lib/hidapi-0.8.0-rc1/hidapi)
target_include_directories(mixxx-hidapi SYSTEM PUBLIC lib/hidapi/hidapi)
if(WIN32)
target_sources(mixxx-hidapi PRIVATE lib/hidapi-0.8.0-rc1/windows/hid.c)
target_sources(mixxx-hidapi PRIVATE lib/hidapi/windows/hid.c)
elseif(APPLE)
target_sources(mixxx-hidapi PRIVATE lib/hidapi-0.8.0-rc1/mac/hid.c)
target_sources(mixxx-hidapi PRIVATE lib/hidapi/mac/hid.c)
elseif(UNIX)
if(NOT LibUSB_FOUND)
message(FATAL_ERROR "USB HID controller support on Unix with statically linked libhidapi-libusb requires libusb 1.0 and its development headers.")
endif()
target_sources(mixxx-hidapi PRIVATE lib/hidapi-0.8.0-rc1/libusb/hid.c)
target_sources(mixxx-hidapi PRIVATE lib/hidapi/libusb/hid.c)
target_link_libraries(mixxx-hidapi PRIVATE LibUSB::LibUSB)
else()
message(FATAL_ERROR "USB HID controller support only possible on Windows/Mac OS/Linux/BSD.")
Expand Down
4 changes: 2 additions & 2 deletions build/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def sources(self, build):

class HID(Feature):
INTERNAL_LINK = False
HIDAPI_INTERNAL_PATH = 'lib/hidapi-0.8.0-rc1'
HIDAPI_INTERNAL_PATH = 'lib/hidapi'

def description(self):
return "HID controller support"
Expand Down Expand Up @@ -707,7 +707,7 @@ def configure(self, build, conf):
# https://bugs.launchpad.net/mixxx/+bug/1833225
if not conf.CheckForPKG('shout', '2.4.4'):
self.INTERNAL_LINK = True

if not self.INTERNAL_LINK:
self.INTERNAL_LINK = not conf.CheckLib(['libshout', 'shout'])

Expand Down
1,630 changes: 0 additions & 1,630 deletions lib/hidapi-0.8.0-rc1/doxygen/Doxyfile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion lib/hidapi-0.8.0-rc1/Makefile.am → lib/hidapi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if OS_FREEBSD
SUBDIRS += libusb
endif

if OS_KFREEBSD
SUBDIRS += libusb
endif

if OS_WINDOWS
SUBDIRS += windows
endif
Expand All @@ -40,7 +44,7 @@ endif
EXTRA_DIST = udev doxygen

dist_doc_DATA = \
README.txt \
README.md \
AUTHORS.txt \
LICENSE-bsd.txt \
LICENSE-gpl3.txt \
Expand Down
Loading

0 comments on commit 1072d95

Please sign in to comment.