f351174107
This commit adds `extends: "name"` property and provides basic support to VNDK extensions. This is the simplest example: ``` cc_library { name: "libvndk", vendor_available: true, vndk { enabled: true, }, } cc_library { name: "libvndk_ext", vendor: true, vndk: { enabled: true, extends: "libvndk", }, } ``` A vndk extension library must extend an existing vndk library which has `vendor_available: true`. These two libraries must have the same `support_system_process` property. VNDK-ext libraries are installed to `/vendor/lib[64]/vndk` and VNDK-SP-ext libraries are installed to `/vendor/lib[64]/vndk-sp` by default. If there is a matching abi-dumps in `prebuilts/abi-dumps`, `header-abi-diff` will be invoked to check for ABI breakages. Bug: 38340960 Test: lunch aosp_walleye-userdebug && make -j8 # runs unit tests Test: lunch aosp_arm-userdebug && make -j8 # build a target w/o VNDK Test: Create a lsdump for a vndk lib, add an exported API to vndk lib, and build fails as expected. Test: Create a lsdump for a vndk lib, create an vndk extension lib with extra API, and build succeeds as expected. Test: Create libutils_ext, add an extra function to libutils_ext, and call it from a HIDL service. Change-Id: Iba90e08848ee99814405457f047321e6b52b2df0 |
||
---|---|---|
.. | ||
config | ||
androidmk.go | ||
binary.go | ||
builder.go | ||
cc.go | ||
cc_test.go | ||
check.go | ||
cmakelists.go | ||
compiler.go | ||
coverage.go | ||
gen.go | ||
gen_stub_libs.py | ||
gen_test.go | ||
genrule.go | ||
installer.go | ||
kernel_headers.go | ||
library.go | ||
library_test.go | ||
linker.go | ||
llndk_library.go | ||
lto.go | ||
makevars.go | ||
ndk_headers.go | ||
ndk_library.go | ||
ndk_prebuilt.go | ||
ndk_sysroot.go | ||
object.go | ||
pgo.go | ||
prebuilt.go | ||
proto.go | ||
pylintrc | ||
relocation_packer.go | ||
rs.go | ||
sabi.go | ||
sanitize.go | ||
stl.go | ||
strip.go | ||
test.go | ||
test_data_test.go | ||
test_gen_stub_libs.py | ||
tidy.go | ||
toolchain_library.go | ||
util.go | ||
vndk.go | ||
vndk_prebuilt.go |