Merge changes from topic "empty-framework-location" into main

* changes:
  Created empty framework-location non-updatable module
  java_library support for building headers-only
This commit is contained in:
Mark White
2023-08-23 17:25:39 +00:00
committed by Android (Google) Code Review
8 changed files with 92 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"))