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 = [ 28 "//bt/flags:bluetooth_flags_c_lib", 29 "//bt/system/gd:gd_default_deps" 30 ] 31} 32 33source_set("BluetoothHalSources_hci_host") { 34 if (use.floss_rootcanal) { 35 sources = [ 36 "hci_hal_host_rootcanal.cc", 37 ] 38 } else { 39 sources = [ 40 "hci_hal_host.cc", 41 ] 42 } 43 44 configs += [ "//bt/system/gd:gd_defaults" ] 45 deps = [ "//bt/system/gd:gd_default_deps" ] 46} 47 48source_set("BluetoothHalSources_ranging_host") { 49 sources = [ 50 "ranging_hal_host.cc", 51 ] 52 53 configs += [ "//bt/system/gd:gd_defaults" ] 54 deps = [ "//bt/system/gd:gd_default_deps" ] 55} 56 57source_set("BluetoothHalSources_socket_host") { 58 sources = [ 59 "socket_hal_host.cc", 60 ] 61 62 configs += [ "//bt/system/gd:gd_defaults" ] 63 deps = [ "//bt/system/gd:gd_default_deps" ] 64} 65