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

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

Issue 641703002: Rewrite the Android implementation of BatteryMonitor directly in Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@battery-status-api-to-mojo
Patch Set: Address Torne's comment. Created 6 years 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 | « content/shell/browser/shell_mojo_test_utils_android.cc ('k') | device/battery/android/BUILD.gn » ('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 component("battery") { 8 component("battery") {
9 output_name = "device_battery" 9 output_name = "device_battery"
10 10
11 sources = [ 11 sources = [
12 "battery_export.h", 12 "battery_export.h",
13 "battery_monitor_impl.cc", 13 "battery_monitor_impl.cc",
14 "battery_monitor_impl.h", 14 "battery_monitor_impl.h",
15 "battery_status_manager_android.cc",
16 "battery_status_manager_android.h",
17 "battery_status_manager_chromeos.cc", 15 "battery_status_manager_chromeos.cc",
18 "battery_status_manager_default.cc", 16 "battery_status_manager_default.cc",
19 "battery_status_manager_linux.cc", 17 "battery_status_manager_linux.cc",
20 "battery_status_manager_linux.h", 18 "battery_status_manager_linux.h",
21 "battery_status_manager_mac.cc", 19 "battery_status_manager_mac.cc",
22 "battery_status_manager_win.cc", 20 "battery_status_manager_win.cc",
23 "battery_status_manager_win.h", 21 "battery_status_manager_win.h",
24 "battery_status_service.cc", 22 "battery_status_service.cc",
25 "battery_status_service.h", 23 "battery_status_service.h",
26 ] 24 ]
27 25
28 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ] 26 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ]
29 27
30 deps = [ 28 deps = [
31 ":mojo_bindings", 29 ":mojo_bindings",
32 "//base", 30 "//base",
33 "//base/third_party/dynamic_annotations", 31 "//base/third_party/dynamic_annotations",
34 "//mojo/environment:chromium", 32 "//mojo/environment:chromium",
35 "//mojo/public/cpp/bindings", 33 "//mojo/public/cpp/bindings",
36 "//mojo/edk/system", 34 "//mojo/edk/system",
37 ] 35 ]
38 36
39 if (is_android) {
40 deps += [ "//device/battery/android:battery_jni_headers" ]
41 sources += [
42 "android/battery_jni_registrar.h",
43 "android/battery_jni_registrar.cc",
44 ]
45 sources -= [ "battery_status_manager_default.cc" ]
46 }
47
48 if (is_chromeos) { 37 if (is_chromeos) {
49 configs += [ "//build/config/linux:dbus" ] 38 configs += [ "//build/config/linux:dbus" ]
50 deps += [ "//chromeos:power_manager_proto" ] 39 deps += [ "//chromeos:power_manager_proto" ]
51 sources -= [ 40 sources -= [
52 "battery_status_manager_default.cc", 41 "battery_status_manager_default.cc",
53 "battery_status_manager_linux.cc", 42 "battery_status_manager_linux.cc",
54 ] 43 ]
55 } 44 }
56 45
57 if (is_desktop_linux) { 46 if (is_desktop_linux) {
(...skipping 14 matching lines...) Expand all
72 sources -= [ "battery_status_manager_default.cc" ] 61 sources -= [ "battery_status_manager_default.cc" ]
73 } 62 }
74 } 63 }
75 64
76 mojom("mojo_bindings") { 65 mojom("mojo_bindings") {
77 sources = [ 66 sources = [
78 "battery_monitor.mojom", 67 "battery_monitor.mojom",
79 "battery_status.mojom", 68 "battery_status.mojom",
80 ] 69 ]
81 } 70 }
OLDNEW
« no previous file with comments | « content/shell/browser/shell_mojo_test_utils_android.cc ('k') | device/battery/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698