OLD | NEW |
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 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") # For generate_jni(). | 8 import("//build/config/android/rules.gni") # For generate_jni(). |
9 } | 9 } |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 if (is_android) { | 56 if (is_android) { |
57 generate_jni("time_zone_monitor_jni_headers") { | 57 generate_jni("time_zone_monitor_jni_headers") { |
58 visibility = [ ":time_zone_monitor" ] | 58 visibility = [ ":time_zone_monitor" ] |
59 sources = [ | 59 sources = [ |
60 "android/java/src/org/chromium/device/time_zone_monitor/TimeZoneMonitor.ja
va", | 60 "android/java/src/org/chromium/device/time_zone_monitor/TimeZoneMonitor.ja
va", |
61 ] | 61 ] |
62 jni_package = "time_zone_monitor" | 62 jni_package = "time_zone_monitor" |
63 } | 63 } |
| 64 |
| 65 android_library("java") { |
| 66 # Conceptually, this should be visible only to //services/device:java. |
| 67 # However, various generated targets also need to see this target as a |
| 68 # result of //services/device:java depending on it. |
| 69 visibility = [ "//services/device:*" ] |
| 70 java_files = [ "android/java/src/org/chromium/device/time_zone_monitor/TimeZ
oneMonitor.java" ] |
| 71 deps = [ |
| 72 "//base:base_java", |
| 73 ] |
| 74 } |
64 } | 75 } |
OLD | NEW |