Merge "sh_binary: Implement OutputFileProducer for sh_test" into main am: f3b7e79cc7 am: 05f4b4dd0f

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

Change-Id: Ic53e1c7965ce3df6c2394847873ae7a6a146251e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Edward Liaw
2023-09-15 21:57:31 +00:00
committed by Automerger Merge Worker

View File

@@ -190,6 +190,15 @@ func (s *ShBinary) OutputFile() android.OutputPath {
return s.outputFilePath
}
func (s *ShBinary) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case "":
return android.Paths{s.outputFilePath}, nil
default:
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
}
}
func (s *ShBinary) SubDir() string {
return proptools.String(s.properties.Sub_dir)
}