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

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

Issue 951353003: Allow to exlude jar in android_standalone_library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index c31d40eca76c4597f5b622c469e2bf58330edd0d..7b74abd8a09a8185cd1681a85aadf464e02b583d 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -1093,5 +1093,13 @@ template("deps_dex") {
output = invoker.dex_path
dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files"
args = [ "--inputs=@FileArg($dex_arg_key)" ]
+ if (defined(invoker.excluded_jars)) {
+ result = exec_script("//build/android/gn/to_json.py",
+ rebase_path(invoker.excluded_jars, root_build_dir),
+ "string")
+ result_file = rebase_path("$target_gen_dir/${target_name}.exclusions")
+ write_file(result_file, result)
+ args += [ "--excluded-paths-file=${result_file}" ]
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698