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

Unified Diff: build/config/android/internal_rules.gni

Issue 2130933002: 🎧 Initial version of Android Studio project generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 2 Created 4 years, 5 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/android/incremental_install/installer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index 363a53a1685f3274b7eddf7ec0f8a4c1bd449433..22093c12bda464d9e36c5c1cced89f72455d8e5b 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -327,6 +327,11 @@ template("write_build_config") {
rebase_path(invoker.srcjar, root_build_dir),
]
}
+ if (defined(invoker.bundled_srcjars)) {
+ _rebased_bundled_srcjars =
+ rebase_path(invoker.bundled_srcjars, root_build_dir)
+ args += [ "--bundled-srcjars=$_rebased_bundled_srcjars" ]
+ }
}
}
@@ -2157,6 +2162,15 @@ if (enable_java_templates) {
if (_java_files != []) {
java_sources_file = _java_sources_file
}
+
+ if (defined(invoker.srcjar_deps)) {
+ bundled_srcjars = []
+ foreach(d, invoker.srcjar_deps) {
+ _dep_gen_dir = get_label_info(d, "target_gen_dir")
+ _dep_name = get_label_info(d, "name")
+ bundled_srcjars += [ "$_dep_gen_dir/$_dep_name.srcjar" ]
+ }
+ }
}
_accumulated_deps += [ ":$build_config_target_name" ]
}
« no previous file with comments | « build/android/incremental_install/installer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698