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

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: 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 d33c2003308a6d0b09917047a1a8266413ef1b65..f0fd9730a1f46680e17a98d4eb9315fd4fe39b3e 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -811,6 +811,17 @@ template("java_library_impl") {
sources = [_jar_path]
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]
cjhopman 2014/12/01 21:47:07 add: inputs = [ _build_config ]
ppi 2014/12/02 16:28:17 Done.
+ 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