summaryrefslogtreecommitdiff
path: root/sdk/update.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-02-04 11:15:34 +0000
committer Paul Duffin <paulduffin@google.com> 2021-02-05 13:35:25 +0000
commit22ff0aaf51bdd9409eafe74151decb58f47308bc (patch)
tree90342540bc1b8d69a76aa58940f4bac70864e47a /sdk/update.go
parentdd63d6d7bdae32a1bf89a1ce8ade15ee10afd6cc (diff)
Export implementation class jars for java_boot_libs
Hiddenapi processing currently requires access to the class implementation jars for libraries on the bootclasspath which means that they need to be provided as part of the prebuilts. This change modifies the java_boot_libs property on the sdk to make those files available. Modularization of the hiddenapi processing will hopefully remove the need for these to be exported so this should be temporary. Bug: 178361284 Test: m art-module-sdk check generated snapshot zip contains implementation jars Change-Id: I9e94662dddb0ddb85a477ae6d27e533085147e88
Diffstat (limited to 'sdk/update.go')
-rw-r--r--sdk/update.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/sdk/update.go b/sdk/update.go
index b5bc9f434..377aaae76 100644
--- a/sdk/update.go
+++ b/sdk/update.go
@@ -653,9 +653,6 @@ type snapshotBuilder struct {
filesToZip android.Paths
zipsToMerge android.Paths
- // The path to an empty file.
- emptyFile android.WritablePath
-
prebuiltModules map[string]*bpModule
prebuiltOrder []*bpModule
@@ -706,19 +703,6 @@ func (s *snapshotBuilder) UnzipToSnapshot(zipPath android.Path, destDir string)
s.zipsToMerge = append(s.zipsToMerge, tmpZipPath)
}
-func (s *snapshotBuilder) EmptyFile() android.Path {
- if s.emptyFile == nil {
- ctx := s.ctx
- s.emptyFile = android.PathForModuleOut(ctx, "empty")
- s.ctx.Build(pctx, android.BuildParams{
- Rule: android.Touch,
- Output: s.emptyFile,
- })
- }
-
- return s.emptyFile
-}
-
func (s *snapshotBuilder) AddPrebuiltModule(member android.SdkMember, moduleType string) android.BpModule {
name := member.Name()
if s.prebuiltModules[name] != nil {