summaryrefslogtreecommitdiff
path: root/sdk/sdk.go
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2020-02-27 13:45:35 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2020-03-04 14:20:46 +0000
commit1228e9c0ba03dc59a8f68842a330b0a91f452d20 (patch)
tree54ff6981852c64594e5f0c8ac01af29d6da56a5e /sdk/sdk.go
parent20bacabe0bb0b1a13a0e614feb8798255b1c1fa8 (diff)
Add a nice install paths for module SDKs and exports.
Following how NDK also creates its own install path. Bug: 142935992 Test: cc_sdk_test.go, java_sdk_test.go Change-Id: I98a3656903f37f6d7c90e6cf609431b2461a6161
Diffstat (limited to 'sdk/sdk.go')
-rw-r--r--sdk/sdk.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdk/sdk.go b/sdk/sdk.go
index 14e44bfb4..db715757d 100644
--- a/sdk/sdk.go
+++ b/sdk/sdk.go
@@ -281,7 +281,9 @@ func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
// Generate the snapshot from the member info.
- s.snapshotFile = android.OptionalPathForPath(s.buildSnapshot(ctx, sdkVariants))
+ p := s.buildSnapshot(ctx, sdkVariants)
+ s.snapshotFile = android.OptionalPathForPath(p)
+ ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), s.Name()+"-current.zip", p)
}
}