diff options
author | Edward Liaw <edliaw@google.com> | 2023-08-07 19:03:22 +0000 |
---|---|---|
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2023-11-01 23:05:32 +0000 |
commit | 53fe324ca495133cdf4f84e0218f3ef1adfb37ad (patch) | |
tree | 84bee9e1a1920724f024ded33709950cd3d71317 | |
parent | 207a631f9ce82c0d7a8f7b20e5451dcdeb92fe8c (diff) | |
download | soong-android14-dev.tar.gz |
sh_binary: Implement OutputFileProducer for sh_testandroid14-dev
When added as a data dependency, the output of sh_test does not get
included. It needs to define OutputFiles in order to implement the
OutputFileProducer interface.
Bug: 293944582
Test: N/A
Signed-off-by: Edward Liaw <edliaw@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:492ca05fe03ac8311aac63f6eddac0e9c2abd33d)
Merged-In: Ic27741ed584523f5e1efd7caa8b872fe50cce381
Change-Id: Ic27741ed584523f5e1efd7caa8b872fe50cce381
-rw-r--r-- | sh/sh_binary.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go index c921ca68a..e4f7bbefe 100644 --- a/sh/sh_binary.go +++ b/sh/sh_binary.go @@ -187,6 +187,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) } |