Merge "Disable stub validation when WITHOUT_CHECK_API=true
" into main am: e288043ee7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2935430 Change-Id: Ia0a4e03608b56eef00eb1585da26213bee949e27 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
3691588436
1 changed files with 1 additions and 0 deletions
|
@ -1837,6 +1837,7 @@ func (al *ApiLibrary) extractApiSrcs(ctx android.ModuleContext, rule *android.Ru
|
|||
func (al *ApiLibrary) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
apiContributions := al.properties.Api_contributions
|
||||
addValidations := !ctx.Config().IsEnvTrue("DISABLE_STUB_VALIDATION") &&
|
||||
!ctx.Config().IsEnvTrue("WITHOUT_CHECK_API") &&
|
||||
proptools.BoolDefault(al.properties.Enable_validation, true)
|
||||
for _, apiContributionName := range apiContributions {
|
||||
ctx.AddDependency(ctx.Module(), javaApiContributionTag, apiContributionName)
|
||||
|
|
Loading…
Reference in a new issue