summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKen Chen <cken@google.com>2022-04-20 15:13:31 +0800
committerKen Chen <cken@google.com>2022-04-21 08:19:15 +0800
commita5e109fee2b3cd8e7a751c02bd572c3953d4ca3c (patch)
tree94d9d1bab75b837dfb5f2ef5592f60a39ce5ca61 /common
parent6df5cec92dae8cd43b3b229a6a056163ac571079 (diff)
downloadnet-a5e109fee2b3cd8e7a751c02bd572c3953d4ca3c.tar.gz
Add wrappers for the latest stable version of netd_aidl_interface-V*-cpp
Currently, we need to update linked AILD interface in several places when we freeze a new interface version. Otherwise, it will have multiple versions of an AIDL lib and waste space/memory (b/220392885). To avoid manually update all AILD interface users every time, adds wrappers for the latest version of netd_aidl_interface-V*-cpp. The reason to use cc_default as a wrapper instead of cc_library is that it doesn't create an extra .so. Bug: 220392885 Test: TH Change-Id: I281b2e5f7d04fadfae0ede4db7565e9f222dbe95
Diffstat (limited to 'common')
-rw-r--r--common/netd/Android.bp11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/netd/Android.bp b/common/netd/Android.bp
index 85a756c7..6bc7c014 100644
--- a/common/netd/Android.bp
+++ b/common/netd/Android.bp
@@ -53,6 +53,7 @@ cc_library_static {
min_sdk_version: "29",
}
+// TODO: delete this one when AOSP is no longer auto-merge to git_sc-mainline-prod.
cc_library_static {
name: "netd_aidl_interface-lateststable-cpp",
whole_static_libs: [
@@ -60,6 +61,16 @@ cc_library_static {
],
}
+cc_defaults {
+ name: "netd_aidl_interface_lateststable_cpp_static",
+ static_libs: ["netd_aidl_interface-V8-cpp"],
+}
+
+cc_defaults {
+ name: "netd_aidl_interface_lateststable_cpp_shared",
+ shared_libs: ["netd_aidl_interface-V8-cpp"],
+}
+
aidl_interface {
name: "netd_aidl_interface",
local_include_dir: "binder",