Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec285879 authored by Zhijun He's avatar Zhijun He
Browse files

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
parent 17ccf267
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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