Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: net/android/BUILD.gn

Issue 599493004: Use the new java_cpp_enum rule in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more aosp fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/get_landmines.py ('k') | net/android/cert_verify_result_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/BUILD.gn
diff --git a/net/android/BUILD.gn b/net/android/BUILD.gn
index 98f25816a1a376db1f63f08041ff918941f10183..8c803a1069c1ba66aa4c6f01caabe4728170bb0e 100644
--- a/net/android/BUILD.gn
+++ b/net/android/BUILD.gn
@@ -12,10 +12,8 @@ android_library("net_java") {
]
srcjar_deps = [
- ":cert_verify_status_android_java",
- ":certificate_mime_types_java",
":net_errors_java",
- ":private_key_types_java",
+ ":net_android_java_enums_srcjar",
":remote_android_keystore_aidl",
]
}
@@ -51,33 +49,16 @@ java_cpp_template("net_errors_java") {
]
}
-java_cpp_template("certificate_mime_types_java") {
- package_name = "org/chromium/net"
- sources = [
- "java/CertificateMimeType.template",
- ]
- inputs = [
- "../base/mime_util_certificate_type_list.h"
- ]
-}
-
-java_cpp_template("cert_verify_status_android_java") {
- package_name = "org/chromium/net"
+java_cpp_enum("net_android_java_enums_srcjar") {
sources = [
- "java/CertVerifyStatusAndroid.template",
+ "../base/mime_util.h",
+ "cert_verify_result_android.h",
+ "keystore.h"
]
- inputs = [
- "cert_verify_status_android_list.h"
- ]
-}
-
-java_cpp_template("private_key_types_java") {
- package_name = "org/chromium/net"
- sources = [
- "java/PrivateKeyType.template",
- ]
- inputs = [
- "private_key_type_list.h"
+ outputs = [
+ "org/chromium/net/CertificateMimeType.java",
+ "org/chromium/net/CertVerifyStatusAndroid.java",
+ "org/chromium/net/PrivateKeyType.java",
]
}
« no previous file with comments | « build/get_landmines.py ('k') | net/android/cert_verify_result_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698