Enable prebuilt jar installation in framework

Test: m -j dokka
Bug: 72394196
Change-Id: Ide09dc2fe64ea5db0d771e16d4b9293638b5d65c
This commit is contained in:
Nan Zhang 2018-08-10 13:42:12 -07:00
parent 1a1f7f24ab
commit 4973ecff89
1 changed files with 4 additions and 0 deletions

View File

@ -1573,6 +1573,10 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) {
})
j.exportedSdkLibs = android.FirstUniqueStrings(j.exportedSdkLibs)
if Bool(j.properties.Installable) {
ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"),
ctx.ModuleName()+".jar", outputFile)
}
}
var _ Dependency = (*Import)(nil)