platform_build_soong/cc
Jiyong Park 82e2bf3b7f 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
2017-10-10 19:38:06 +09:00
..
config Merge "Use correct flags for host-side assembly" 2017-10-06 11:48:24 +00:00
androidmk.go vendor_available:false hides a lib from vendors 2017-10-10 19:38:06 +09:00
binary.go Add PGO support to soong 2017-09-21 12:37:19 -07:00
builder.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
cc.go vendor_available:false hides a lib from vendors 2017-10-10 19:38:06 +09:00
cc_test.go Dedup exported flags from dependencies 2017-05-17 14:22:22 -07:00
check.go Ban --coverage now that we have native coverage 2017-02-14 13:05:48 -08:00
cmakelists.go Run gofmt 2017-05-09 13:44:49 -07:00
compiler.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
coverage.go Refactor factories 2017-06-30 21:08:36 +00:00
gen.go Add support for .proto files in java modules 2017-10-03 10:25:15 -07:00
gen_stub_libs.py Add support for weak symbols in the NDK stubs. 2017-07-28 11:00:22 -07:00
genrule.go Add cc_genrule 2017-09-18 23:33:25 -07:00
installer.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
kernel_headers.go Fix kernel_headers module registration 2017-07-10 12:30:35 -07:00
library.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
linker.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
llndk_library.go vendor_available:false hides a lib from vendors 2017-10-10 19:38:06 +09:00
lto.go Add support for thin LTO 2017-09-01 14:21:44 +08:00
makevars.go vendor_available:false hides a lib from vendors 2017-10-10 19:38:06 +09:00
ndk_headers.go Make binaries executable 2017-08-31 13:48:52 -07:00
ndk_library.go Make binaries executable 2017-08-31 13:48:52 -07:00
ndk_prebuilt.go Refactor factories 2017-06-30 21:08:36 +00:00
ndk_sysroot.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
object.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
pgo.go Check if "instrumentation" and "sampling" are set together 2017-10-05 10:33:57 -07:00
prebuilt.go Make binaries executable 2017-08-31 13:48:52 -07:00
proto.go Add support for .proto files in java modules 2017-10-03 10:25:15 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
relocation_packer.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
rs.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
sabi.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
sanitize.go Revert "Some clarifications in preparation to automatically order linker dependencies" 2017-10-04 21:07:42 +00:00
stl.go Add -lm to the default libs for Linux & Darwin 2017-09-26 20:25:09 -07:00
strip.go Separate cc.go 2016-07-29 15:17:58 -07:00
test.go Add -lm to the default libs for Linux & Darwin 2017-09-26 20:25:09 -07:00
test_data_test.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
test_gen_stub_libs.py Add support for weak symbols in the NDK stubs. 2017-07-28 11:00:22 -07:00
tidy.go soong: add __clang_analyzer__ to clang-tidy 2017-05-04 01:19:02 +00:00
toolchain_library.go Refactor factories 2017-06-30 21:08:36 +00:00
util.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00
vndk.go vendor_available:false hides a lib from vendors 2017-10-10 19:38:06 +09:00