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

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

Issue 2044223005: [Android] Add option to add additional files to built jars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits 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/gyp/javac.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..1abdd62663a3dea85625b16a3799b92f4541336e 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -1830,7 +1830,7 @@ if (enable_java_templates) {
_enable_interface_jars_javac = true
if (defined(invoker.processors_javac)) {
_processors = invoker.processors_javac
- _enable_iterface_jars_javac = _processors == []
+ _enable_interface_jars_javac = _processors == []
}
_processor_args = []
@@ -1838,6 +1838,11 @@ if (enable_java_templates) {
_processor_args = invoker.processor_args_javac
}
+ _additional_jar_files = []
+ if (defined(invoker.additional_jar_files)) {
+ _additional_jar_files = invoker.additional_jar_files
+ }
+
if (defined(invoker.enable_incremental_javac_override)) {
# Use invoker-specified override.
_enable_incremental_javac = invoker.enable_incremental_javac_override
@@ -1970,6 +1975,9 @@ if (enable_java_templates) {
foreach(e, _processor_args) {
args += [ "--processor-arg=" + e ]
}
+ foreach(e, _additional_jar_files) {
+ args += [ "--additional-jar-file=" + e ]
+ }
if (invoker.java_files != []) {
args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ]
}
@@ -2178,6 +2186,7 @@ if (enable_java_templates) {
compile_java(_compile_java_target) {
forward_variables_from(invoker,
[
+ "additional_jar_files",
"alternative_android_sdk_ijar",
"alternative_android_sdk_ijar_dep",
"dist_jar_path",
« no previous file with comments | « build/android/gyp/javac.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698