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

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: 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/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 5a0f227fb877075c9db0a7df4bee07187e814908..d1342ac27b15cec63c645d47e8ee8f1667bb602c 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -920,6 +920,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") {
@@ -981,6 +986,9 @@ template("android_library") {
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
@@ -1295,7 +1303,7 @@ template("android_apk") {
_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)" ]
}
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698