Use Metalava based android.jar for SDK am: 03b733c936
am: 6c14e73786
Change-Id: I4837bd790119f83917735d6be9f76587c5cbedc9
This commit is contained in:
commit
4122218325
2 changed files with 8 additions and 3 deletions
|
@ -304,6 +304,9 @@ func (ddoc *Droiddoc) AndroidMk() android.AndroidMkData {
|
|||
if ddoc.Javadoc.stubsSrcJar != nil {
|
||||
fmt.Fprintln(w, "LOCAL_DROIDDOC_STUBS_SRCJAR := ", ddoc.Javadoc.stubsSrcJar.String())
|
||||
}
|
||||
if ddoc.annotationsZip != nil {
|
||||
fmt.Fprintln(w, "LOCAL_DROIDDOC_ANNOTATIONS_ZIP := ", ddoc.annotationsZip.String())
|
||||
}
|
||||
if ddoc.checkCurrentApiTimestamp != nil {
|
||||
fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-check-current-api")
|
||||
fmt.Fprintln(w, ddoc.Name()+"-check-current-api:",
|
||||
|
|
|
@ -302,6 +302,8 @@ type Droiddoc struct {
|
|||
checkCurrentApiTimestamp android.WritablePath
|
||||
updateCurrentApiTimestamp android.WritablePath
|
||||
checkLastReleasedApiTimestamp android.WritablePath
|
||||
|
||||
annotationsZip android.WritablePath
|
||||
}
|
||||
|
||||
func InitDroiddocModule(module android.DefaultableModule, hod android.HostOrDeviceSupported) {
|
||||
|
@ -965,8 +967,8 @@ func (d *Droiddoc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||
}
|
||||
opts += " --include-annotations --migrate-nullness"
|
||||
|
||||
annotationsZip := android.PathForModuleOut(ctx, ctx.ModuleName()+"_annotations.zip")
|
||||
implicitOutputs = append(implicitOutputs, annotationsZip)
|
||||
d.annotationsZip = android.PathForModuleOut(ctx, ctx.ModuleName()+"_annotations.zip")
|
||||
implicitOutputs = append(implicitOutputs, d.annotationsZip)
|
||||
|
||||
if String(d.properties.Metalava_merge_annotations_dir) == "" {
|
||||
ctx.PropertyErrorf("metalava_merge_annotations",
|
||||
|
@ -975,7 +977,7 @@ func (d *Droiddoc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||
|
||||
mergeAnnotationsDir := android.PathForSource(ctx, String(d.properties.Metalava_merge_annotations_dir))
|
||||
|
||||
opts += " --extract-annotations " + annotationsZip.String() + " --merge-annotations " + mergeAnnotationsDir.String()
|
||||
opts += " --extract-annotations " + d.annotationsZip.String() + " --merge-annotations " + mergeAnnotationsDir.String()
|
||||
// TODO(tnorbye): find owners to fix these warnings when annotation was enabled.
|
||||
opts += " --hide HiddenTypedefConstant --hide SuperfluousPrefix --hide AnnotationExtraction"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue