OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 android_library("net_java") { | 8 android_library("net_java") { |
9 DEPRECATED_java_in_dir = "java/src" | 9 DEPRECATED_java_in_dir = "java/src" |
10 deps = [ | 10 deps = [ |
11 "//base:base_java", | 11 "//base:base_java", |
12 ] | 12 ] |
13 | 13 |
14 srcjar_deps = [ | 14 srcjar_deps = [ |
15 ":cert_verify_status_android_java", | |
16 ":certificate_mime_types_java", | |
17 ":net_errors_java", | 15 ":net_errors_java", |
18 ":private_key_types_java", | 16 ":net_android_java_enums_srcjar", |
19 ":remote_android_keystore_aidl", | 17 ":remote_android_keystore_aidl", |
20 ] | 18 ] |
21 } | 19 } |
22 | 20 |
23 android_aidl("remote_android_keystore_aidl") { | 21 android_aidl("remote_android_keystore_aidl") { |
24 interface_file = "java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.ai
dl" | 22 interface_file = "java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.ai
dl" |
25 sources = [ | 23 sources = [ |
26 "java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl", | 24 "java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl", |
27 "java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl", | 25 "java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl", |
28 ] | 26 ] |
(...skipping 15 matching lines...) Expand all Loading... |
44 java_cpp_template("net_errors_java") { | 42 java_cpp_template("net_errors_java") { |
45 package_name = "org/chromium/net" | 43 package_name = "org/chromium/net" |
46 sources = [ | 44 sources = [ |
47 "java/NetError.template", | 45 "java/NetError.template", |
48 ] | 46 ] |
49 inputs = [ | 47 inputs = [ |
50 "../base/net_error_list.h" | 48 "../base/net_error_list.h" |
51 ] | 49 ] |
52 } | 50 } |
53 | 51 |
54 java_cpp_template("certificate_mime_types_java") { | 52 java_cpp_enum("net_android_java_enums_srcjar") { |
55 package_name = "org/chromium/net" | |
56 sources = [ | 53 sources = [ |
57 "java/CertificateMimeType.template", | 54 "../base/mime_util.h", |
| 55 "cert_verify_result_android.h", |
| 56 "keystore.h" |
58 ] | 57 ] |
59 inputs = [ | 58 outputs = [ |
60 "../base/mime_util_certificate_type_list.h" | 59 "org/chromium/net/CertificateMimeType.java", |
| 60 "org/chromium/net/CertVerifyStatusAndroid.java", |
| 61 "org/chromium/net/PrivateKeyType.java", |
61 ] | 62 ] |
62 } | 63 } |
63 | 64 |
64 java_cpp_template("cert_verify_status_android_java") { | |
65 package_name = "org/chromium/net" | |
66 sources = [ | |
67 "java/CertVerifyStatusAndroid.template", | |
68 ] | |
69 inputs = [ | |
70 "cert_verify_status_android_list.h" | |
71 ] | |
72 } | |
73 | |
74 java_cpp_template("private_key_types_java") { | |
75 package_name = "org/chromium/net" | |
76 sources = [ | |
77 "java/PrivateKeyType.template", | |
78 ] | |
79 inputs = [ | |
80 "private_key_type_list.h" | |
81 ] | |
82 } | |
83 | |
84 # TODO(GYP) | 65 # TODO(GYP) |
85 if (false) { | 66 if (false) { |
86 unittest_apk("net_unittests_apk") { | 67 unittest_apk("net_unittests_apk") { |
87 deps = [ | 68 deps = [ |
88 ":net_java", | 69 ":net_java", |
89 ":net_javatests", | 70 ":net_javatests", |
90 "//net:net_unittests", | 71 "//net:net_unittests", |
91 ] | 72 ] |
92 unittests_dep = "//net:net_unittests" | 73 unittests_dep = "//net:net_unittests" |
93 } | 74 } |
94 } | 75 } |
OLD | NEW |