Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / sync / android / BUILD.gn
blobd337d0bda6cc45611feaa1b5544b8ba80367b489
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") {
9   deps = [
10     "//base:base_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",
16   ]
17   srcjar_deps = [ ":java_enums" ]
18   DEPRECATED_java_in_dir = "java/src"
21 android_library("sync_javatests") {
22   testonly = true
23   deps = [
24     ":sync_java",
25     "//base:base_java",
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",
31   ]
32   DEPRECATED_java_in_dir = "javatests/src"
35 # GYP: //sync/sync_android.gypi:model_type_java
36 java_cpp_enum("java_enums") {
37   sources = [
38     "//sync/internal_api/public/base/model_type.h",
39   ]
40   outputs = [
41     "org/chromium/sync/ModelType.java",
42   ]
45 generate_jni("jni_headers") {
46   sources = [
47     "java/src/org/chromium/sync/ModelTypeHelper.java",
48   ]
49   jni_package = "syncer"