| 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("//mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 # On android, BatteryManager mojo service is implemented directly in Java. | 8 # On android, BatteryManager mojo service is implemented directly in Java. |
| 9 if (!is_android) { | 9 if (!is_android) { |
| 10 component("battery") { | 10 component("battery") { |
| 11 output_name = "device_battery" | 11 output_name = "device_battery" |
| 12 | 12 |
| 13 sources = [ | 13 sources = [ |
| 14 "battery_export.h", | 14 "battery_export.h", |
| 15 "battery_monitor_impl.cc", | 15 "battery_monitor_impl.cc", |
| 16 "battery_monitor_impl.h", | 16 "battery_monitor_impl.h", |
| 17 "battery_status_manager_chromeos.cc", | 17 "battery_status_manager_chromeos.cc", |
| 18 "battery_status_manager_default.cc", | 18 "battery_status_manager_default.cc", |
| 19 "battery_status_manager_linux.cc", | 19 "battery_status_manager_linux.cc", |
| 20 "battery_status_manager_linux.h", | 20 "battery_status_manager_linux.h", |
| 21 "battery_status_manager_mac.cc", | 21 "battery_status_manager_mac.cc", |
| 22 "battery_status_manager_win.cc", | 22 "battery_status_manager_win.cc", |
| 23 "battery_status_manager_win.h", | 23 "battery_status_manager_win.h", |
| 24 "battery_status_service.cc", | 24 "battery_status_service.cc", |
| 25 "battery_status_service.h", | 25 "battery_status_service.h", |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ] | 28 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ] |
| 29 | 29 |
| 30 deps = [ | 30 deps = [ |
| 31 ":mojo_bindings", | 31 ":mojo_bindings", |
| 32 "//base", | 32 "//base", |
| 33 "//base/third_party/dynamic_annotations", | 33 "//base/third_party/dynamic_annotations", |
| 34 "//mojo/environment:chromium", | 34 "//mojo/environment:chromium", |
| 35 "//third_party/mojo/src/mojo/public/cpp/bindings", | 35 "//mojo/public/cpp/bindings", |
| 36 "//third_party/mojo/src/mojo/edk/system", | 36 "//third_party/mojo/src/mojo/edk/system", |
| 37 ] | 37 ] |
| 38 | 38 |
| 39 if (is_chromeos) { | 39 if (is_chromeos) { |
| 40 configs += [ "//build/config/linux:dbus" ] | 40 configs += [ "//build/config/linux:dbus" ] |
| 41 deps += [ | 41 deps += [ |
| 42 "//chromeos:chromeos", | 42 "//chromeos:chromeos", |
| 43 "//chromeos:power_manager_proto", | 43 "//chromeos:power_manager_proto", |
| 44 ] | 44 ] |
| 45 sources -= [ | 45 sources -= [ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 } | 69 } |
| 70 | 70 |
| 71 mojom("mojo_bindings") { | 71 mojom("mojo_bindings") { |
| 72 sources = [ | 72 sources = [ |
| 73 "battery_monitor.mojom", | 73 "battery_monitor.mojom", |
| 74 "battery_status.mojom", | 74 "battery_status.mojom", |
| 75 ] | 75 ] |
| 76 } | 76 } |
| OLD | NEW |