diff options
| author | 2024-06-20 18:20:17 +0000 | |
|---|---|---|
| committer | 2024-06-20 18:20:17 +0000 | |
| commit | 66c8090a3a3dc5869632aeb869d29b3625c96038 (patch) | |
| tree | 883d647dd3f18810a759e6f18a75e8e6e864b5f0 | |
| parent | c48c1b572167b00291358dfaa1d83faaf5c59414 (diff) | |
| parent | ca3ea1b1eeea52665bb6c7b62955d11526ef68a1 (diff) | |
Merge "Use OutputFilesProvider on python_binary_host" into main
| -rw-r--r-- | python/binary.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/python/binary.go b/python/binary.go index b935aba45..5f60761be 100644 --- a/python/binary.go +++ b/python/binary.go @@ -103,6 +103,7 @@ func (p *PythonBinaryModule) GenerateAndroidBuildActions(ctx android.ModuleConte p.buildBinary(ctx) p.installedDest = ctx.InstallFile(installDir(ctx, "bin", "", ""), p.installSource.Base(), p.installSource) + ctx.SetOutputFiles(android.Paths{p.installSource}, "") } func (p *PythonBinaryModule) buildBinary(ctx android.ModuleContext) { @@ -187,16 +188,6 @@ func (p *PythonBinaryModule) HostToolPath() android.OptionalPath { return android.OptionalPathForPath(p.installedDest) } -// OutputFiles returns output files based on given tag, returns an error if tag is unsupported. -func (p *PythonBinaryModule) OutputFiles(tag string) (android.Paths, error) { - switch tag { - case "": - return android.Paths{p.installSource}, nil - default: - return nil, fmt.Errorf("unsupported module reference tag %q", tag) - } -} - func (p *PythonBinaryModule) isEmbeddedLauncherEnabled() bool { return BoolDefault(p.properties.Embedded_launcher, true) } |