Soong: check if lndk is needed for apex build

This is to fix the unnecessary dependencies inclusion
when building apex modules.

Test: Build
Bug: 186306595
Change-Id: I1f3bbdb0a1f97a8338b45ca29c92acf9b20eadd3
This commit is contained in:
Zhijun He 2021-04-24 10:47:08 -07:00
parent 17ccf26748
commit ec2858799b
1 changed files with 3 additions and 0 deletions

View File

@ -3230,6 +3230,9 @@ func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
return false
}
}
if cc.IsLlndk() {
return false
}
if isLibDepTag && c.static() && libDepTag.shared() {
// shared_lib dependency from a static lib is considered as crossing
// the APEX boundary because the dependency doesn't actually is