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

Unified Diff: build/config/android/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
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index a5c0b0acf333dcb48ab891bd49ba840a2a2ea410..09d84dac3ab2e4fd7a49fa1795c4b63d892ab3ec 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -815,6 +815,11 @@ template("java_prebuilt") {
# be used to remove unwanted parts of the library.
# proguard_config: Path to the proguard config for preprocessing.
#
+# dex_path: If set, the resulting .dex.jar file will be placed under this
+# path.
+# standalone_dex_path: If set, a standalone .dex.jar containing the code from
+# the library and all dependencies will be placed under this path.
+#
#
# Example
# android_library("foo_java") {
@@ -850,6 +855,7 @@ template("android_library") {
if (defined(invoker.testonly)) { testonly = invoker.testonly }
if (defined(invoker.visibility)) { visibility = invoker.visibility }
if (defined(invoker.dex_path)) { dex_path = invoker.dex_path }
+ if (defined(invoker.standalone_dex_path)) { standalone_dex_path = invoker.standalone_dex_path }
supports_android = true
requires_android = true
@@ -1143,7 +1149,7 @@ template("android_apk") {
sources = [ jar_path ]
inputs = [ _build_config ]
output = final_dex_path
- dex_arg_key = "${_rebased_build_config}:apk_dex:dependency_dex_files"
+ dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files"
args = [ "--inputs=@FileArg($dex_arg_key)" ]
}
« build/config/android/internal_rules.gni ('K') | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698