aboutsummaryrefslogtreecommitdiff
path: root/cc/sabi.go
diff options
context:
space:
mode:
authorJustin Yun <justinyun@google.com>2017-06-23 19:24:43 +0900
committerJustin Yun <justinyun@google.com>2017-07-18 14:48:29 +0900
commit8effde47def8609b08be27f75d9f24f8b943e3ed (patch)
tree223d67bd1a21ad363ba8eec952cbb1b24cc85b83 /cc/sabi.go
parentda4a7257b5b4c4fd41b8e8e084713e3e4f20187b (diff)
downloadsoong-8effde47def8609b08be27f75d9f24f8b943e3ed.tar.gz
Install VNDK libs in /system instead of /vendor
If BOARD_VNDK_VERSION is set, and a module is set to `vendor_available: true` it is installed in /system and /vendor. However, if the module is a VNDK library, it must be installed at `/system/${LIB}/vndk` instead of /vendor/${LIB}. For those modules, need following to set. vendor_available: true, vndk: { enabled: true, support_system_process: true, }, `support_system_process` is optional to define. If it is defined to true, the module is regarded as vndk-sp. link-type check for VNDK modules is added to make sure that VNDK modules only link to other VNDK shared libraries or LL-NDKs. move the ABI checks to VNDK from all of vendor_available. Bug: 38304436 Test: attempt to compile with BOARD_VNDK_VERSION:=current Test: Use `vendor_available_vndk: true` for VNDK modules and compile with BOARD_VNDK_VERSION:=current Change-Id: I409268e0b7f05a9d01697bf9f9f4726b5aac631f
Diffstat (limited to 'cc/sabi.go')
-rw-r--r--cc/sabi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/sabi.go b/cc/sabi.go
index 9aff738b1..318d19835 100644
--- a/cc/sabi.go
+++ b/cc/sabi.go
@@ -72,7 +72,7 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags {
func sabiDepsMutator(mctx android.TopDownMutatorContext) {
if c, ok := mctx.Module().(*Module); ok &&
- (Bool(c.Properties.Vendor_available) || (inList(c.Name(), config.LLndkLibraries())) ||
+ (c.isVndk() || inList(c.Name(), config.LLndkLibraries()) ||
(c.sabi != nil && c.sabi.Properties.CreateSAbiDumps)) {
mctx.VisitDirectDeps(func(m blueprint.Module) {
tag := mctx.OtherModuleDependencyTag(m)