Lineage properties support module references.

They should have had `android:"path"` tags attached so that users can
point them to filegroup modules.

Test: app_test.go & app_import_test.go
Bug: 182175153
Change-Id: I5580408488ffe5fc12c869cbfb7a468713dcbc96
This commit is contained in:
Jaewoong Jung
2021-03-09 15:02:31 -08:00
parent 05ebca4f7f
commit 1c1b6e6d95
6 changed files with 73 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ type pathDepsMutatorTestModule struct {
Bar []string `android:"path,arch_variant"`
Baz *string `android:"path"`
Qux string
V *struct {
W string `android:"path"`
}
}
// A second property struct with a duplicate property name
@@ -94,8 +97,11 @@ func TestPathDepsMutator(t *testing.T) {
],
},
],
v: {
w: ":w",
},
}`,
deps: []string{"a", "b", "c", "x", "y", "z"},
deps: []string{"a", "b", "c", "w", "x", "y", "z"},
},
{
name: "arch variant",
@@ -135,6 +141,10 @@ func TestPathDepsMutator(t *testing.T) {
name: "d",
}
filegroup {
name: "w",
}
filegroup {
name: "x",
}