Index: device/device_tests.gyp |
diff --git a/device/device_tests.gyp b/device/device_tests.gyp |
index a3fc8c62634fb64d622ce6c69a2b3fb9454c9e46..8116fab0dd8f92bc6e70d5873a325b05484d3819 100644 |
--- a/device/device_tests.gyp |
+++ b/device/device_tests.gyp |
@@ -96,7 +96,7 @@ |
'battery/battery_status_manager_linux_unittest.cc', |
], |
}], |
- ['chromeos==1 or OS=="linux"', { |
+ ['(chromeos==1 or OS=="linux") and use_dbus==1', { |
'dependencies': [ |
'../build/linux/system.gyp:dbus', |
'../dbus/dbus.gyp:dbus', |