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

Unified Diff: services/device/BUILD.gn

Issue 2643713002: Port BatteryMonitor into Device Service (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/battery/battery_monitor.mojom ('k') | services/device/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/BUILD.gn
diff --git a/services/device/BUILD.gn b/services/device/BUILD.gn
index 2c68433292b4f6925d8e7e9e23182f0f7dfca7b5..567d828ef3fc0bb8159622255b5101e018f64757 100644
--- a/services/device/BUILD.gn
+++ b/services/device/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
@@ -17,6 +18,7 @@ source_set("lib") {
deps = [
"//base",
+ "//device/battery:mojo_bindings",
"//device/sensors",
"//services/device/fingerprint",
"//services/device/power_monitor",
@@ -30,6 +32,9 @@ source_set("lib") {
"//services/device/android/register_jni.cc",
"//services/device/android/register_jni.h",
]
+ deps += [ ":device_service_jni_headers" ]
+ } else {
+ deps += [ "//device/battery" ]
}
}
@@ -54,6 +59,12 @@ source_set("tests") {
sources += [ "fingerprint/fingerprint_chromeos_unittest.cc" ]
deps += [ "//services/device/fingerprint" ]
}
+
+ if (is_android) {
+ deps += [ ":device_service_jni_headers" ]
+ } else {
+ deps += [ "//device/battery" ]
+ }
}
service_manifest("manifest") {
@@ -62,13 +73,28 @@ service_manifest("manifest") {
}
if (is_android) {
+ generate_jni("device_service_jni_headers") {
+ sources = [
+ "android/java/src/org/chromium/services/device/InterfaceRegistrar.java",
+ ]
+ jni_package = "device_service"
+ }
+
android_library("java") {
java_files = [
+ "android/java/src/org/chromium/services/device/InterfaceRegistrar.java",
"screen_orientation/android/java/src/org/chromium/device/screen_orientation/ScreenOrientationListener.java",
"time_zone_monitor/android/java/src/org/chromium/device/time_zone_monitor/TimeZoneMonitor.java",
]
deps = [
"//base:base_java",
+ "//device/battery:mojo_bindings_java",
+ "//device/battery/android:battery_monitor_java",
+ "//mojo/android:system_java",
+ "//mojo/public/java:bindings_java",
+ "//mojo/public/java:system_java",
+ "//services/service_manager/public/interfaces:interfaces_java",
+ "//services/service_manager/public/java:service_manager_java",
"//ui/android:ui_java",
]
}
« no previous file with comments | « device/battery/battery_monitor.mojom ('k') | services/device/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698