Index: components/sync/android/BUILD.gn |
diff --git a/components/sync/android/BUILD.gn b/components/sync/android/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..796d870158c0e8d1f0284c5e47ed91aebdb5bc69 |
--- /dev/null |
+++ b/components/sync/android/BUILD.gn |
@@ -0,0 +1,71 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//build/config/android/config.gni") |
+import("//build/config/android/rules.gni") |
+ |
+android_library("sync_java") { |
+ deps = [ |
+ "//base:base_java", |
+ "//net/android:net_java", |
+ "//third_party/android_tools:android_gcm_java", |
+ "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
+ "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
+ "//third_party/jsr-305:jsr_305_javalib", |
+ google_play_services_library, |
+ ] |
+ srcjar_deps = [ ":java_enums" ] |
+ java_files = [ |
+ "java/src/org/chromium/components/sync/AndroidSyncSettings.java", |
+ "java/src/org/chromium/components/sync/ModelTypeHelper.java", |
+ "java/src/org/chromium/components/sync/PassphraseType.java", |
+ "java/src/org/chromium/components/sync/SyncConstants.java", |
+ "java/src/org/chromium/components/sync/SyncContentResolverDelegate.java", |
+ "java/src/org/chromium/components/sync/SystemSyncContentResolverDelegate.java", |
+ "java/src/org/chromium/components/sync/notifier/InvalidationClientNameGenerator.java", |
+ "java/src/org/chromium/components/sync/notifier/InvalidationClientNameProvider.java", |
+ "java/src/org/chromium/components/sync/notifier/InvalidationIntentProtocol.java", |
+ "java/src/org/chromium/components/sync/notifier/InvalidationPreferences.java", |
+ "java/src/org/chromium/components/sync/notifier/RandomizedInvalidationClientNameGenerator.java", |
+ "java/src/org/chromium/components/sync/signin/AccountManagerDelegate.java", |
+ "java/src/org/chromium/components/sync/signin/AccountManagerHelper.java", |
+ "java/src/org/chromium/components/sync/signin/AuthException.java", |
+ "java/src/org/chromium/components/sync/signin/ChromeSigninController.java", |
+ "java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.java", |
+ ] |
+} |
+ |
+android_library("sync_javatests") { |
+ testonly = true |
+ deps = [ |
+ ":sync_java", |
+ "//base:base_java", |
+ "//base:base_java_test_support", |
+ "//components/sync:sync_java_test_support", |
+ "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
+ "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
+ "//third_party/jsr-305:jsr_305_javalib", |
+ ] |
+ java_files = [ |
+ "javatests/src/org/chromium/components/sync/AndroidSyncSettingsTest.java", |
+ "javatests/src/org/chromium/components/sync/notifier/InvalidationClientNameProviderTest.java", |
+ "javatests/src/org/chromium/components/sync/notifier/InvalidationPreferencesTest.java", |
+ "javatests/src/org/chromium/components/sync/notifier/signin/AccountManagerHelperTest.java", |
+ ] |
+} |
+ |
+# GYP: //components/sync/sync_android.gypi:model_type_java |
+java_cpp_enum("java_enums") { |
+ sources = [ |
+ "//components/sync/base/model_type.h", |
+ "//components/sync/base/stop_source.h", |
+ ] |
+} |
+ |
+generate_jni("jni_headers") { |
+ sources = [ |
+ "java/src/org/chromium/components/sync/ModelTypeHelper.java", |
+ ] |
+ jni_package = "syncer" |
+} |