Allow CopyDepsToZip() to work on WritablePath

Makes the method more generally usable as it can work with any
WritablePath not just OutputPath. Also, makes it independent of whether
PathForModuleOut() returns ModuleOutPath or OutputPath.

Bug: 179124768
Test: m nothing
Change-Id: I08e61a24722198aa92fa2f8a2d096b1a8bf9c5c2
This commit is contained in:
Paul Duffin
2021-02-02 10:59:54 +00:00
parent 8705ba06bf
commit 4076a75fd7
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ func (m *packageTestModule) DepsMutator(ctx BottomUpMutatorContext) {
}
func (m *packageTestModule) GenerateAndroidBuildActions(ctx ModuleContext) {
zipFile := PathForModuleOut(ctx, "myzip.zip").OutputPath
zipFile := PathForModuleOut(ctx, "myzip.zip")
m.entries = m.CopyDepsToZip(ctx, zipFile)
}