Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: services/device/battery/BUILD.gn

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/battery/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # On android, BatteryManager mojo service is implemented directly in Java. 8 # On android, BatteryManager mojo interface is implemented directly in Java.
9 if (!is_android) { 9 if (!is_android) {
10 component("battery") { 10 source_set("battery") {
11 output_name = "device_battery" 11 visibility = [
12 "//services/device:lib",
13 "//services/device:tests",
14 ]
12 15
13 sources = [ 16 sources = [
14 "battery_export.h",
15 "battery_monitor_impl.cc", 17 "battery_monitor_impl.cc",
16 "battery_monitor_impl.h", 18 "battery_monitor_impl.h",
17 "battery_status_manager.h", 19 "battery_status_manager.h",
18 "battery_status_manager_chromeos.cc", 20 "battery_status_manager_chromeos.cc",
19 "battery_status_manager_default.cc", 21 "battery_status_manager_default.cc",
20 "battery_status_manager_linux-inl.h", 22 "battery_status_manager_linux-inl.h",
21 "battery_status_manager_linux.cc", 23 "battery_status_manager_linux.cc",
22 "battery_status_manager_linux.h", 24 "battery_status_manager_linux.h",
23 "battery_status_manager_mac.cc", 25 "battery_status_manager_mac.cc",
24 "battery_status_manager_win.cc", 26 "battery_status_manager_win.cc",
25 "battery_status_manager_win.h", 27 "battery_status_manager_win.h",
26 "battery_status_service.cc", 28 "battery_status_service.cc",
27 "battery_status_service.h", 29 "battery_status_service.h",
28 ] 30 ]
29 31
30 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ] 32 public_deps = [
33 "//services/device/public/interfaces",
34 ]
31 35
32 deps = [ 36 deps = [
33 ":mojo_bindings",
34 "//base", 37 "//base",
35 "//base/third_party/dynamic_annotations", 38 "//base/third_party/dynamic_annotations",
36 "//mojo/public/cpp/bindings", 39 "//mojo/public/cpp/bindings",
37 ] 40 ]
38 41
39 if (is_chromeos) { 42 if (is_chromeos) {
40 configs += [ "//build/config/linux/dbus" ] 43 configs += [ "//build/config/linux/dbus" ]
41 deps += [ 44 deps += [
42 "//chromeos:chromeos", 45 "//chromeos:chromeos",
43 "//chromeos:power_manager_proto", 46 "//chromeos:power_manager_proto",
(...skipping 20 matching lines...) Expand all
64 "CoreFoundation.framework", 67 "CoreFoundation.framework",
65 "IOKit.framework", 68 "IOKit.framework",
66 ] 69 ]
67 } 70 }
68 71
69 if (is_win) { 72 if (is_win) {
70 sources -= [ "battery_status_manager_default.cc" ] 73 sources -= [ "battery_status_manager_default.cc" ]
71 } 74 }
72 } 75 }
73 } 76 }
74
75 mojom("mojo_bindings") {
76 sources = [
77 "battery_monitor.mojom",
78 "battery_status.mojom",
79 ]
80 }
OLDNEW
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/battery/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698