platform_device_xiaomi_sm84.../sensors/Android.bp
Arian b9ef44eff2 sm8450-common: sensors: Introduce LightNotifier and use libssccalapi@2.0
Change-Id: Iec11aa1a8ccc13db5d30cc6fa52e4b10d255c706
2024-08-12 10:24:41 +02:00

79 lines
1.6 KiB
Text

//
// Copyright (C) 2024 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
soong_config_module_type {
name: "xiaomi_sm8450_sensor_notifier",
module_type: "cc_defaults",
config_namespace: "xiaomiSm8450SensorVars",
value_variables: ["extensionLibs"],
properties: [
"whole_static_libs",
],
}
xiaomi_sm8450_sensor_notifier {
name: "xiaomi_sm8450_sensor_notifier_defaults",
soong_config_variables: {
extensionLibs: {
whole_static_libs: ["%s"],
},
},
}
cc_library_headers {
name: "xiaomi_sm8450_sensor_notifier_headers",
export_include_dirs: ["include"],
vendor: true,
}
cc_binary {
name: "sensor-notifier",
defaults: [
"xiaomi_sm8450_sensor_notifier_defaults",
],
vendor: true,
init_rc: ["sensor-notifier.rc"],
srcs: [
"main.cpp",
"notifiers/AodNotifier.cpp",
"notifiers/LightNotifier.cpp",
"notifiers/NonUiNotifier.cpp",
"SensorNotifier.cpp",
"utils/SensorNotifierUtils.cpp",
"utils/SscCalApiWrapper.cpp",
],
shared_libs: [
"libbase",
"libhidlbase",
"libutils",
"android.frameworks.sensorservice@1.0",
],
header_libs: [
"generated_kernel_headers",
"xiaomi_sm8450_sensor_notifier_headers",
],
}
cc_library_static {
name: "libsensor-notifier-ext",
vendor: true,
srcs: [
"SensorNotifierExt.cpp",
],
shared_libs: [
"android.frameworks.sensorservice@1.0",
],
header_libs: [
"xiaomi_sm8450_sensor_notifier_headers",
],
}