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

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

Issue 772493003: GN + Android: support standalone .dex.jar output of Android libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix building java (non-android) libraries. Created 6 years 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/write_build_config.py ('k') | build/config/android/rules.gni » ('j') | 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 7ed12911a10212f50b25aeb07f27c7c56ded8c7c..41fd75f352fe41b71e260f33da6535108822f1b2 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -896,6 +896,18 @@ template("java_library_impl") {
]
output = _dex_path
}
+
+ if (defined(invoker.standalone_dex_path)) {
+ _final_deps += [ ":${_template_name}__standalone_dex" ]
+ _rebased_build_config = rebase_path(_build_config, root_build_dir)
+ dex("${_template_name}__standalone_dex") {
+ sources = [_jar_path]
+ inputs = [_build_config]
+ output = invoker.standalone_dex_path
+ dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files"
+ args = [ "--inputs=@FileArg($dex_arg_key)" ]
+ }
+ }
}
group(target_name) {
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698