Add no_apex check for static library
If no_apex module is static library, this module is not included to filesInfo. So add a check tat the static library is no_apex among indirect dependencies. Bug: 139016109 Test: m -j Change-Id: I46ddf099715aea0e088027a1141e282969cef0e1
This commit is contained in:
@@ -984,6 +984,8 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
}
|
||||
} else if am.CanHaveApexVariants() && am.IsInstallableToApex() {
|
||||
ctx.ModuleErrorf("unexpected tag %q for indirect dependency %q", depTag, depName)
|
||||
} else if am.NoApex() && !android.InList(depName, whitelistNoApex[ctx.ModuleName()]) {
|
||||
ctx.ModuleErrorf("tries to include no_apex module %s", depName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user