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

Unified Diff: url/BUILD.gn

Issue 2347233002: Add src_files to src_jar GN template (Closed)
Patch Set: Build base_java, net_java, url_java from srcjar. Add support for srsjar_deps to jar_src template. Created 4 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
« components/cronet/android/BUILD.gn ('K') | « net/android/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/BUILD.gn
diff --git a/url/BUILD.gn b/url/BUILD.gn
index c6020fb1a2368be072c5b446891e9033411287d9..ee0fc5095de075cd262155241fc09cde6e4a1bc3 100644
--- a/url/BUILD.gn
+++ b/url/BUILD.gn
@@ -99,12 +99,21 @@ component("url") {
if (is_android) {
android_library("url_java") {
- java_files = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ]
+ srcjar_deps = [ ":url_java_srcjar" ]
deps = [
"//base:base_java",
]
}
+ # Creates srcjar that contains sources for "url_java".
+ zip("url_java_srcjar") {
+ inputs = [
+ "android/java/src/org/chromium/url/IDNStringUtil.java",
+ ]
+ output = "$target_gen_dir/$target_name.srcjar"
+ base_dir = rebase_path("//url")
+ }
+
generate_jni("url_jni_headers") {
sources = [
"android/java/src/org/chromium/url/IDNStringUtil.java",
« components/cronet/android/BUILD.gn ('K') | « net/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698