Merge "Do not add dependencies from disabled sdk variants to its members" am: 1c1c6ab46b
Change-Id: I352ae417ed60378f205f9c2358e63699f512a27b
This commit is contained in:
commit
63f0e96c10
1 changed files with 6 additions and 4 deletions
10
sdk/sdk.go
10
sdk/sdk.go
|
@ -320,10 +320,12 @@ func (t sdkMemberVersionedDepTag) ExcludeFromVisibilityEnforcement() {}
|
||||||
// Step 1: create dependencies from an SDK module to its members.
|
// Step 1: create dependencies from an SDK module to its members.
|
||||||
func memberMutator(mctx android.BottomUpMutatorContext) {
|
func memberMutator(mctx android.BottomUpMutatorContext) {
|
||||||
if s, ok := mctx.Module().(*sdk); ok {
|
if s, ok := mctx.Module().(*sdk); ok {
|
||||||
for _, memberListProperty := range s.memberListProperties() {
|
if s.Enabled() {
|
||||||
names := memberListProperty.getter(s.dynamicMemberTypeListProperties)
|
for _, memberListProperty := range s.memberListProperties() {
|
||||||
tag := memberListProperty.dependencyTag
|
names := memberListProperty.getter(s.dynamicMemberTypeListProperties)
|
||||||
memberListProperty.memberType.AddDependencies(mctx, tag, names)
|
tag := memberListProperty.dependencyTag
|
||||||
|
memberListProperty.memberType.AddDependencies(mctx, tag, names)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue