summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2024-06-06 15:20:42 -0700
committer mrziwang <mrziwang@google.com> 2024-06-06 15:20:42 -0700
commit1b25df0a0193c4bf9b1adb8249139cbf2d4b4a7f (patch)
tree2a60985e9f8b54716b64917cf70989d126fbc881
parent4039516f32ac9dec4831c97089f7dec26e5543d9 (diff)
Use OutputFilesProvider on gen_notice
Test: CI Bug: 339477385 Change-Id: Iae2ff3a8017e8e073391afe648793424cc0eadbd
-rw-r--r--android/gen_notice.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/android/gen_notice.go b/android/gen_notice.go
index 6815f6467..9adde9e9b 100644
--- a/android/gen_notice.go
+++ b/android/gen_notice.go
@@ -176,6 +176,7 @@ func (m *genNoticeModule) GenerateAndroidBuildActions(ctx ModuleContext) {
}
out := m.getStem() + m.getSuffix()
m.output = PathForModuleOut(ctx, out).OutputPath
+ ctx.SetOutputFiles(Paths{m.output}, "")
}
func GenNoticeFactory() Module {
@@ -193,16 +194,6 @@ func GenNoticeFactory() Module {
return module
}
-var _ OutputFileProducer = (*genNoticeModule)(nil)
-
-// Implements OutputFileProducer
-func (m *genNoticeModule) OutputFiles(tag string) (Paths, error) {
- if tag == "" {
- return Paths{m.output}, nil
- }
- return nil, fmt.Errorf("unrecognized tag %q", tag)
-}
-
var _ AndroidMkEntriesProvider = (*genNoticeModule)(nil)
// Implements AndroidMkEntriesProvider