summaryrefslogtreecommitdiff
path: root/chromium/components/sync/android/BUILD.gn
blob: 5896fb4228f27e6beda34dd721234d01dd3b15b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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",
    "//components/signin/core/browser/android:java",
    "//net/android:net_java",
    "//third_party/android_tools:android_gcm_java",
    "//third_party/android_tools:android_support_annotations_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",
  ]
}

android_library("sync_javatests") {
  testonly = true
  deps = [
    ":sync_java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//components/signin/core/browser/android:java",
    "//components/signin/core/browser/android:signin_java_test_support",
    "//components/sync:sync_java_test_support",
    "//third_party/android_support_test_runner:runner_java",
    "//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",
  ]
}

java_cpp_enum("java_enums") {
  sources = [
    "//components/sync/base/model_type.h",
    "//components/sync/base/stop_source.h",
    "//components/sync/protocol/sync_protocol_error.h",
  ]
}

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/components/sync/ModelTypeHelper.java",
  ]
  jni_package = "syncer"
}