Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: third_party/libusb/BUILD.gn

Issue 674703002: Linux: Dynamically load libudev. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoped_udev
Patch Set: rebase to head, which includes third_party/libudev already Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb.gyp ('k') | third_party/libusb/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
]
« no previous file with comments | « device/usb/usb.gyp ('k') | third_party/libusb/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698