2024-06-02 03:29:32 +02:00
|
|
|
//
|
|
|
|
// Copyright (C) 2024 The LineageOS Project
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
2024-07-27 15:11:24 +02:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
|
2024-06-02 03:29:32 +02:00
|
|
|
cc_binary {
|
2024-07-27 15:11:24 +02:00
|
|
|
name: "sensor-notifier",
|
|
|
|
defaults: [
|
|
|
|
"xiaomi_sm8450_sensor_notifier_defaults",
|
|
|
|
],
|
2024-06-02 03:29:32 +02:00
|
|
|
vendor: true,
|
|
|
|
|
2024-07-27 15:11:24 +02:00
|
|
|
init_rc: ["sensor-notifier.rc"],
|
2024-06-02 03:29:32 +02:00
|
|
|
|
|
|
|
srcs: [
|
2024-07-27 15:11:24 +02:00
|
|
|
"main.cpp",
|
2024-07-27 16:06:00 +02:00
|
|
|
"notifiers/AodNotifier.cpp",
|
2024-07-28 17:37:41 +02:00
|
|
|
"notifiers/LightNotifier.cpp",
|
2024-07-27 15:11:24 +02:00
|
|
|
"notifiers/NonUiNotifier.cpp",
|
|
|
|
"SensorNotifier.cpp",
|
|
|
|
"utils/SensorNotifierUtils.cpp",
|
2024-07-28 17:37:41 +02:00
|
|
|
"utils/SscCalApiWrapper.cpp",
|
2024-06-02 03:29:32 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libhidlbase",
|
|
|
|
"libutils",
|
|
|
|
"android.frameworks.sensorservice@1.0",
|
|
|
|
],
|
2024-07-25 01:10:23 +02:00
|
|
|
|
|
|
|
header_libs: [
|
|
|
|
"generated_kernel_headers",
|
2024-07-27 15:11:24 +02:00
|
|
|
"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",
|
2024-07-25 01:10:23 +02:00
|
|
|
],
|
2024-06-02 03:29:32 +02:00
|
|
|
}
|