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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 deps = [ | 28 deps = [ |
29 ":mojo_bindings", | 29 ":mojo_bindings", |
30 "//base", | 30 "//base", |
31 "//base/third_party/dynamic_annotations", | 31 "//base/third_party/dynamic_annotations", |
32 "//mojo/environment:chromium", | 32 "//mojo/environment:chromium", |
33 "//third_party/mojo/src/mojo/public/cpp/bindings", | 33 "//third_party/mojo/src/mojo/public/cpp/bindings", |
34 "//third_party/mojo/src/mojo/edk/system", | 34 "//third_party/mojo/src/mojo/edk/system", |
35 ] | 35 ] |
36 | 36 |
37 if (is_chromeos) { | 37 if (use_cros_fe) { |
38 configs += [ "//build/config/linux:dbus" ] | 38 configs += [ "//build/config/linux:dbus" ] |
39 deps += [ | 39 deps += [ |
40 "//chromeos:chromeos", | 40 "//chromeos:chromeos", |
41 "//chromeos:power_manager_proto", | 41 "//chromeos:power_manager_proto", |
42 ] | 42 ] |
43 sources -= [ | 43 sources -= [ |
44 "battery_status_manager_default.cc", | 44 "battery_status_manager_default.cc", |
45 "battery_status_manager_linux.cc", | 45 "battery_status_manager_linux.cc", |
46 ] | 46 ] |
47 } | 47 } |
(...skipping 16 matching lines...) Expand all Loading... |
64 sources -= [ "battery_status_manager_default.cc" ] | 64 sources -= [ "battery_status_manager_default.cc" ] |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 mojom("mojo_bindings") { | 68 mojom("mojo_bindings") { |
69 sources = [ | 69 sources = [ |
70 "battery_monitor.mojom", | 70 "battery_monitor.mojom", |
71 "battery_status.mojom", | 71 "battery_status.mojom", |
72 ] | 72 ] |
73 } | 73 } |
OLD | NEW |