Android.bp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. cc_defaults {
  2. name: "fluoride_bta_defaults",
  3. defaults: ["fluoride_defaults"],
  4. local_include_dirs: [
  5. "include",
  6. "sys",
  7. "dm",
  8. "hd",
  9. "hh",
  10. ],
  11. include_dirs: [
  12. "system/bt",
  13. "system/bt/bta/include",
  14. "system/bt/btcore/include",
  15. "system/bt/btif/avrcp",
  16. "system/bt/btif/include",
  17. "system/bt/hci/include",
  18. "system/bt/internal_include",
  19. "system/bt/stack/include",
  20. "system/bt/stack/btm",
  21. "system/bt/udrv/include",
  22. "system/bt/vnd/include",
  23. "system/bt/utils/include",
  24. ],
  25. shared_libs: [
  26. "libcutils",
  27. ],
  28. header_libs: ["libbluetooth_headers"],
  29. cflags: ["-DBUILDCFG"],
  30. }
  31. // BTA static library for target
  32. // ========================================================
  33. cc_library_static {
  34. name: "libbt-bta",
  35. defaults: ["fluoride_bta_defaults"],
  36. cflags: ["-Wno-implicit-fallthrough"],
  37. srcs: [
  38. "ag/bta_ag_act.cc",
  39. "ag/bta_ag_api.cc",
  40. "ag/bta_ag_at.cc",
  41. "ag/bta_ag_cfg.cc",
  42. "ag/bta_ag_cmd.cc",
  43. "ag/bta_ag_main.cc",
  44. "ag/bta_ag_rfc.cc",
  45. "ag/bta_ag_sco.cc",
  46. "ag/bta_ag_sdp.cc",
  47. "ar/bta_ar.cc",
  48. "av/bta_av_aact.cc",
  49. "av/bta_av_act.cc",
  50. "av/bta_av_api.cc",
  51. "av/bta_av_cfg.cc",
  52. "av/bta_av_ci.cc",
  53. "av/bta_av_main.cc",
  54. "av/bta_av_ssm.cc",
  55. "dm/bta_dm_act.cc",
  56. "dm/bta_dm_api.cc",
  57. "dm/bta_dm_cfg.cc",
  58. "dm/bta_dm_ci.cc",
  59. "dm/bta_dm_main.cc",
  60. "dm/bta_dm_pm.cc",
  61. "gatt/bta_gattc_act.cc",
  62. "gatt/bta_gattc_api.cc",
  63. "gatt/bta_gattc_cache.cc",
  64. "gatt/bta_gattc_main.cc",
  65. "gatt/bta_gattc_queue.cc",
  66. "gatt/bta_gattc_utils.cc",
  67. "gatt/bta_gatts_act.cc",
  68. "gatt/bta_gatts_api.cc",
  69. "gatt/bta_gatts_main.cc",
  70. "gatt/bta_gatts_utils.cc",
  71. "gatt/database.cc",
  72. "gatt/database_builder.cc",
  73. "hearing_aid/hearing_aid.cc",
  74. "hearing_aid/hearing_aid_audio_source.cc",
  75. "hf_client/bta_hf_client_act.cc",
  76. "hf_client/bta_hf_client_api.cc",
  77. "hf_client/bta_hf_client_at.cc",
  78. "hf_client/bta_hf_client_main.cc",
  79. "hf_client/bta_hf_client_rfc.cc",
  80. "hf_client/bta_hf_client_sco.cc",
  81. "hf_client/bta_hf_client_sdp.cc",
  82. "hh/bta_hh_act.cc",
  83. "hh/bta_hh_api.cc",
  84. "hh/bta_hh_cfg.cc",
  85. "hh/bta_hh_le.cc",
  86. "hh/bta_hh_main.cc",
  87. "hh/bta_hh_utils.cc",
  88. "hd/bta_hd_act.cc",
  89. "hd/bta_hd_api.cc",
  90. "hd/bta_hd_main.cc",
  91. "jv/bta_jv_act.cc",
  92. "jv/bta_jv_api.cc",
  93. "jv/bta_jv_cfg.cc",
  94. "mce/bta_mce_act.cc",
  95. "mce/bta_mce_api.cc",
  96. "mce/bta_mce_cfg.cc",
  97. "mce/bta_mce_main.cc",
  98. "pan/bta_pan_act.cc",
  99. "pan/bta_pan_api.cc",
  100. "pan/bta_pan_ci.cc",
  101. "pan/bta_pan_main.cc",
  102. "sdp/bta_sdp.cc",
  103. "sdp/bta_sdp_act.cc",
  104. "sdp/bta_sdp_api.cc",
  105. "sdp/bta_sdp_cfg.cc",
  106. "sys/bta_sys_conn.cc",
  107. "sys/bta_sys_main.cc",
  108. "sys/utl.cc",
  109. ],
  110. static_libs: [
  111. "avrcp-target-service",
  112. "lib-bt-packets",
  113. ],
  114. whole_static_libs: [
  115. "libaudio-hearing-aid-hw-utils",
  116. ],
  117. }
  118. // bta unit tests for target
  119. // ========================================================
  120. cc_test {
  121. name: "net_test_bta",
  122. defaults: ["fluoride_bta_defaults"],
  123. srcs: [
  124. "test/bta_hf_client_test.cc",
  125. "test/gatt/database_builder_test.cc",
  126. "test/gatt/database_builder_sample_device_test.cc",
  127. "test/gatt/database_test.cc",
  128. ],
  129. shared_libs: [
  130. "libcrypto",
  131. "liblog",
  132. "libprotobuf-cpp-lite",
  133. ],
  134. static_libs: [
  135. "libbtcore",
  136. "libbt-bta",
  137. "libbt-audio-hal-interface",
  138. "libbluetooth-types",
  139. "libbt-protos-lite",
  140. "libosi",
  141. "libbt-common",
  142. ],
  143. }