OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 component("battery") { | 8 component("battery") { |
9 output_name = "device_battery" | 9 output_name = "device_battery" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 ] | 57 ] |
58 deps += [ | 58 deps += [ |
59 "//chromeos:power_manager_proto", | 59 "//chromeos:power_manager_proto", |
60 ] | 60 ] |
61 sources -= [ | 61 sources -= [ |
62 "battery_status_manager_default.cc", | 62 "battery_status_manager_default.cc", |
63 "battery_status_manager_linux.cc", | 63 "battery_status_manager_linux.cc", |
64 ] | 64 ] |
65 } | 65 } |
66 | 66 |
67 if (is_linux) { | 67 if (is_desktop_linux) { |
timvolodine
2014/10/29 18:49:49
what happens if it's a linux laptop? it should wor
| |
68 if (use_dbus) { | 68 if (use_dbus) { |
69 configs += [ | 69 configs += [ |
70 "//build/config/linux:dbus", | 70 "//build/config/linux:dbus", |
71 ] | 71 ] |
72 deps += [ | 72 deps += [ |
73 "//dbus" | 73 "//dbus" |
74 ] | 74 ] |
75 sources -= [ | 75 sources -= [ |
76 "battery_status_manager_default.cc", | 76 "battery_status_manager_default.cc", |
77 ] | 77 ] |
(...skipping 16 matching lines...) Expand all Loading... | |
94 ] | 94 ] |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 mojom("mojo_bindings") { | 98 mojom("mojo_bindings") { |
99 sources = [ | 99 sources = [ |
100 "battery_monitor.mojom", | 100 "battery_monitor.mojom", |
101 "battery_status.mojom", | 101 "battery_status.mojom", |
102 ] | 102 ] |
103 } | 103 } |
OLD | NEW |