hidapi
                                
                                 hidapi copied to clipboard
                                
                                    hidapi copied to clipboard
                            
                            
                            
                        Allow to optional disable libusb version on linux
Quick way to compile libhidapi only with hidraw.
Why? And why not the opposite instead or as well?
I'd love for it to be hidraw-only, but there are technical issues in the way of that, unfortunately.
The default should probably be to compile with libusb.
In our use case, we cross compile static binaries with hidraw and don't need the libusb part. During full static cross compilation you don't want to solve dependencies of parts you don't need at the end.
Maybe a better option would be to not build the libusb part if libusb is not available?
Maybe a better option would be to not build the libusb part if libusb is not available?
Maybe but I'd like for any disabling of basic features to be manual rather than automatic (ie: --disable-libusb or --disable-hidraw). I think that makes the most sense but I'm open to being convinced otherwise.
FYI: There is now a maintained fork of this project at https://github.com/libusb/hidapi