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
diff --git a/cc/cc.go b/cc/cc.go
index c5552d6..a0ad0d6 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -3230,6 +3230,9 @@
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