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

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

Issue 2772183002: [DeviceService] Cleanup of android library dependencies. (Closed)
Patch Set: Add comments for changes 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 unified diff | Download patch
« no previous file with comments | « no previous file | services/device/screen_orientation/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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//services/service_manager/public/cpp/service.gni") 6 import("//services/service_manager/public/cpp/service.gni")
7 import("//services/service_manager/public/service_manifest.gni") 7 import("//services/service_manager/public/service_manifest.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 source_set("lib") { 13 source_set("lib") {
14 # This should be visible only to embedders of the Device Service, and the
15 # dependence should only be for the purpose of embedding the Device Service.
16 visibility = [ "//content/browser" ]
14 sources = [ 17 sources = [
15 "device_service.cc", 18 "device_service.cc",
16 "device_service.h", 19 "device_service.h",
17 ] 20 ]
18 21
19 deps = [ 22 deps = [
20 "//base", 23 "//base",
21 "//device/battery:mojo_bindings", 24 "//device/battery:mojo_bindings",
22 "//device/sensors", 25 "//device/sensors",
23 "//device/vibration:mojo_bindings", 26 "//device/vibration:mojo_bindings",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 81
79 if (is_android) { 82 if (is_android) {
80 generate_jni("device_service_jni_headers") { 83 generate_jni("device_service_jni_headers") {
81 sources = [ 84 sources = [
82 "android/java/src/org/chromium/services/device/InterfaceRegistrar.java", 85 "android/java/src/org/chromium/services/device/InterfaceRegistrar.java",
83 ] 86 ]
84 jni_package = "device_service" 87 jni_package = "device_service"
85 } 88 }
86 89
87 android_library("java") { 90 android_library("java") {
88 java_files = [ 91 # This should be visible only to embedders of the Device Service, and the
89 "android/java/src/org/chromium/services/device/InterfaceRegistrar.java", 92 # dependence should only be for the purpose of embedding the Device Service.
90 "screen_orientation/android/java/src/org/chromium/device/screen_orientatio n/ScreenOrientationListener.java", 93 # //content/public/android:* here actually wants to identify the
91 "time_zone_monitor/android/java/src/org/chromium/device/time_zone_monitor/ TimeZoneMonitor.java", 94 # //content/public/android:content_java target and all of its generated
92 ] 95 # targets which also need to see this target as well.
96 visibility = [ "//content/public/android:*" ]
97 java_files = [ "android/java/src/org/chromium/services/device/InterfaceRegis trar.java" ]
93 deps = [ 98 deps = [
94 "//base:base_java", 99 "//base:base_java",
95 "//device/battery:mojo_bindings_java", 100 "//device/battery:mojo_bindings_java",
96 "//device/battery/android:battery_monitor_java", 101 "//device/battery/android:battery_monitor_java",
97 "//device/vibration:mojo_bindings_java", 102 "//device/vibration:mojo_bindings_java",
98 "//device/vibration/android:vibration_manager_java", 103 "//device/vibration/android:vibration_manager_java",
99 "//mojo/android:system_java", 104 "//mojo/android:system_java",
100 "//mojo/public/java:bindings_java", 105 "//mojo/public/java:bindings_java",
101 "//mojo/public/java:system_java", 106 "//mojo/public/java:system_java",
107 "//services/device/screen_orientation:java",
108 "//services/device/time_zone_monitor:java",
102 "//services/service_manager/public/interfaces:interfaces_java", 109 "//services/service_manager/public/interfaces:interfaces_java",
103 "//services/service_manager/public/java:service_manager_java", 110 "//services/service_manager/public/java:service_manager_java",
104 "//ui/android:ui_java",
105 ] 111 ]
106 } 112 }
107 } 113 }
OLDNEW
« no previous file with comments | « no previous file | services/device/screen_orientation/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698