Merge "Support python binaries in sh_test_host"

This commit is contained in:
Anton Hansson 2021-01-08 15:17:27 +00:00 committed by Gerrit Code Review
commit 7241119d8d
1 changed files with 2 additions and 9 deletions

View File

@ -345,15 +345,8 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
depTag := ctx.OtherModuleDependencyTag(dep)
switch depTag {
case shTestDataBinsTag, shTestDataDeviceBinsTag:
if cc, isCc := dep.(*cc.Module); isCc {
s.addToDataModules(ctx, cc.OutputFile().Path().Base(), cc.OutputFile().Path())
return
}
property := "data_bins"
if depTag == shTestDataDeviceBinsTag {
property = "data_device_bins"
}
ctx.PropertyErrorf(property, "%q of type %q is not supported", dep.Name(), ctx.OtherModuleType(dep))
path := android.OutputFileForModule(ctx, dep, "")
s.addToDataModules(ctx, path.Base(), path)
case shTestDataLibsTag, shTestDataDeviceLibsTag:
if cc, isCc := dep.(*cc.Module); isCc {
// Copy to an intermediate output directory to append "lib[64]" to the path,