Merge "Allow java_host_binary to be used with genrule."

This commit is contained in:
Treehugger Robot 2017-10-28 00:01:53 +00:00 committed by Gerrit Code Review
commit 047a24ac5c

View file

@ -868,6 +868,10 @@ type Binary struct {
binaryFile android.OutputPath binaryFile android.OutputPath
} }
func (j *Binary) HostToolPath() android.OptionalPath {
return android.OptionalPathForPath(j.binaryFile)
}
func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) { func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
j.Library.GenerateAndroidBuildActions(ctx) j.Library.GenerateAndroidBuildActions(ctx)