diff options
author | 2020-02-27 13:45:35 +0000 | |
---|---|---|
committer | 2020-03-04 14:20:46 +0000 | |
commit | 1228e9c0ba03dc59a8f68842a330b0a91f452d20 (patch) | |
tree | 54ff6981852c64594e5f0c8ac01af29d6da56a5e /sdk/sdk.go | |
parent | 20bacabe0bb0b1a13a0e614feb8798255b1c1fa8 (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.go | 4 |
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) } } |