• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright 2021 Google, Inc.
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
16source_set("BluetoothHciSources") {
17  sources = [
18    "acl_manager.cc",
19    "acl_manager/acl_connection.cc",
20    "acl_manager/acl_scheduler.cc",
21    "acl_manager/acl_fragmenter.cc",
22    "acl_manager/classic_acl_connection.cc",
23    "acl_manager/le_acl_connection.cc",
24    "acl_manager/round_robin_scheduler.cc",
25    "controller.cc",
26    "distance_measurement_manager.cc",
27    "hci_layer.cc",
28    "hci_metrics_logging.cc",
29    "le_address_manager.cc",
30    "le_advertising_manager.cc",
31    "le_scanning_manager.cc",
32    "le_scanning_reassembler.cc",
33    "link_key.cc",
34    "msft.cc",
35    "remote_name_request.cc",
36    "uuid.cc",
37  ]
38
39  include_dirs = [ "//bt/system/gd" ]
40
41  deps = [
42    "//bt/flags:bluetooth_flags_c_lib",
43    "//bt/system/gd:gd_default_deps",
44    "//bt/sysprop:libcom.android.sysprop.bluetooth",
45  ]
46
47  configs += [
48    "//bt/system:target_defaults",
49    "//bt/system/log:log_defaults",
50  ]
51}
52
53if (use.test) {
54  executable("hci_tests") {
55    sources = [
56      "hci_packets_test.cc",
57    ]
58
59    include_dirs = [ "//bt/system/gd" ]
60
61    deps = [
62      "//bt/system/main:bluetooth-static",
63    ]
64
65    configs += [
66      "//bt/system:target_defaults",
67      "//bt/system:external_gtest_main",
68    ]
69
70    libs = [
71      "pthread",
72      "rt",
73      "dl",
74    ]
75
76    ldflags = [
77      "-lpthread"
78    ]
79  }
80}
81