Ensure current.zip is put in the right place.

Using the InstallFile as the snapshot ensure that the artifact
in out/soong/mainline-sdks/ is built when building the sdk
target.

Test: m ipsec-module-sdk
Change-Id: I45ce6001dbae3a7a9c4cf50f8d7d5d67f94dbcb3
This commit is contained in:
Mathew Inwood 2021-05-05 17:00:29 +01:00
parent c8ae73e678
commit 60770e2250
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@ func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// Generate the snapshot from the member info.
p := s.buildSnapshot(ctx, sdkVariants)
s.snapshotFile = android.OptionalPathForPath(p)
ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), s.Name()+"-current.zip", p)
zip := ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), p.Base(), p)
s.snapshotFile = android.OptionalPathForPath(zip)
}
}