From 27f13787e1e83dfe678a0d378b73d0d59c817b2c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 19 Oct 2020 13:37:57 -0700 Subject: [PATCH] Make the connection between implementation and llndk_library explicit Instead of assuming a module with the .llndk suffix exists, add an llndk_stubs property to every cc_library module that has a corresponding llndk_library. Also rename the llndk_library to have an explicit .llndk suffix. Bug: 170784825 Test: no changes to build.ninja (excluding comments) or Android-${TARGET_PRODUCT}.mk Change-Id: I5f0b9d92162b532b1e6e8752ac3e130759cde08c --- native/android/Android.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/android/Android.bp b/native/android/Android.bp index 797d3fd8c2ff7..02e1ebe05b028 100644 --- a/native/android/Android.bp +++ b/native/android/Android.bp @@ -105,6 +105,7 @@ cc_library_shared { cc_library_shared { name: "libandroid_net", defaults: ["libandroid_defaults"], + llndk_stubs: "libandroid_net.llndk", srcs: ["net.c"], shared_libs: ["libnetd_client"], @@ -113,7 +114,7 @@ cc_library_shared { } llndk_library { - name: "libandroid_net", + name: "libandroid_net.llndk", export_include_dirs: ["include"], symbol_file: "libandroid_net.map.txt", unversioned: true,