From b8f7fde4bdfba5a65ef5a88265fdb79403e8a699 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 20 Mar 2017 14:07:47 -0700 Subject: Add LLNDK stub libraries for the VNDK The stub libraries are the same as the (equivalent version) NDK, but they also contain symbols tagged with 'vndk'. Except there are none of those in Bionic currently. For headers, the LLNDK/VNDK isn't using a sysroot like the NDK. Nor is it hardcoding an explicit source path list like the platform. Instead it runs the bionic/libc/include directory through versioner like the NDK, then exports those generated headers and the kernel headers from the stub library like any other exported header. Except it uses -isystem instead of -I due to export_headers_as_system. Test: aosp_arm; m -j Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j Test: Inspect out/soong/build.ninja before/after (w/o vndk) Change-Id: Ief58a73907a83053b408b1d4b62999cba470d61c --- libdl/Android.bp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdl') diff --git a/libdl/Android.bp b/libdl/Android.bp index 5b67e3881..8c6b47e69 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp @@ -124,3 +124,8 @@ ndk_library { symbol_file: "libdl.map.txt", first_version: "9", } + +llndk_library { + name: "libdl.llndk", + symbol_file: "libdl.map.txt", +} -- cgit v1.2.3