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 "address.cc", 26 "class_of_device.cc", 27 "controller.cc", 28 "distance_measurement_manager.cc", 29 "hci_layer.cc", 30 "hci_metrics_logging.cc", 31 "le_address_manager.cc", 32 "le_advertising_manager.cc", 33 "le_scanning_manager.cc", 34 "le_scanning_reassembler.cc", 35 "link_key.cc", 36 "msft.cc", 37 "remote_name_request.cc", 38 "uuid.cc", 39 ] 40 41 include_dirs = [ "//bt/system/gd" ] 42 43 deps = [ 44 "//bt/flags:bluetooth_flags_c_lib", 45 "//bt/system/gd:gd_default_deps", 46 ] 47 48 configs += [ 49 "//bt/system:target_defaults", 50 "//bt/system/log:log_defaults", 51 ] 52} 53 54if (use.test) { 55 executable("hci_tests") { 56 sources = [ 57 "hci_packets_test.cc", 58 ] 59 60 include_dirs = [ "//bt/system/gd" ] 61 62 deps = [ 63 "//bt/system/main:bluetooth-static", 64 ] 65 66 configs += [ 67 "//bt/system:target_defaults", 68 "//bt/system:external_gtest_main", 69 ] 70 71 libs = [ 72 "pthread", 73 "rt", 74 "dl", 75 ] 76 77 ldflags = [ 78 "-lpthread" 79 ] 80 } 81} 82