Implement OutputFiles for python modules.
This enables python binaries to be included in data properties with the
format ":module".
Test: m FirmwareDtboVerification with local changes
Bug: 153848038
Merged-In: I2a02dc382fcbb142d8e4fbdbb6ca461986627d25
Change-Id: I2a02dc382fcbb142d8e4fbdbb6ca461986627d25
(cherry picked from commit e0070ee313
)
This commit is contained in:
parent
023707d317
commit
2ebaa881d3
|
@ -251,6 +251,18 @@ func (p *Module) HostToolPath() android.OptionalPath {
|
||||||
return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
|
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 {
|
func (p *Module) isEmbeddedLauncherEnabled(actual_version string) bool {
|
||||||
switch actual_version {
|
switch actual_version {
|
||||||
case pyVersion2:
|
case pyVersion2:
|
||||||
|
|
Loading…
Reference in New Issue