Android.bp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // Copyright (C) 2022 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. package {
  16. default_applicable_licenses: ["Android-Apache-2.0"],
  17. }
  18. cc_defaults {
  19. name: "android.hardware.vibrator-defaults.cs40l26-private-lynx",
  20. cflags: [
  21. "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)",
  22. "-DLOG_TAG=\"android.hardware.vibrator-cs40l26\"",
  23. ],
  24. shared_libs: [
  25. "libbinder",
  26. ],
  27. }
  28. cc_defaults {
  29. name: "VibratorHalCs40l26BinaryDefaultsPrivateLynx",
  30. defaults: [
  31. "PixelVibratorBinaryDefaultsPrivateLynx",
  32. "android.hardware.vibrator-defaults.cs40l26-private-lynx",
  33. ],
  34. include_dirs: [
  35. "external/tinyalsa/include",
  36. ],
  37. shared_libs: [
  38. "libcutils",
  39. "libtinyalsa",
  40. ],
  41. }
  42. cc_defaults {
  43. name: "VibratorHalCs40l26TestDefaultsPrivateLynx",
  44. defaults: [
  45. "PixelVibratorTestDefaultsPrivateLynx",
  46. "android.hardware.vibrator-defaults.cs40l26-private-lynx",
  47. ],
  48. static_libs: [
  49. "libtinyalsa",
  50. ],
  51. shared_libs: ["android.hardware.vibrator-impl.cs40l26-private-lynx"],
  52. }
  53. cc_library_shared {
  54. name: "libvibecapo_proto_lynx",
  55. vendor_available: true,
  56. owner: "google",
  57. srcs: [
  58. "proto/capo.proto",
  59. ],
  60. shared_libs: [
  61. "libprotobuf-cpp-full",
  62. ],
  63. export_include_dirs: [
  64. "inc",
  65. ],
  66. proto: {
  67. type: "lite",
  68. export_proto_headers: true,
  69. },
  70. }
  71. cc_library_shared {
  72. name: "android.hardware.vibrator-impl.cs40l26-private-lynx",
  73. defaults: ["VibratorHalCs40l26BinaryDefaultsPrivateLynx"],
  74. srcs: [
  75. "Vibrator.cpp",
  76. "CapoDetector.cpp",
  77. ],
  78. static_libs: [
  79. "chre_client",
  80. ],
  81. shared_libs: [
  82. "libvibecapo_proto_lynx",
  83. "libprotobuf-cpp-full",
  84. ],
  85. export_include_dirs: [
  86. ".",
  87. "inc",
  88. ],
  89. vendor_available: true,
  90. visibility: [":__subpackages__"],
  91. }
  92. cc_binary {
  93. name: "android.hardware.vibrator-service.cs40l26-private-lynx",
  94. defaults: ["VibratorHalCs40l26BinaryDefaultsPrivateLynx"],
  95. init_rc: ["android.hardware.vibrator-service.cs40l26-private-lynx.rc"],
  96. vintf_fragments: ["android.hardware.vibrator-service.cs40l26-private-lynx.xml"],
  97. srcs: ["service.cpp"],
  98. shared_libs: ["android.hardware.vibrator-impl.cs40l26-private-lynx"],
  99. proprietary: true,
  100. }