Index: device/hid/BUILD.gn |
diff --git a/device/hid/BUILD.gn b/device/hid/BUILD.gn |
index 4a6a1b29f7189644643e36b3bd804301e3f0d8a9..f57fe86c204a07f9af55787e8ad6a57ade6e4f0d 100644 |
--- a/device/hid/BUILD.gn |
+++ b/device/hid/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") |
+ |
source_set("hid") { |
sources = [ |
"device_monitor_linux.cc", |
@@ -49,7 +51,7 @@ source_set("hid") { |
"//net", |
] |
- if (is_linux) { |
+ if (use_udev) { |
deps += [ "//device/udev_linux" ] |
} |
if (is_chromeos) { |