summaryrefslogtreecommitdiff
path: root/java/androidmk.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-07-03 11:56:24 -0700
committer Colin Cross <ccross@android.com> 2020-07-16 16:30:05 -0700
commit1d11c871ae38a23212ced24ff23b8a5117433fe7 (patch)
tree2b97cc28c310b3d81c562742ac1adb5c6ee17426 /java/androidmk.go
parent70f590946be178907070a152a1daea2845f0a485 (diff)
Build a zip of transitive lint reports for apps
Add a rule to build a zip containing the lint reports from transitive dependencies for apps, and pass it to Make. Bug: 153485543 Test: m TARGET_BUILD_APPS=Gallery2 lint-check Change-Id: I523c09016251377ff89d76084769be7401b95425 Merged-In: I523c09016251377ff89d76084769be7401b95425 (cherry picked from commit c0efd1db13e383a0b3ac96e3718a006dea0e1cfd)
Diffstat (limited to 'java/androidmk.go')
-rw-r--r--java/androidmk.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/androidmk.go b/java/androidmk.go
index 8953c31c1..48b9f868e 100644
--- a/java/androidmk.go
+++ b/java/androidmk.go
@@ -131,6 +131,10 @@ func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
entries.SetPath("LOCAL_SOONG_PROGUARD_DICT", library.proguardDictionary)
}
entries.SetString("LOCAL_MODULE_STEM", library.Stem())
+
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", library.linter.outputs.transitiveHTMLZip)
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", library.linter.outputs.transitiveTextZip)
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", library.linter.outputs.transitiveXMLZip)
},
},
}
@@ -383,6 +387,10 @@ func (app *AndroidApp) AndroidMkEntries() []android.AndroidMkEntries {
install := app.onDeviceDir + "/" + extra.Base()
entries.AddStrings("LOCAL_SOONG_BUILT_INSTALLED", extra.String()+":"+install)
}
+
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", app.linter.outputs.transitiveHTMLZip)
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", app.linter.outputs.transitiveTextZip)
+ entries.AddOptionalPath("LOCAL_SOONG_LINT_REPORTS", app.linter.outputs.transitiveXMLZip)
},
},
ExtraFooters: []android.AndroidMkExtraFootersFunc{