Index: build/config/android/rules.gni |
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni |
index 924c261a6b9529716f50b53d3ce6c68d35b7cf43..61a83223242a57213a78dcb17f657cacae4617e7 100644 |
--- a/build/config/android/rules.gni |
+++ b/build/config/android/rules.gni |
@@ -506,9 +506,16 @@ template("android_apk") { |
# Just mark these as used for now. |
assert(!defined(invoker.native_libs) |
|| invoker.native_libs == [] || true) |
- assert(!defined(invoker.final_apk_path) |
- || invoker.final_apk_path == "" || true) |
+ _keystore_path = android_default_keystore_path |
+ _keystore_name = android_default_keystore_name |
+ _keystore_password = android_default_keystore_password |
+ |
+ if (defined(invoker.keystore_path)) { |
+ _keystore_path = invoker.keystore_path |
+ _keystore_name = invoker.keystore_name |
+ _keystore_password = invoker.keystore_password |
+ } |
# TODO(cjhopman): Remove this once we correctly generate the real |
# NativeLibraries.java |
@@ -558,6 +565,20 @@ template("android_apk") { |
args = ["--inputs=@FileArg($dex_arg_key)"] |
} |
+ final_deps += [":${target_name}__create"] |
+ create_apk("${target_name}__create") { |
+ apk_path = invoker.final_apk_path |
+ android_manifest = invoker.android_manifest |
+ resources_zip = all_resources_zip_path |
+ dex_path = final_dex_path |
+ |
+ keystore_name = _keystore_name |
+ keystore_path = _keystore_path |
+ keystore_password = _keystore_password |
+ |
+ # TODO: native libs |
+ } |
+ |
group(target_name) { |
deps = final_deps |
} |