summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Parth Sane <parthsane@google.com> 2024-07-04 13:31:21 +0000
committer Parth Sane <parthsane@google.com> 2024-07-18 13:50:20 +0000
commitc452eeecb59f7bc89fc3b1d65dc92d7d809727dd (patch)
tree55c2a0bf9db6b01018ba825016f1c42923045e5e /libs
parentfd474d7a857070905aeb40daa30387e9e6b7731f (diff)
Add build flag for libbinder client cache
Bug: 333854840 Test: N/A Flag: RELEASE_LIBBINDER_CLIENT_CACHE Change-Id: Ia07ef7926a1d80b3435ffcf7578ae82f9e3f68f2
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/Android.bp23
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index cdc7166f65..28215d3fbb 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -450,8 +450,31 @@ cc_library_shared {
],
}
+soong_config_module_type {
+ name: "libbinder_client_cache_config",
+ module_type: "cc_defaults",
+ config_namespace: "libbinder",
+ bool_variables: ["release_libbinder_client_cache"],
+ properties: [
+ "cflags",
+ ],
+}
+
+libbinder_client_cache_config {
+ name: "libbinder_client_cache_flag",
+ soong_config_variables: {
+ release_libbinder_client_cache: {
+ cflags: ["-DLIBBINDER_CLIENT_CACHE"],
+ conditions_default: {
+ cflags: ["-DNO_LIBBINDER_CLIENT_CACHE"],
+ },
+ },
+ },
+}
+
cc_defaults {
name: "libbinder_kernel_defaults",
+ defaults: ["libbinder_client_cache_flag"],
srcs: [
"BufferedTextOutput.cpp",
"BackendUnifiedServiceManager.cpp",