summaryrefslogtreecommitdiff
path: root/sdk/update.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-08-21 10:47:44 -0700
committer Colin Cross <ccross@android.com> 2024-09-03 14:52:19 -0700
commita6182ab2fa21738384a3d83c6038c17f01b29dda (patch)
treec96f7722c5a5584af3ee7ba9c597279eaaa09aa5 /sdk/update.go
parentc965be6ca209c5623a978a29de31c037da4b29cf (diff)
Move checkbuild targets of Soong modules into Soong
Pass the name of Soong's checkbuild target for each module to Make so that it can depend on it from the main checkbuild rule. This will give better control over which files get built, allowing checkbuild to skip the jar combining step when transitive classpath jars are enabled. The per-module checkbuild targets are passed to make instead of added directly as a dependency of checkbuild in order to maintain the existing behavior of only building modules exposed to make in checkbuild. Also tweak the existing calls to CheckbuildFile and add InstallFileWithoutCheckbuild to match the files that are in the Make-based checkbuild. Bug: 308016794 Test: m checkbuild Change-Id: Ic5140819381d58f4d00f23a7a12447950c4cf268
Diffstat (limited to 'sdk/update.go')
-rw-r--r--sdk/update.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk/update.go b/sdk/update.go
index a4b1967af..e1b363a89 100644
--- a/sdk/update.go
+++ b/sdk/update.go
@@ -563,11 +563,11 @@ be unnecessary as every module in the sdk already has its own licenses property.
}
builder.infoContents = string(output)
android.WriteFileRuleVerbatim(ctx, info, builder.infoContents)
- installedInfo := ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), info.Base(), info)
+ installedInfo := ctx.InstallFileWithoutCheckbuild(android.PathForMainlineSdksInstall(ctx), info.Base(), info)
s.infoFile = android.OptionalPathForPath(installedInfo)
// Install the zip, making sure that the info file has been installed as well.
- installedZip := ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), outputZipFile.Base(), outputZipFile, installedInfo)
+ installedZip := ctx.InstallFileWithoutCheckbuild(android.PathForMainlineSdksInstall(ctx), outputZipFile.Base(), outputZipFile, installedInfo)
s.snapshotFile = android.OptionalPathForPath(installedZip)
}