| 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 18 matching lines...) Expand all Loading... |
| 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 (is_chromeos) { |
| 38 configs += [ "//build/config/linux:dbus" ] | 38 configs += [ "//build/config/linux:dbus" ] |
| 39 deps += [ "//chromeos:power_manager_proto" ] | 39 deps += [ |
| 40 "//chromeos:chromeos", |
| 41 "//chromeos:power_manager_proto", |
| 42 ] |
| 40 sources -= [ | 43 sources -= [ |
| 41 "battery_status_manager_default.cc", | 44 "battery_status_manager_default.cc", |
| 42 "battery_status_manager_linux.cc", | 45 "battery_status_manager_linux.cc", |
| 43 ] | 46 ] |
| 44 } | 47 } |
| 45 | 48 |
| 46 if (is_desktop_linux) { | 49 if (is_desktop_linux) { |
| 47 if (use_dbus) { | 50 if (use_dbus) { |
| 48 configs += [ "//build/config/linux:dbus" ] | 51 configs += [ "//build/config/linux:dbus" ] |
| 49 deps += [ "//dbus" ] | 52 deps += [ "//dbus" ] |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 sources -= [ "battery_status_manager_default.cc" ] | 64 sources -= [ "battery_status_manager_default.cc" ] |
| 62 } | 65 } |
| 63 } | 66 } |
| 64 | 67 |
| 65 mojom("mojo_bindings") { | 68 mojom("mojo_bindings") { |
| 66 sources = [ | 69 sources = [ |
| 67 "battery_monitor.mojom", | 70 "battery_monitor.mojom", |
| 68 "battery_status.mojom", | 71 "battery_status.mojom", |
| 69 ] | 72 ] |
| 70 } | 73 } |
| OLD | NEW |