Android.bp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Copyright (C) 2016 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. hidl_package_root {
  15. name: "android.hidl",
  16. }
  17. cc_defaults {
  18. name: "libhidltransport-impl-shared-libs",
  19. shared_libs: [
  20. "libbase",
  21. "liblog",
  22. "libutils",
  23. "libhwbinder",
  24. "libcutils",
  25. "libvndksupport",
  26. "libutilscallstack"
  27. ],
  28. export_shared_lib_headers: [
  29. "libutils",
  30. ],
  31. target: {
  32. recovery: {
  33. exclude_shared_libs: ["libvndksupport"],
  34. },
  35. },
  36. }
  37. cc_library_static {
  38. name: "libhidltransport-impl-internal",
  39. vendor_available: true,
  40. recovery_available: true,
  41. defaults: [
  42. "hidl-module-defaults",
  43. "libhidl-defaults",
  44. "libhidltransport-impl-shared-libs",
  45. ],
  46. static_libs: [
  47. "libhidlbase-impl-internal",
  48. ],
  49. export_static_lib_headers: [
  50. "libhidlbase-impl-internal",
  51. ],
  52. export_include_dirs: ["include"],
  53. generated_sources: [
  54. "[email protected]_genc++",
  55. "[email protected]_genc++",
  56. "[email protected]_genc++",
  57. "[email protected]_genc++"
  58. ],
  59. generated_headers: [
  60. "[email protected]_genc++_headers",
  61. "[email protected]_genc++_headers",
  62. "[email protected]_genc++_headers",
  63. "[email protected]_genc++_headers"
  64. ],
  65. export_generated_headers: [
  66. "[email protected]_genc++_headers",
  67. "[email protected]_genc++_headers",
  68. "[email protected]_genc++_headers",
  69. "[email protected]_genc++_headers"
  70. ],
  71. srcs: [
  72. "HidlBinderSupport.cpp",
  73. "HidlLazyUtils.cpp",
  74. "HidlPassthroughSupport.cpp",
  75. "HidlTransportSupport.cpp",
  76. "HidlTransportUtils.cpp",
  77. "ServiceManagement.cpp",
  78. "Static.cpp"
  79. ],
  80. product_variables: {
  81. debuggable: {
  82. cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
  83. },
  84. enforce_vintf_manifest: {
  85. cflags: ["-DENFORCE_VINTF_MANIFEST"]
  86. },
  87. },
  88. }