usbd: Implement libusb passthrough (#2271)

* usbd: Implement libusb passthrough

* clang-format

* only do kernel activities on non-windows

* use variable to represent "fake" windows kernel driver

---------

Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
This commit is contained in:
Joshua de Reeper 2025-03-31 17:55:21 +02:00 committed by GitHub
parent b0a12c02e1
commit 7533206d89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 475 additions and 247 deletions

View file

@ -201,6 +201,11 @@ if (NOT TARGET pugixml::pugixml)
add_subdirectory(pugixml)
endif()
# libusb
if (NOT TARGET usb-1.0)
add_subdirectory(libusb)
endif()
# Discord RPC
if (ENABLE_DISCORD_RPC)
add_subdirectory(discord-rpc)

1
externals/libusb vendored Submodule

@ -0,0 +1 @@
Subproject commit 8f0b4a38fc3eefa2b26a99dff89e1c12bf37afd4