Merge "java_library support for building headers-only" into main

This commit is contained in:
Mark White
2023-08-23 15:03:21 +00:00
committed by Gerrit Code Review
6 changed files with 90 additions and 0 deletions

View File

@@ -698,6 +698,7 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
j.checkSdkVersions(ctx)
j.checkHeadersOnly(ctx)
if ctx.Device() {
j.dexpreopter.installPath = j.dexpreopter.getInstallPath(
ctx, android.PathForModuleInstall(ctx, "framework", j.Stem()+".jar"))