From 0b09ad7f349bbf62bca57c6cdbeadc073ddbcae0 Mon Sep 17 00:00:00 2001 From: Jerome Gaillard Date: Thu, 10 Oct 2019 19:29:11 +0100 Subject: Update droidstubs build target This allows to use Metalava to generate metadata files useful for Android Studio as part of a droidstubs target. Once those files have been created in a new metadata folder, they are zipped to make it easier to transfer them into the out/target/common/obj/PACKAGING folder where they can then be picked up by the SDK build to be included there. Bug: 142480924 Test: m sdk Change-Id: I4be1c9e78369c65ee9cd94706c6d20ab0df6b797 Merged-In: I4be1c9e78369c65ee9cd94706c6d20ab0df6b797 --- java/androidmk.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/androidmk.go') diff --git a/java/androidmk.go b/java/androidmk.go index 7a939e849..43b9f4883 100644 --- a/java/androidmk.go +++ b/java/androidmk.go @@ -508,6 +508,9 @@ func (dstubs *Droidstubs) AndroidMk() android.AndroidMkData { if dstubs.jdiffDocZip != nil { fmt.Fprintln(w, "LOCAL_DROIDDOC_JDIFF_DOC_ZIP := ", dstubs.jdiffDocZip.String()) } + if dstubs.metadataZip != nil { + fmt.Fprintln(w, "LOCAL_DROIDDOC_METADATA_ZIP := ", dstubs.metadataZip.String()) + } if dstubs.checkCurrentApiTimestamp != nil { fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-current-api") fmt.Fprintln(w, dstubs.Name()+"-check-current-api:", -- cgit v1.2.3-59-g8ed1b