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

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

Change-Id: I6bdca71f620f3c5d8a804c3788a3b2fa4cf42a2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Colin Cross
2024-01-05 23:37:48 +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 {