summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-13 15:19:49 -0800
committer Colin Cross <ccross@android.com> 2023-12-14 16:12:20 -0800
commit402130276c75fd967dcae894bd363edc3050d205 (patch)
treeaf5ac63244065c4438c95f14667fde8f329cbd2b /sh
parentbc7d76cca2a9eead34b45bcdf333eecdb4152879 (diff)
Convert SetProvider to generic providers API
Convert all of the callers of SetProvider to use the type-safe android.SetProvider API. Bug: 316410648 Test: builds Change-Id: If58f4b5355264ddab2045bc3591a4eac19cd58fc
Diffstat (limited to 'sh')
-rw-r--r--sh/sh_binary.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go
index 1e27375d1..97adeed86 100644
--- a/sh/sh_binary.go
+++ b/sh/sh_binary.go
@@ -270,7 +270,7 @@ func (s *ShBinary) generateAndroidBuildActions(ctx android.ModuleContext) {
Output: s.outputFilePath,
Input: s.sourceFilePath,
})
- ctx.SetProvider(blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: []string{s.sourceFilePath.String()}})
+ android.SetProvider(ctx, blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: []string{s.sourceFilePath.String()}})
}
func (s *ShBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
@@ -457,7 +457,7 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
installedData := ctx.InstallTestData(s.installDir, s.data)
s.installedFile = ctx.InstallExecutable(s.installDir, s.outputFilePath.Base(), s.outputFilePath, installedData...)
- ctx.SetProvider(testing.TestModuleProviderKey, testing.TestModuleProviderData{})
+ android.SetProvider(ctx, testing.TestModuleProviderKey, testing.TestModuleProviderData{})
}
func (s *ShTest) InstallInData() bool {