Android.bp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // Copyright (C) 2024 The LineageOS Project
  3. //
  4. // SPDX-License-Identifier: Apache-2.0
  5. //
  6. soong_config_module_type {
  7. name: "xiaomi_sm8450_sensor_notifier",
  8. module_type: "cc_defaults",
  9. config_namespace: "xiaomiSm8450SensorVars",
  10. value_variables: ["extensionLibs"],
  11. properties: [
  12. "whole_static_libs",
  13. ],
  14. }
  15. xiaomi_sm8450_sensor_notifier {
  16. name: "xiaomi_sm8450_sensor_notifier_defaults",
  17. soong_config_variables: {
  18. extensionLibs: {
  19. whole_static_libs: ["%s"],
  20. },
  21. },
  22. }
  23. cc_library_headers {
  24. name: "xiaomi_sm8450_sensor_notifier_headers",
  25. export_include_dirs: ["include"],
  26. vendor: true,
  27. }
  28. cc_binary {
  29. name: "sensor-notifier",
  30. defaults: [
  31. "xiaomi_sm8450_sensor_notifier_defaults",
  32. ],
  33. vendor: true,
  34. init_rc: ["sensor-notifier.rc"],
  35. srcs: [
  36. "main.cpp",
  37. "notifiers/AodNotifier.cpp",
  38. "notifiers/LightNotifier.cpp",
  39. "notifiers/NonUiNotifier.cpp",
  40. "SensorNotifier.cpp",
  41. "utils/SensorNotifierUtils.cpp",
  42. "utils/SscCalApiWrapper.cpp",
  43. ],
  44. shared_libs: [
  45. "libbase",
  46. "libhidlbase",
  47. "libutils",
  48. "[email protected]",
  49. ],
  50. header_libs: [
  51. "generated_kernel_headers",
  52. "xiaomi_sm8450_sensor_notifier_headers",
  53. ],
  54. }
  55. cc_library_static {
  56. name: "libsensor-notifier-ext",
  57. vendor: true,
  58. srcs: [
  59. "SensorNotifierExt.cpp",
  60. ],
  61. shared_libs: [
  62. "[email protected]",
  63. ],
  64. header_libs: [
  65. "xiaomi_sm8450_sensor_notifier_headers",
  66. ],
  67. }