Android.bp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // Copyright (C) 2021 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",
  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: "VibratorHalCs40l26BinaryDefaults",
  30. defaults: [
  31. "PixelVibratorBinaryDefaults",
  32. "android.hardware.vibrator-defaults.cs40l26",
  33. ],
  34. include_dirs: [
  35. "external/tinyalsa/include",
  36. ],
  37. shared_libs: [
  38. "libcutils",
  39. "libtinyalsa",
  40. ],
  41. }
  42. cc_defaults {
  43. name: "VibratorHalCs40l26TestDefaults",
  44. defaults: [
  45. "PixelVibratorTestDefaults",
  46. "android.hardware.vibrator-defaults.cs40l26",
  47. ],
  48. static_libs: [
  49. "android.hardware.vibrator-impl.cs40l26",
  50. "libtinyalsa",
  51. ],
  52. }
  53. cc_library {
  54. name: "android.hardware.vibrator-impl.cs40l26",
  55. defaults: ["VibratorHalCs40l26BinaryDefaults"],
  56. srcs: ["Vibrator.cpp"],
  57. export_include_dirs: ["."],
  58. vendor_available: true,
  59. visibility: [":__subpackages__"],
  60. }
  61. cc_binary {
  62. name: "android.hardware.vibrator-service.cs40l26",
  63. defaults: ["VibratorHalCs40l26BinaryDefaults"],
  64. init_rc: ["android.hardware.vibrator-service.cs40l26.rc"],
  65. vintf_fragments: ["android.hardware.vibrator-service.cs40l26.xml"],
  66. srcs: ["service.cpp"],
  67. shared_libs: ["android.hardware.vibrator-impl.cs40l26"],
  68. proprietary: true,
  69. }
  70. cc_binary {
  71. name: "android.hardware.vibrator-service.cs40l26-dual",
  72. defaults: ["VibratorHalCs40l26BinaryDefaults"],
  73. init_rc: ["android.hardware.vibrator-service.cs40l26-dual.rc"],
  74. vintf_fragments: ["android.hardware.vibrator-service.cs40l26-dual.xml"],
  75. srcs: ["service.cpp"],
  76. shared_libs: ["android.hardware.vibrator-impl.cs40l26"],
  77. cflags: ["-DVIBRATOR_NAME=\"dual\""],
  78. proprietary: true,
  79. }