OLD | NEW |
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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 static_library("impl") { | 9 static_library("impl") { |
10 sources = [ | 10 sources = [ |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 "p2p_invalidation_service.h", | 200 "p2p_invalidation_service.h", |
201 ] | 201 ] |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 if (is_android) { | 205 if (is_android) { |
206 android_library("java") { | 206 android_library("java") { |
207 deps = [ | 207 deps = [ |
208 ":proto_java", | 208 ":proto_java", |
209 "//base:base_java", | 209 "//base:base_java", |
| 210 "//components/signin/core/browser/android:java", |
210 "//components/sync/android:sync_java", | 211 "//components/sync/android:sync_java", |
211 "//third_party/android_protobuf:protobuf_nano_javalib", | 212 "//third_party/android_protobuf:protobuf_nano_javalib", |
212 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 213 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
213 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", | 214 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
214 "//third_party/jsr-305:jsr_305_javalib", | 215 "//third_party/jsr-305:jsr_305_javalib", |
215 ] | 216 ] |
216 java_files = [ | 217 java_files = [ |
217 "android/java/src/org/chromium/components/invalidation/InvalidationClientS
ervice.java", | 218 "android/java/src/org/chromium/components/invalidation/InvalidationClientS
ervice.java", |
218 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", | 219 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", |
219 "android/java/src/org/chromium/components/invalidation/PendingInvalidation
.java", | 220 "android/java/src/org/chromium/components/invalidation/PendingInvalidation
.java", |
220 ] | 221 ] |
221 } | 222 } |
222 proto_java_library("proto_java") { | 223 proto_java_library("proto_java") { |
223 proto_path = "android/proto" | 224 proto_path = "android/proto" |
224 sources = [ | 225 sources = [ |
225 "$proto_path/serialized_invalidation.proto", | 226 "$proto_path/serialized_invalidation.proto", |
226 ] | 227 ] |
227 } | 228 } |
228 android_library("javatests") { | 229 android_library("javatests") { |
229 testonly = true | 230 testonly = true |
230 deps = [ | 231 deps = [ |
231 ":java", | 232 ":java", |
232 "//base:base_java", | 233 "//base:base_java", |
233 "//base:base_java_test_support", | 234 "//base:base_java_test_support", |
| 235 "//components/signin/core/browser/android:java", |
234 "//components/sync/android:sync_java", | 236 "//components/sync/android:sync_java", |
235 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 237 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
236 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", | 238 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
237 ] | 239 ] |
238 java_files = [ | 240 java_files = [ |
239 "android/javatests/src/org/chromium/components/invalidation/InvalidationCl
ientServiceTest.java", | 241 "android/javatests/src/org/chromium/components/invalidation/InvalidationCl
ientServiceTest.java", |
240 "android/javatests/src/org/chromium/components/invalidation/TestableInvali
dationClientService.java", | 242 "android/javatests/src/org/chromium/components/invalidation/TestableInvali
dationClientService.java", |
241 ] | 243 ] |
242 } | 244 } |
243 junit_binary("components_invalidation_impl_junit_tests") { | 245 junit_binary("components_invalidation_impl_junit_tests") { |
244 java_files = [ "android/junit/src/org/chromium/components/invalidation/Pendi
ngInvalidationTest.java" ] | 246 java_files = [ "android/junit/src/org/chromium/components/invalidation/Pendi
ngInvalidationTest.java" ] |
245 deps = [ | 247 deps = [ |
246 ":java", | 248 ":java", |
247 "//base:base_java", | 249 "//base:base_java", |
248 "//base:base_java_test_support", | 250 "//base:base_java_test_support", |
249 ] | 251 ] |
250 } | 252 } |
251 generate_jni("jni_headers") { | 253 generate_jni("jni_headers") { |
252 sources = [ | 254 sources = [ |
253 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", | 255 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", |
254 ] | 256 ] |
255 jni_package = "components/invalidation" | 257 jni_package = "components/invalidation" |
256 } | 258 } |
257 } | 259 } |
OLD | NEW |