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#
16
17source_set("BluetoothHalSources") {
18  sources = [
19    "link_clocker.cc",
20    "snoop_logger.cc",
21    "snoop_logger_socket.cc",
22    "snoop_logger_socket_thread.cc",
23    "syscall_wrapper_impl.cc"
24  ]
25
26  configs += [ "//bt/system/gd:gd_defaults" ]
27  deps = [ "//bt/system/gd:gd_default_deps" ]
28}
29
30source_set("BluetoothHalSources_hci_host") {
31  if (use.floss_rootcanal) {
32    sources = [
33      "hci_hal_host_rootcanal.cc",
34      "mgmt.cc",
35    ]
36  } else {
37    sources = [
38      "hci_hal_host.cc",
39      "mgmt.cc",
40    ]
41  }
42
43  configs += [ "//bt/system/gd:gd_defaults" ]
44  deps = [ "//bt/system/gd:gd_default_deps" ]
45}
46
47source_set("BluetoothHalSources_ranging_host") {
48  sources = [
49    "ranging_hal_host.cc",
50  ]
51
52  configs += [ "//bt/system/gd:gd_defaults" ]
53  deps = [ "//bt/system/gd:gd_default_deps" ]
54}
55