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