LibUSB: Update to upstream master (and turn off YAML_CPP_INSTALL CMake property)

May resolve some outstanding issues around libusb/hidapi (i.e. DS4 not being released on rpcs3 shutdown etc..) or may not.
Fixes three outstanding compile warnings on non-Windows OS... introduces a few more warnings in WindowsOS (issue raised upstream with libusb around WINAPI_CHECK macro)
Re-ordered the 3rd party CMake so libusb is in file order above hidapi (just to have document flow match logical flow)

Also took this opportunity to remove the YAML INSTALL action (by setting YAML_CPP_INSTALL to OFF)
Provided capability to use system library for libusb by providing USE_SYS_LIBUSB option to CMAKE

Tested under:
- [X] Windows 10 2004 OS with DS4 controller
- [X] Windows 10 2004 OS with GCon3 controller
- [X] Linux (Mint 20) with DS4 controller
This commit is contained in:
Bevan Weiss 2020-10-13 23:13:08 +11:00 committed by Ivan
parent 443c2b920d
commit 1e83d2a4e9
4 changed files with 48 additions and 26 deletions

2
3rdparty/libusb vendored

@ -1 +1 @@
Subproject commit e782eeb2514266f6738e242cdcb18e3ae1ed06fa
Subproject commit eee6998395184d87bd8e9c07ce2637caed1207f4