Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index f9cdaf2d781b02e67bbd20340c725f96a45e8ba6..c6adde1bf5d27821bd7ebe9cdcff553f69dabc64 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -1192,6 +1192,11 @@ template("java_library_impl") { |
_requires_android = |
defined(invoker.requires_android) && invoker.requires_android |
assert(_requires_android || true) # Mark as used. |
+ _android_manifest = "//build/android/AndroidManifest.xml" |
+ if (defined(invoker.android_manifest)) { |
+ _android_manifest = invoker.android_manifest |
+ } |
+ assert(_android_manifest != "") # Mark as used. |
_run_findbugs = defined(invoker.run_findbugs) && invoker.run_findbugs |
assert(_run_findbugs || true) # Mark as used. |
@@ -1316,11 +1321,6 @@ template("java_library_impl") { |
if (_supports_android) { |
if (defined(invoker.chromium_code) && invoker.chromium_code) { |
- _android_manifest = "//build/android/AndroidManifest.xml" |
- if (defined(invoker.android_manifest)) { |
- _android_manifest = invoker.android_manifest |
- } |
- |
_final_datadeps += [ ":${_template_name}__lint" ] |
android_lint("${_template_name}__lint") { |
android_manifest = _android_manifest |