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.
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
8 android_library("sync_java") {
11 "//net/android:net_java",
12 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
13 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
14 "//third_party/jsr-305:jsr_305_javalib",
15 "//third_party/android_tools:android_gcm_java",
17 srcjar_deps = [ ":java_enums" ]
18 DEPRECATED_java_in_dir = "java/src"
21 android_library("sync_javatests") {
26 "//base:base_java_test_support",
27 "//sync:sync_java_test_support",
28 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
29 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
30 "//third_party/jsr-305:jsr_305_javalib",
32 DEPRECATED_java_in_dir = "javatests/src"
35 # GYP: //sync/sync_android.gypi:model_type_java
36 java_cpp_enum("java_enums") {
38 "//sync/internal_api/public/base/model_type.h",
41 "org/chromium/sync/ModelType.java",
45 generate_jni("jni_headers") {
47 "java/src/org/chromium/sync/ModelTypeHelper.java",
49 jni_package = "syncer"