Merge "Introduce libutils_binder_sdk" into main

This commit is contained in:
Tomasz Wasilczyk 2023-12-09 03:43:07 +00:00 committed by Gerrit Code Review
commit 6635431dc1
2 changed files with 37 additions and 7 deletions

View file

@ -56,7 +56,7 @@ cc_library_headers {
}
cc_defaults {
name: "libutils_defaults",
name: "libutils_defaults_nodeps",
vendor_available: true,
product_available: true,
recovery_available: true,
@ -69,10 +69,6 @@ cc_defaults {
"-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
],
shared_libs: [
"libcutils",
"liblog",
],
sanitize: {
misc_undefined: ["integer"],
},
@ -117,6 +113,18 @@ cc_defaults {
},
}
cc_defaults {
name: "libutils_defaults",
defaults: [
"libutils_defaults_nodeps",
],
shared_libs: [
"libcutils",
"liblog",
],
}
cc_defaults {
name: "libutils_impl_defaults",
defaults: [

View file

@ -3,9 +3,9 @@ package {
}
cc_defaults {
name: "libutils_binder_impl_defaults",
name: "libutils_binder_impl_defaults_nodeps",
defaults: [
"libutils_defaults",
"libutils_defaults_nodeps",
"apex-lowest-min-sdk-version",
],
native_bridge_supported: true,
@ -30,11 +30,33 @@ cc_defaults {
afdo: true,
}
cc_defaults {
name: "libutils_binder_impl_defaults",
defaults: [
"libutils_defaults",
"libutils_binder_impl_defaults_nodeps",
],
}
cc_library {
name: "libutils_binder",
defaults: ["libutils_binder_impl_defaults"],
}
cc_library_shared {
name: "libutils_binder_sdk",
defaults: ["libutils_binder_impl_defaults_nodeps"],
header_libs: [
"liblog_stub",
],
cflags: [
"-DANDROID_LOG_STUB_WEAK_PRINT",
"-DANDROID_UTILS_CALLSTACK_ENABLED=0",
],
}
cc_library {
name: "libutils_binder_test_compile",
defaults: ["libutils_binder_impl_defaults"],