Merge "Implement OutputFiles for python modules." am: ce3912fd4b

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

Change-Id: I6173ac4706321c6be0bd5159c99b41f5503655d4
This commit is contained in:
Liz Kammer
2020-06-23 23:53:16 +00:00
committed by Automerger Merge Worker

View File

@@ -251,6 +251,18 @@ func (p *Module) HostToolPath() android.OptionalPath {
return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
}
func (p *Module) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case "":
if outputFile := p.installSource; outputFile.Valid() {
return android.Paths{outputFile.Path()}, nil
}
return android.Paths{}, nil
default:
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
}
}
func (p *Module) isEmbeddedLauncherEnabled(actual_version string) bool {
switch actual_version {
case pyVersion2: