summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-10-28 00:01:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-28 00:01:53 +0000
commit047a24ac5ce1a5444eea5261193f84a9a48bde67 (patch)
tree49be31fec62b9d32752acc15c055475381abcc8e /java/java.go
parent7e768301b9b1fa355559ccdf6d8ba4528e987fff (diff)
parent2423717a0ff73c053e57308163b028ccb5c49d78 (diff)
Merge "Allow java_host_binary to be used with genrule."
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index f5035e7df..7ecf6720f 100644
--- a/java/java.go
+++ b/java/java.go
@@ -868,6 +868,10 @@ type Binary struct {
binaryFile android.OutputPath
}
+func (j *Binary) HostToolPath() android.OptionalPath {
+ return android.OptionalPathForPath(j.binaryFile)
+}
+
func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
j.Library.GenerateAndroidBuildActions(ctx)