aboutsummaryrefslogtreecommitdiffstats
path: root/cc/makevars.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-08-16 14:05:54 +0900
committerJiyong Park <jiyong@google.com>2017-10-10 19:38:06 +0900
commit82e2bf3b7f6888a114267c450ce4826947fb7ae3 (patch)
tree2f853bf248e258f46478255b33530f0ccee5af9c /cc/makevars.go
parentc7ba6a2e464d7cc99a0a764b651dd46389ef78b2 (diff)
downloadbuild_soong-82e2bf3b7f6888a114267c450ce4826947fb7ae3.tar.gz
build_soong-82e2bf3b7f6888a114267c450ce4826947fb7ae3.tar.bz2
build_soong-82e2bf3b7f6888a114267c450ce4826947fb7ae3.zip
vendor_available:false hides a lib from vendors
When a lib is explicitly marked as `vendor_available: false`, then it can't be directly depended by a vendor lib which is installed to /vendor partition. This is to hide some VNDK libs (including llndk) from vendors so that platform owners can have a freedom of modifying their ABI without breaking vendors. In addition, the list of the private libs are exported to the make world as VNDK_PRIVATE_LIBRARIES. Also, fixed a bug that allowed a vndk lib to link against to vendor library (or vendor variant of a system lib) if the lib is prebuilt. Bug: 64730695 Bug: 64994918 Test: Add `vendor_available: false` to libft2 and libcompiler_rt. Add the libs to shared_libs property of a vendor library in soong (i.e. libnbaio_mono). The build fails with the error message. Change-Id: Iab575db96bb4f6739a592f3fa0a75124296bea0c
Diffstat (limited to 'cc/makevars.go')
-rw-r--r--cc/makevars.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/makevars.go b/cc/makevars.go
index 2c6af707..295b4ac0 100644
--- a/cc/makevars.go
+++ b/cc/makevars.go
@@ -62,6 +62,7 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
ctx.Strict("VNDK_CORE_LIBRARIES", strings.Join(vndkCoreLibraries, " "))
ctx.Strict("VNDK_SAMEPROCESS_LIBRARIES", strings.Join(vndkSpLibraries, " "))
ctx.Strict("LLNDK_LIBRARIES", strings.Join(llndkLibraries, " "))
+ ctx.Strict("VNDK_PRIVATE_LIBRARIES", strings.Join(vndkPrivateLibraries, " "))
ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(asanCflags, " "))
ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS", strings.Join(asanLdflags, " "))