diff options
| author | 2019-03-04 22:33:56 -0800 | |
|---|---|---|
| committer | 2019-03-07 18:36:24 +0000 | |
| commit | 1b48842a4b83ba6234d26ff4c77a0884f5008f62 (patch) | |
| tree | 02cd5ff6fd92a0fbe9de3a5fe34542b75dfbd783 /android/testing.go | |
| parent | 1361449710eaa5ca4bd0acf01489ae0260d768b6 (diff) | |
Add path properties mutator
Add a mutator pass after DepsMutator that visits every property
struct in every module looking for properties that have a tag
`android:"path"`, and automatically add a SourceDepTag dependency
on any module references (":module-name") found. Uses a cache to
store the mapping of property struct type to locations of
properties with the tag.
Test: android/path_properties_test.go
Change-Id: I38c0497843dde4890e9342c3a6f0b402c0720742
Diffstat (limited to 'android/testing.go')
| -rw-r--r-- | android/testing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go index b4008af37..7f443a395 100644 --- a/android/testing.go +++ b/android/testing.go @@ -37,6 +37,8 @@ func NewTestContext() *TestContext { ctx.SetNameInterface(nameResolver) + ctx.postDeps = append(ctx.postDeps, registerPathDepsMutator) + return ctx } |