diff options
author | 2021-07-14 10:29:36 +0100 | |
---|---|---|
committer | 2021-08-31 17:07:07 +0100 | |
commit | 296701e35b96c232bc4c0af69cfe0e367fd54ef4 (patch) | |
tree | 8315ccc4bc1ffad392779a4efc2b08336f31cd9c /android/sdk.go | |
parent | 45de13f93dc9c859fd763b320a80fb6d740c0a62 (diff) |
Refactor SdkMemberType.AddDependencies()
Replaces the BottomUpMutatorContext parameter with a new
SdkDependencyContext type that extends BottomUpMutatorContext. This is
to allow the sdk to pass additional information to the implementations
of that method to allow the behavior to be more finely tuned.
Bug: 195754365
Test: m nothing
Change-Id: I69c6d2c523934eb67d7a7e6c55c241e9b8a81773
Diffstat (limited to 'android/sdk.go')
-rw-r--r-- | android/sdk.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/android/sdk.go b/android/sdk.go index 5f4b387c2..cf434b01e 100644 --- a/android/sdk.go +++ b/android/sdk.go @@ -475,7 +475,7 @@ type SdkMemberType interface { // properties. The dependencies must be added with the supplied tag. // // The BottomUpMutatorContext provided is for the SDK module. - AddDependencies(mctx BottomUpMutatorContext, dependencyTag blueprint.DependencyTag, names []string) + AddDependencies(ctx SdkDependencyContext, dependencyTag blueprint.DependencyTag, names []string) // Return true if the supplied module is an instance of this member type. // @@ -529,6 +529,12 @@ type SdkMemberType interface { CreateVariantPropertiesStruct() SdkMemberProperties } +// SdkDependencyContext provides access to information needed by the SdkMemberType.AddDependencies() +// implementations. +type SdkDependencyContext interface { + BottomUpMutatorContext +} + // Base type for SdkMemberType implementations. type SdkMemberTypeBase struct { PropertyName string |