mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Now that libhealthd is no longer recognized as a HAL_STATIC_LIBRARY, vendors must define their own android.hardware.health@1.0-impl module. Add a helper and README.md for them to explain this transition. Test: builds Bug: 127677771 Change-Id: I65c162e7b5caed93c39a4a1cb6a2893fbb25724b
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
cc_library_static {
|
|
name: "android.hardware.health@1.0-convert",
|
|
vendor_available: true,
|
|
recovery_available: true,
|
|
srcs: ["convert.cpp"],
|
|
include_dirs: [
|
|
"system/core/base/include",
|
|
],
|
|
header_libs: ["libhealthd_headers"],
|
|
export_header_lib_headers: ["libhealthd_headers"],
|
|
export_include_dirs: ["include"],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libutils",
|
|
"android.hardware.health@1.0",
|
|
],
|
|
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "android.hardware.health@1.0-impl-helper",
|
|
vendor: true,
|
|
srcs: ["Health.cpp"],
|
|
|
|
header_libs: [
|
|
"libbase_headers",
|
|
"libhealthd_headers",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
"android.hardware.health@1.0",
|
|
],
|
|
|
|
static_libs: [
|
|
"android.hardware.health@1.0-convert",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "android.hardware.health@1.0-impl",
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
|
|
static_libs: [
|
|
"android.hardware.health@1.0-impl-helper",
|
|
"android.hardware.health@1.0-convert",
|
|
"libhealthd.default",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.health@1.0-service",
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
init_rc: ["android.hardware.health@1.0-service.rc"],
|
|
srcs: ["HealthService.cpp"],
|
|
|
|
shared_libs: [
|
|
"liblog",
|
|
"libcutils",
|
|
"libdl",
|
|
"libbase",
|
|
"libutils",
|
|
"libhidlbase",
|
|
"android.hardware.health@1.0",
|
|
],
|
|
}
|