Index: third_party/libusb/BUILD.gn |
diff --git a/third_party/libusb/BUILD.gn b/third_party/libusb/BUILD.gn |
index 0d04ef564c39a642bec6de9eab13df1a492284e2..30ae077aabc23de4ed67f00213b3f48b3f6934c1 100644 |
--- a/third_party/libusb/BUILD.gn |
+++ b/third_party/libusb/BUILD.gn |
@@ -24,7 +24,7 @@ static_library("libusb") { |
"src/libusb/libusbi.h", |
"src/libusb/os/darwin_usb.c", |
"src/libusb/os/darwin_usb.h", |
- "src/libusb/os/linux_udev.c", |
+ "src/libusb/os/linux_udev.cc", |
"src/libusb/os/linux_usbfs.c", |
"src/libusb/os/linux_usbfs.h", |
"src/libusb/os/poll_posix.c", |
@@ -46,6 +46,7 @@ static_library("libusb") { |
"src/msvc/inttypes.h", |
"src/msvc/stdint.h", |
] |
+ deps = [] |
include_dirs = [ |
"src/libusb/os", |
] |
@@ -83,10 +84,10 @@ static_library("libusb") { |
"USE_UDEV=1", |
"_GNU_SOURCE=1", |
] |
- configs += [ "//build/config/linux:udev" ] |
+ deps += [ "//build/config/linux:udev" ] |
} else { |
sources -= [ |
- "src/libusb/os/linux_udev.c", |
+ "src/libusb/os/linux_udev.cc", |
"src/libusb/os/linux_usbfs.c", |
"src/libusb/os/linux_usbfs.h", |
] |