Merge "APEX should require base module of stub libraries" am: 6345dfde49 am: f8ae216e9c

Change-Id: Id5c8cb5aa416a3e0cf927067fd2bc2fbf6639128
This commit is contained in:
Yo Chiang 2020-05-07 06:46:05 +00:00 committed by Automerger Merge Worker
commit c746c894b3
1 changed files with 2 additions and 2 deletions

View File

@ -2101,8 +2101,8 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
//
// Always include if we are a host-apex however since those won't have any
// system libraries.
if !android.DirectlyInAnyApex(ctx, cc.Name()) && !android.InList(cc.Name(), a.requiredDeps) {
a.requiredDeps = append(a.requiredDeps, cc.Name())
if !android.DirectlyInAnyApex(ctx, cc.Name()) && !android.InList(cc.BaseModuleName(), a.requiredDeps) {
a.requiredDeps = append(a.requiredDeps, cc.BaseModuleName())
}
requireNativeLibs = append(requireNativeLibs, cc.OutputFile().Path().Base())
// Don't track further