[3PP] Added Libusb
This commit is contained in:
committed by
Radosław Gliński
parent
d2b265e251
commit
7667958556
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -103,3 +103,6 @@
|
|||||||
[submodule "third_party/pugixml"]
|
[submodule "third_party/pugixml"]
|
||||||
path = third_party/pugixml
|
path = third_party/pugixml
|
||||||
url = https://github.com/zeux/pugixml.git
|
url = https://github.com/zeux/pugixml.git
|
||||||
|
[submodule "third_party/libusb"]
|
||||||
|
path = third_party/libusb
|
||||||
|
url = https://github.com/libusb/libusb.git
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ workspace("xenia")
|
|||||||
include("third_party/fmt.lua")
|
include("third_party/fmt.lua")
|
||||||
include("third_party/glslang-spirv.lua")
|
include("third_party/glslang-spirv.lua")
|
||||||
include("third_party/imgui.lua")
|
include("third_party/imgui.lua")
|
||||||
|
include("third_party/libusb.lua")
|
||||||
include("third_party/mspack.lua")
|
include("third_party/mspack.lua")
|
||||||
include("third_party/snappy.lua")
|
include("third_party/snappy.lua")
|
||||||
include("third_party/xxhash.lua")
|
include("third_party/xxhash.lua")
|
||||||
|
|||||||
1
third_party/libusb
vendored
Submodule
1
third_party/libusb
vendored
Submodule
Submodule third_party/libusb added at a61afe5f75
46
third_party/libusb.lua
vendored
Normal file
46
third_party/libusb.lua
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
group("third_party")
|
||||||
|
project("libusb")
|
||||||
|
uuid("5f8b5485-fde5-4a42-8a13-8545fcf6d25b")
|
||||||
|
kind("StaticLib")
|
||||||
|
language("C")
|
||||||
|
defines({
|
||||||
|
"_LIB",
|
||||||
|
})
|
||||||
|
includedirs({"libusb/libusb/"})
|
||||||
|
|
||||||
|
files({
|
||||||
|
"libusb/libusb/core.c",
|
||||||
|
"libusb/libusb/descriptor.c",
|
||||||
|
"libusb/libusb/hotplug.c",
|
||||||
|
"libusb/libusb/io.c",
|
||||||
|
"libusb/libusb/strerror.c",
|
||||||
|
"libusb/libusb/sync.c",
|
||||||
|
})
|
||||||
|
|
||||||
|
filter({"platforms:Windows"})
|
||||||
|
includedirs({"libusb/msvc/"})
|
||||||
|
files({
|
||||||
|
"libusb/libusb/os/events_windows.c",
|
||||||
|
"libusb/libusb/os/events_windows.h",
|
||||||
|
"libusb/libusb/os/threads_windows.c",
|
||||||
|
"libusb/libusb/os/threads_windows.h",
|
||||||
|
"libusb/libusb/os/windows_common.c",
|
||||||
|
"libusb/libusb/os/windows_common.h",
|
||||||
|
"libusb/libusb/os/windows_usbdk.c",
|
||||||
|
"libusb/libusb/os/windows_usbdk.h",
|
||||||
|
"libusb/libusb/os/windows_winusb.c",
|
||||||
|
"libusb/libusb/os/windows_winusb.h"
|
||||||
|
})
|
||||||
|
|
||||||
|
filter({"platforms:Linux"})
|
||||||
|
files({
|
||||||
|
"libusb/libusb/config.h",
|
||||||
|
"libusb/libusb/os/events_posix.c",
|
||||||
|
"libusb/libusb/os/events_posix.h",
|
||||||
|
"libusb/libusb/os/threads_posix.c",
|
||||||
|
"libusb/libusb/os/threads_posix.h",
|
||||||
|
"libusb/libusb/os/linux_netlink.c",
|
||||||
|
"libusb/libusb/os/linux_udev.c",
|
||||||
|
"libusb/libusb/os/linux_usbfs.c",
|
||||||
|
"libusb/libusb/os/linux_usbfs.h"
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user