Merge "sh_binary: Implement OutputFileProducer for sh_test" into main

This commit is contained in:
Edward Liaw
2023-09-15 20:33:46 +00:00
committed by Gerrit Code Review

View File

@@ -190,6 +190,15 @@ func (s *ShBinary) OutputFile() android.OutputPath {
return s.outputFilePath 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 { func (s *ShBinary) SubDir() string {
return proptools.String(s.properties.Sub_dir) return proptools.String(s.properties.Sub_dir)
} }