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

Unified Diff: device/usb/BUILD.gn

Issue 1295353002: use_udev is more accurate than is_linux for udev gn deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: import features.gni Created 5 years, 4 months 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/serial/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/BUILD.gn
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn
index edb8c93cbb1cc85598cc83464fef07ae101a9073..9f4b19f67d6c9371e0918e4b1fee7a20c876c64b 100644
--- a/device/usb/BUILD.gn
+++ b/device/usb/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
+
assert(!is_android && !is_ios)
source_ids = "//third_party/usb_ids/usb.ids"
@@ -45,7 +47,7 @@ source_set("usb") {
"//third_party/libusb",
]
- if (is_linux) {
+ if (use_udev) {
deps += [ "//device/udev_linux" ]
}
if (is_chromeos) {
« no previous file with comments | « device/serial/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698