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

Unified Diff: services/device/BUILD.gn

Issue 2690963002: [DeviceService] Move //device/time_zone_monitor to //services/device (Closed)
Patch Set: Enable device service to register JNI Created 3 years, 10 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/time_zone_monitor/time_zone_monitor_win.cc ('k') | services/device/android/register_jni.h » ('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 44681f244b74cc5bed41d9602eea817b838944f0..1fbbf47052ae29ebeefd4fc96189e23accf0274c 100644
--- a/services/device/BUILD.gn
+++ b/services/device/BUILD.gn
@@ -5,6 +5,10 @@
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
+
source_set("lib") {
sources = [
"device_service.cc",
@@ -13,17 +17,17 @@ source_set("lib") {
deps = [
"//base",
- "//device/time_zone_monitor",
"//services/device/power_monitor",
+ "//services/device/time_zone_monitor",
"//services/service_manager/public/cpp",
]
- public_deps = [
- # TODO(blundell): This dep shouldn't be necessary at all,
- # but content_shell fails to link in the component build if
- # this isn't here as a public_dep.
- "//device/time_zone_monitor/public/interfaces",
- ]
+ if (is_android) {
+ sources += [
+ "//services/device/android/register_jni.cc",
+ "//services/device/android/register_jni.h",
+ ]
+ }
}
source_set("tests") {
@@ -48,3 +52,12 @@ service_manifest("manifest") {
name = "device"
source = "manifest.json"
}
+
+if (is_android) {
+ android_library("java") {
+ java_files = [ "time_zone_monitor/android/java/src/org/chromium/device/time_zone_monitor/TimeZoneMonitor.java" ]
+ deps = [
+ "//base:base_java",
+ ]
+ }
+}
« no previous file with comments | « device/time_zone_monitor/time_zone_monitor_win.cc ('k') | services/device/android/register_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698