Skip to content

Commit f53f1f7

Browse files
parthsaneGerrit Code Review
authored andcommitted
Merge "Add build flag for libbinder client cache" into main
2 parents 5c392a9 + c452eee commit f53f1f7

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

libs/binder/Android.bp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,31 @@ cc_library_shared {
450450
],
451451
}
452452

453+
soong_config_module_type {
454+
name: "libbinder_client_cache_config",
455+
module_type: "cc_defaults",
456+
config_namespace: "libbinder",
457+
bool_variables: ["release_libbinder_client_cache"],
458+
properties: [
459+
"cflags",
460+
],
461+
}
462+
463+
libbinder_client_cache_config {
464+
name: "libbinder_client_cache_flag",
465+
soong_config_variables: {
466+
release_libbinder_client_cache: {
467+
cflags: ["-DLIBBINDER_CLIENT_CACHE"],
468+
conditions_default: {
469+
cflags: ["-DNO_LIBBINDER_CLIENT_CACHE"],
470+
},
471+
},
472+
},
473+
}
474+
453475
cc_defaults {
454476
name: "libbinder_kernel_defaults",
477+
defaults: ["libbinder_client_cache_flag"],
455478
srcs: [
456479
"BufferedTextOutput.cpp",
457480
"BackendUnifiedServiceManager.cpp",

0 commit comments

Comments
 (0)