Android.bp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // Bluetooth main HW module / shared library for target
  2. // ========================================================
  3. cc_library_shared {
  4. name: "libbluetooth",
  5. defaults: ["fluoride_defaults"],
  6. header_libs: ["libbluetooth_headers"],
  7. export_header_lib_headers: ["libbluetooth_headers"],
  8. srcs: [
  9. // platform specific
  10. "bte_conf.cc",
  11. "bte_init.cc",
  12. "bte_init_cpp_logging.cc",
  13. "bte_logmsg.cc",
  14. "bte_main.cc",
  15. "stack_config.cc",
  16. ],
  17. include_dirs: [
  18. "system/bt",
  19. "system/bt/bta/include",
  20. "system/bt/bta/sys",
  21. "system/bt/bta/dm",
  22. "system/bt/btcore/include",
  23. "system/bt/internal_include",
  24. "system/bt/stack/include",
  25. "system/bt/stack/l2cap",
  26. "system/bt/stack/a2dp",
  27. "system/bt/stack/btm",
  28. "system/bt/stack/avdt",
  29. "system/bt/udrv/include",
  30. "system/bt/btif/include",
  31. "system/bt/btif/co",
  32. "system/bt/hci/include",
  33. "system/bt/vnd/include",
  34. "system/bt/embdrv/sbc/encoder/include",
  35. "system/bt/embdrv/sbc/decoder/include",
  36. "system/bt/utils/include",
  37. "system/security/keystore/include",
  38. "hardware/interfaces/keymaster/4.0/support/include",
  39. ],
  40. logtags: ["../EventLogTags.logtags"],
  41. shared_libs: [
  42. "[email protected]",
  43. "[email protected]",
  44. "[email protected]",
  45. "libaudioclient",
  46. "libcutils",
  47. "libdl",
  48. "libfmq",
  49. "libhidlbase",
  50. "libhidltransport",
  51. "libhwbinder",
  52. "liblog",
  53. "libprocessgroup",
  54. "libprotobuf-cpp-lite",
  55. "libutils",
  56. "libtinyxml2",
  57. "libz",
  58. "libcrypto",
  59. "[email protected]",
  60. "[email protected]",
  61. "libkeymaster4support",
  62. "libkeystore_aidl",
  63. "libkeystore_binder",
  64. "libkeystore_parcelables",
  65. ],
  66. static_libs: [
  67. "libbt-sbc-decoder",
  68. "libbt-sbc-encoder",
  69. "libFraunhoferAAC",
  70. "libg722codec",
  71. "libudrv-uipc",
  72. ],
  73. whole_static_libs: [
  74. "libbt-bta",
  75. "libbt-common",
  76. "libbtdevice",
  77. "libbtif",
  78. "libbt-hci",
  79. "libbt-stack",
  80. "libbt-utils",
  81. "libbtcore",
  82. "libosi",
  83. "libbt-protos-lite",
  84. ],
  85. // Shared library link options.
  86. // References to global symbols and functions should bind to the library
  87. // itself. This is to avoid issues with some of the unit/system tests
  88. // that might link statically with some of the code in the library, and
  89. // also dlopen(3) the shared library.
  90. ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
  91. required: [
  92. "bt_did.conf",
  93. "bt_stack.conf",
  94. "libldacBT_enc",
  95. "libldacBT_abr",
  96. ],
  97. cflags: [
  98. "-DBUILDCFG",
  99. ],
  100. sanitize: {
  101. scs: true,
  102. },
  103. }
  104. cc_library_static {
  105. name: "libbluetooth-for-tests",
  106. defaults: ["fluoride_defaults"],
  107. srcs: [
  108. "bte_conf.cc",
  109. "bte_init.cc",
  110. "bte_init_cpp_logging.cc",
  111. "bte_logmsg.cc",
  112. "bte_main.cc",
  113. "stack_config.cc",
  114. ],
  115. include_dirs: [
  116. "system/bt",
  117. "system/bt/bta/include",
  118. "system/bt/btcore/include",
  119. "system/bt/btif/include",
  120. "system/bt/hci/include",
  121. "system/bt/internal_include",
  122. "system/bt/stack/include",
  123. "system/bt/utils/include",
  124. ],
  125. cflags: [
  126. "-DBUILDCFG",
  127. ],
  128. }