Merge "Support python binaries in sh_test_host"
This commit is contained in:
commit
7241119d8d
|
@ -345,15 +345,8 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
depTag := ctx.OtherModuleDependencyTag(dep)
|
depTag := ctx.OtherModuleDependencyTag(dep)
|
||||||
switch depTag {
|
switch depTag {
|
||||||
case shTestDataBinsTag, shTestDataDeviceBinsTag:
|
case shTestDataBinsTag, shTestDataDeviceBinsTag:
|
||||||
if cc, isCc := dep.(*cc.Module); isCc {
|
path := android.OutputFileForModule(ctx, dep, "")
|
||||||
s.addToDataModules(ctx, cc.OutputFile().Path().Base(), cc.OutputFile().Path())
|
s.addToDataModules(ctx, path.Base(), 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))
|
|
||||||
case shTestDataLibsTag, shTestDataDeviceLibsTag:
|
case shTestDataLibsTag, shTestDataDeviceLibsTag:
|
||||||
if cc, isCc := dep.(*cc.Module); isCc {
|
if cc, isCc := dep.(*cc.Module); isCc {
|
||||||
// Copy to an intermediate output directory to append "lib[64]" to the path,
|
// Copy to an intermediate output directory to append "lib[64]" to the path,
|
||||||
|
|
Loading…
Reference in New Issue