Don't add dependencies on modules referenced in unused arch variants

When extracting dependencies from properties tagged with
`android:"path"`, only look at the general property structs
and not the arch-specific ones.  The necessary arch-specific
values will be appended into the general property structs.

Fixes: 128377112
Test: path_properties_test.go
Change-Id: I35e35555d5b15473229a7458fcfc2c7dacaec889
This commit is contained in:
Colin Cross
2019-03-18 12:24:29 -07:00
parent cd2e52870a
commit a3a97415d3
3 changed files with 24 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ func pathDepsMutator(ctx BottomUpMutatorContext) {
return
}
props := m.base().customizableProperties
props := m.base().generalProperties
for _, ps := range props {
pathProperties := pathPropertiesForPropertyStruct(ctx, ps)