Add per-module phony targets for lint checks am: b9176417eb am: 158a988779 am: 912eabc92b

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2898793

Change-Id: I03e442fdc1d8f676e010830103bea4fbf2f4e451
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Colin Cross
2024-01-06 00:28:17 +00:00
committed by Automerger Merge Worker

View File

@@ -542,6 +542,10 @@ func (l *linter) lint(ctx android.ModuleContext) {
if l.buildModuleReportZip {
l.reports = BuildModuleLintReportZips(ctx, l.LintDepSets())
}
// Create a per-module phony target to run the lint check.
phonyName := ctx.ModuleName() + "-lint"
ctx.Phony(phonyName, xml)
}
func BuildModuleLintReportZips(ctx android.ModuleContext, depSets LintDepSets) android.Paths {