hidl: sensors: 1.0: Directly build convert.cpp with the impl

* Since we'll only use it here, we don't need to export it as a separate
  module

Change-Id: Ia7056fe6462cbd624d89db62fd239b6709862198
This commit is contained in:
Sebastiano Barezzi 2023-04-13 16:43:07 +02:00
parent 287f8d49e4
commit 2e85d44338
No known key found for this signature in database
GPG Key ID: 763BD3AE91A7A13F

View File

@ -8,7 +8,10 @@ cc_library_shared {
defaults: ["hidl_defaults"],
proprietary: true,
relative_install_path: "hw",
srcs: ["Sensors.cpp"],
srcs: [
"Sensors.cpp",
"convert.cpp",
],
shared_libs: [
"liblog",
"libcutils",
@ -19,29 +22,7 @@ cc_library_shared {
"android.hardware.sensors@1.0",
],
static_libs: [
"android.hardware.sensors@1.0-convert",
"multihal",
],
local_include_dirs: ["include/sensors"],
}
cc_library_static {
name: "android.hardware.sensors@1.0-convert",
vendor_available: true,
defaults: ["hidl_defaults"],
srcs: ["convert.cpp"],
export_include_dirs: ["include"],
shared_libs: [
"liblog",
"libcutils",
"libhardware",
"libbase",
"libutils",
"libhidlbase",
"android.hardware.sensors@1.0",
],
local_include_dirs: ["include/sensors"],
export_shared_lib_headers: [
"libhardware",
],
}