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
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 output_name = "device_battery"
13 "battery_monitor_impl.cc",
14 "battery_monitor_impl.h",
15 "battery_status_manager_chromeos.cc",
16 "battery_status_manager_default.cc",
17 "battery_status_manager_linux.cc",
18 "battery_status_manager_linux.h",
19 "battery_status_manager_mac.cc",
20 "battery_status_manager_win.cc",
21 "battery_status_manager_win.h",
22 "battery_status_service.cc",
23 "battery_status_service.h",
26 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ]
31 "//base/third_party/dynamic_annotations",
32 "//mojo/environment:chromium",
33 "//third_party/mojo/src/mojo/public/cpp/bindings",
34 "//third_party/mojo/src/mojo/edk/system",
38 configs += [ "//build/config/linux:dbus" ]
40 "//chromeos:chromeos",
41 "//chromeos:power_manager_proto",
44 "battery_status_manager_default.cc",
45 "battery_status_manager_linux.cc",
49 if (is_desktop_linux) {
51 configs += [ "//build/config/linux:dbus" ]
53 sources -= [ "battery_status_manager_default.cc" ]
55 sources -= [ "battery_status_manager_linux.cc" ]
60 sources -= [ "battery_status_manager_default.cc" ]
64 sources -= [ "battery_status_manager_default.cc" ]
68 mojom("mojo_bindings") {
70 "battery_monitor.mojom",
71 "battery_status.mojom",