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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 android_library("sync_java") { | 8 android_library("sync_java") { |
9 deps = [ | 9 deps = [ |
10 "//base:base_java", | 10 "//base:base_java", |
| 11 "//components/signin/core/browser/android:java", |
11 "//net/android:net_java", | 12 "//net/android:net_java", |
12 "//third_party/android_tools:android_gcm_java", | 13 "//third_party/android_tools:android_gcm_java", |
13 "//third_party/android_tools:android_support_annotations_java", | 14 "//third_party/android_tools:android_support_annotations_java", |
14 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 15 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
15 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", | 16 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
16 "//third_party/jsr-305:jsr_305_javalib", | 17 "//third_party/jsr-305:jsr_305_javalib", |
17 google_play_services_library, | 18 google_play_services_library, |
18 ] | 19 ] |
19 srcjar_deps = [ ":java_enums" ] | 20 srcjar_deps = [ ":java_enums" ] |
20 java_files = [ | 21 java_files = [ |
21 "java/src/org/chromium/components/sync/AndroidSyncSettings.java", | 22 "java/src/org/chromium/components/sync/AndroidSyncSettings.java", |
22 "java/src/org/chromium/components/sync/ModelTypeHelper.java", | 23 "java/src/org/chromium/components/sync/ModelTypeHelper.java", |
23 "java/src/org/chromium/components/sync/PassphraseType.java", | 24 "java/src/org/chromium/components/sync/PassphraseType.java", |
24 "java/src/org/chromium/components/sync/SyncConstants.java", | 25 "java/src/org/chromium/components/sync/SyncConstants.java", |
25 "java/src/org/chromium/components/sync/SyncContentResolverDelegate.java", | 26 "java/src/org/chromium/components/sync/SyncContentResolverDelegate.java", |
26 "java/src/org/chromium/components/sync/SystemSyncContentResolverDelegate.jav
a", | 27 "java/src/org/chromium/components/sync/SystemSyncContentResolverDelegate.jav
a", |
27 "java/src/org/chromium/components/sync/notifier/InvalidationClientNameGenera
tor.java", | 28 "java/src/org/chromium/components/sync/notifier/InvalidationClientNameGenera
tor.java", |
28 "java/src/org/chromium/components/sync/notifier/InvalidationClientNameProvid
er.java", | 29 "java/src/org/chromium/components/sync/notifier/InvalidationClientNameProvid
er.java", |
29 "java/src/org/chromium/components/sync/notifier/InvalidationIntentProtocol.j
ava", | 30 "java/src/org/chromium/components/sync/notifier/InvalidationIntentProtocol.j
ava", |
30 "java/src/org/chromium/components/sync/notifier/InvalidationPreferences.java
", | 31 "java/src/org/chromium/components/sync/notifier/InvalidationPreferences.java
", |
31 "java/src/org/chromium/components/sync/notifier/RandomizedInvalidationClient
NameGenerator.java", | 32 "java/src/org/chromium/components/sync/notifier/RandomizedInvalidationClient
NameGenerator.java", |
32 "java/src/org/chromium/components/sync/signin/AccountManagerDelegate.java", | |
33 "java/src/org/chromium/components/sync/signin/AccountManagerHelper.java", | |
34 "java/src/org/chromium/components/sync/signin/AuthException.java", | |
35 "java/src/org/chromium/components/sync/signin/ChromeSigninController.java", | |
36 "java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.j
ava", | |
37 ] | 33 ] |
38 } | 34 } |
39 | 35 |
40 android_library("sync_javatests") { | 36 android_library("sync_javatests") { |
41 testonly = true | 37 testonly = true |
42 deps = [ | 38 deps = [ |
43 ":sync_java", | 39 ":sync_java", |
44 "//base:base_java", | 40 "//base:base_java", |
45 "//base:base_java_test_support", | 41 "//base:base_java_test_support", |
| 42 "//components/signin/core/browser/android:java", |
| 43 "//components/signin/core/browser/android:signin_java_test_support", |
46 "//components/sync:sync_java_test_support", | 44 "//components/sync:sync_java_test_support", |
47 "//third_party/cacheinvalidation:cacheinvalidation_javalib", | 45 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
48 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", | 46 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
49 "//third_party/jsr-305:jsr_305_javalib", | 47 "//third_party/jsr-305:jsr_305_javalib", |
50 ] | 48 ] |
51 java_files = [ | 49 java_files = [ |
52 "javatests/src/org/chromium/components/sync/AndroidSyncSettingsTest.java", | 50 "javatests/src/org/chromium/components/sync/AndroidSyncSettingsTest.java", |
53 "javatests/src/org/chromium/components/sync/notifier/InvalidationClientNameP
roviderTest.java", | 51 "javatests/src/org/chromium/components/sync/notifier/InvalidationClientNameP
roviderTest.java", |
54 "javatests/src/org/chromium/components/sync/notifier/InvalidationPreferences
Test.java", | 52 "javatests/src/org/chromium/components/sync/notifier/InvalidationPreferences
Test.java", |
55 "javatests/src/org/chromium/components/sync/notifier/signin/AccountManagerHe
lperTest.java", | |
56 ] | 53 ] |
57 } | 54 } |
58 | 55 |
59 java_cpp_enum("java_enums") { | 56 java_cpp_enum("java_enums") { |
60 sources = [ | 57 sources = [ |
61 "//components/sync/base/model_type.h", | 58 "//components/sync/base/model_type.h", |
62 "//components/sync/base/stop_source.h", | 59 "//components/sync/base/stop_source.h", |
63 "//components/sync/protocol/sync_protocol_error.h", | 60 "//components/sync/protocol/sync_protocol_error.h", |
64 ] | 61 ] |
65 } | 62 } |
66 | 63 |
67 generate_jni("jni_headers") { | 64 generate_jni("jni_headers") { |
68 sources = [ | 65 sources = [ |
69 "java/src/org/chromium/components/sync/ModelTypeHelper.java", | 66 "java/src/org/chromium/components/sync/ModelTypeHelper.java", |
70 ] | 67 ] |
71 jni_package = "syncer" | 68 jni_package = "syncer" |
72 } | 69 } |
OLD | NEW |