BUILD.gn 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #
  2. # Copyright 2015 Google
  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. #
  16. source_set("service") {
  17. sources = [
  18. "a2dp_sink.cc",
  19. "a2dp_source.cc",
  20. "adapter.cc",
  21. "avrcp_control.cc",
  22. "avrcp_target.cc",
  23. "common/bluetooth/a2dp_codec_config.cc",
  24. "common/bluetooth/adapter_state.cc",
  25. "common/bluetooth/advertise_data.cc",
  26. "common/bluetooth/advertise_settings.cc",
  27. "common/bluetooth/avrcp_int_value.cc",
  28. "common/bluetooth/avrcp_media_attr.cc",
  29. "common/bluetooth/avrcp_register_notification_response.cc",
  30. "common/bluetooth/characteristic.cc",
  31. "common/bluetooth/descriptor.cc",
  32. "common/bluetooth/remote_device_props.cc",
  33. "common/bluetooth/scan_filter.cc",
  34. "common/bluetooth/scan_result.cc",
  35. "common/bluetooth/scan_settings.cc",
  36. "common/bluetooth/service.cc",
  37. "common/bluetooth/util/atomic_string.cc",
  38. "daemon.cc",
  39. "gatt_client.cc",
  40. "gatt_server.cc",
  41. "gatt_server_old.cc",
  42. "hal/bluetooth_gatt_interface.cc",
  43. "hal/bluetooth_interface.cc",
  44. "ipc/dbus/bluetooth_adapter.cc",
  45. "ipc/dbus/ipc_handler_dbus.cc",
  46. "hal/bluetooth_av_interface.cc",
  47. "hal/bluetooth_avrcp_interface.cc",
  48. "hal/fake_bluetooth_gatt_interface.cc",
  49. "hal/fake_bluetooth_interface.cc",
  50. "ipc/ipc_handler.cc",
  51. "ipc/ipc_handler_linux.cc",
  52. "ipc/ipc_manager.cc",
  53. "ipc/linux_ipc_host.cc",
  54. "logging_helpers.cc",
  55. "low_energy_advertiser.cc",
  56. "low_energy_scanner.cc",
  57. "low_energy_client.cc",
  58. "settings.cc",
  59. ]
  60. include_dirs = [
  61. "//",
  62. "//linux_include",
  63. "//include",
  64. "//service/common",
  65. "//third_party/modp_b64/modp64",
  66. ]
  67. deps = [
  68. "//types",
  69. "//osi",
  70. "//third_party/libchrome:base",
  71. ]
  72. }
  73. executable("bluetoothtbd") {
  74. sources = [
  75. "main.cc",
  76. ]
  77. deps = [
  78. ":service",
  79. "//btcore",
  80. "//third_party/libchrome:base",
  81. "//third_party/modp_b64",
  82. ]
  83. include_dirs = [ "//" ]
  84. libs = [
  85. "-ldl",
  86. "-lpthread",
  87. "-lrt",
  88. ]
  89. }
  90. executable("service_unittests") {
  91. testonly = true
  92. sources = [
  93. "test/fake_hal_util.cc",
  94. "test/settings_unittest.cc",
  95. ]
  96. include_dirs = [ "//" ]
  97. deps = [
  98. ":service",
  99. "//third_party/googletest:gmock_main",
  100. "//third_party/libchrome:base",
  101. "//third_party/modp_b64",
  102. ]
  103. }