diff options
author | 2025-02-12 15:45:41 -0800 | |
---|---|---|
committer | 2025-02-12 15:45:41 -0800 | |
commit | 7df723397b78b2e4b7024924d87d2d56ed02edd1 (patch) | |
tree | c6b53cf50daa09776e76bd6011846e605ea2eb09 /java/droidstubs.go | |
parent | a144ce915bcc120235c776f2cfc869e857e385ab (diff) | |
parent | af8c7f85fc003fafb6aaa99cb382c47eda79c7dc (diff) |
Merge "Move dists to GenerateAndroidBuildActions" into main am: af8c7f85fc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3490886
Change-Id: Ib21a705372e56c677f90071913b8ba702506ed03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index c8f798a9b..caad6883e 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -1429,6 +1429,16 @@ func (d *Droidstubs) GenerateAndroidBuildActions(ctx android.ModuleContext) { d.setOutputFiles(ctx) d.setPhonyRules(ctx) + + if d.apiLintTimestamp != nil { + if d.apiLintReport != nil { + ctx.DistForGoalsWithFilename( + []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, + d.apiLintReport, + fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), + ) + } + } } func setDroidInfo(ctx android.ModuleContext, d *Droidstubs, info *StubsInfo, typ StubsType) { @@ -1524,18 +1534,6 @@ var ( } ) -func (d *Droidstubs) MakeVars(ctx android.MakeVarsModuleContext) { - if d.apiLintTimestamp != nil { - if d.apiLintReport != nil { - ctx.DistForGoalsWithFilename( - []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, - d.apiLintReport, - fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), - ) - } - } -} - func StubsDefaultsFactory() android.Module { module := &DocDefaults{} |