Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / net / android / BUILD.gn
blobabe46540bd9c6d7749a1739ebae01bb0d7fe1377
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("net_java") {
9   DEPRECATED_java_in_dir = "java/src"
10   deps = [
11     "//base:base_java",
12   ]
13   srcjar_deps = [
14     ":net_errors_java",
15     ":net_android_java_enums_srcjar",
16     ":remote_android_keystore_aidl",
17   ]
20 android_aidl("remote_android_keystore_aidl") {
21   interface_file =
22       "java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl"
23   sources = [
24     "java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl",
25     "java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl",
26   ]
29 android_library("net_java_test_support") {
30   DEPRECATED_java_in_dir = "../test/android/javatests/src"
31   deps = [
32     "//base:base_java",
33     ":net_java",
34   ]
35   srcjar_deps = [ ":net_java_test_support_enums_srcjar" ]
38 android_library("net_javatests") {
39   DEPRECATED_java_in_dir = "javatests/src"
40   deps = [
41     "//base:base_java",
42     "//base:base_java_test_support",
43     ":net_java",
44   ]
47 java_cpp_template("net_errors_java") {
48   package_name = "org/chromium/net"
49   sources = [
50     "java/NetError.template",
51   ]
52   inputs = [
53     "../base/net_error_list.h",
54   ]
57 java_cpp_enum("net_java_test_support_enums_srcjar") {
58   sources = [
59     "../test/url_request/url_request_failed_job.h",
60   ]
61   outputs = [
62     "org/chromium/net/test/FailurePhase.java",
63   ]
66 java_cpp_enum("net_android_java_enums_srcjar") {
67   sources = [
68     "../base/mime_util.h",
69     "../base/network_change_notifier.h",
70     "cert_verify_result_android.h",
71     "keystore.h",
72   ]
73   outputs = [
74     "org/chromium/net/CertificateMimeType.java",
75     "org/chromium/net/CertVerifyStatusAndroid.java",
76     "org/chromium/net/ConnectionSubtype.java",
77     "org/chromium/net/ConnectionType.java",
78     "org/chromium/net/PrivateKeyType.java",
79   ]
82 junit_binary("net_junit_tests") {
83   java_files =
84       [ "junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java" ]
85   deps = [
86     ":net_java",
87     "//base:base_java",
88     "//base:base_java_test_support",
89     "//third_party/junit:hamcrest",
90   ]
93 # TODO(GYP)
94 if (false) {
95   unittest_apk("net_unittests_apk") {
96     deps = [
97       ":net_java",
98       ":net_javatests",
99       "//net:net_unittests",
100     ]
101     unittests_dep = "//net:net_unittests"
102   }