summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2016-02-10 06:23:48 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-10 14:25:07 +0000
commitd9a25193e2021ec2cbfd18d5dd348c7380c43ace (patch)
tree705b6c7362dcf42b9e55919ed024a7e338a8520f /device
parent4b69cb07ac783f0fc1b55608b068053871a2bde1 (diff)
downloadchromium_src-d9a25193e2021ec2cbfd18d5dd348c7380c43ace.zip
chromium_src-d9a25193e2021ec2cbfd18d5dd348c7380c43ace.tar.gz
chromium_src-d9a25193e2021ec2cbfd18d5dd348c7380c43ace.tar.bz2
gn: make device/battery build on embedded linux
The logic for when to include the linux dbus implementation falls into three cases: chromeos, non-chromeos linux with dbus, and non-chromeos linux without dbus. By using just the is_chromeos, is_linux and use_dbus variables, this code will also build successfully on embedded linux targets. Review URL: https://codereview.chromium.org/1674233002 Cr-Commit-Position: refs/heads/master@{#374654}
Diffstat (limited to 'device')
-rw-r--r--device/battery/BUILD.gn2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/battery/BUILD.gn b/device/battery/BUILD.gn
index 158dce3..5bf49ce 100644
--- a/device/battery/BUILD.gn
+++ b/device/battery/BUILD.gn
@@ -48,7 +48,7 @@ if (!is_android) {
]
}
- if (is_desktop_linux) {
+ if (is_linux && !is_chromeos) {
if (use_dbus) {
configs += [ "//build/config/linux:dbus" ]
deps += [ "//dbus" ]