diff options
| author | 2021-04-26 16:12:45 +0000 | |
|---|---|---|
| committer | 2021-04-26 16:12:45 +0000 | |
| commit | 46e4a9e6b189ceec44157fa0e0602cdfd39078cd (patch) | |
| tree | bcc9dfcb75bf158c50a9a798532b575f4971a53b /java/bootclasspath_fragment.go | |
| parent | 9768678344bd2b9143720051d5f46ec6b753dc55 (diff) | |
| parent | 190fdef29458dc6fa604fa836cbe4ac51bf510d0 (diff) | |
Merge "Delegate retrieval of dex boot jar for apex to the bootclasspath_fragment"
Diffstat (limited to 'java/bootclasspath_fragment.go')
| -rw-r--r-- | java/bootclasspath_fragment.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go index 00d465992..90383af60 100644 --- a/java/bootclasspath_fragment.go +++ b/java/bootclasspath_fragment.go @@ -198,6 +198,15 @@ func (i BootclasspathFragmentApexContentInfo) AndroidBootImageFilesByArchType() return files } +// DexBootJarPathForContentModule returns the path to the dex boot jar for specified module. +// +// The dex boot jar is one which has had hidden API encoding performed on it. +func (i BootclasspathFragmentApexContentInfo) DexBootJarPathForContentModule(module android.Module) android.Path { + j := module.(UsesLibraryDependency) + dexJar := j.DexJarBuildPath() + return dexJar +} + func (b *BootclasspathFragmentModule) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool { tag := ctx.OtherModuleDependencyTag(dep) if IsBootclasspathFragmentContentDepTag(tag) { |