Fix override_android_app dependency issues.

This change fixes an issue where an android_test could not depened on an
override_android_app or an android_app overridden by one by moving all
override processing to post-deps and forwarding incoming dependencies on
override_android_apps to base android_app modules

Fixes: 132447700
Test: app_test.go
Change-Id: I4ac593be661f541f5ea9823ef97373bee4b186f9
This commit is contained in:
Jaewoong Jung
2019-05-10 15:16:29 -07:00
parent bc975e8b89
commit b639a6adb2
5 changed files with 90 additions and 10 deletions

View File

@@ -77,7 +77,6 @@ var preArch = []RegisterMutatorFunc{
RegisterNamespaceMutator,
RegisterPrebuiltsPreArchMutators,
RegisterDefaultsPreArchMutators,
RegisterOverridePreArchMutators,
registerVisibilityRuleGatherer,
}
@@ -95,6 +94,7 @@ var postDeps = []RegisterMutatorFunc{
RegisterPrebuiltsPostDepsMutators,
registerVisibilityRuleEnforcer,
registerNeverallowMutator,
RegisterOverridePostDepsMutators,
}
func PreArchMutators(f RegisterMutatorFunc) {