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 "//bt/sysprop:libcom.android.sysprop.bluetooth", 47 ] 48 49 configs += [ 50 "//bt/system:target_defaults", 51 "//bt/system/log:log_defaults", 52 ] 53} 54 55if (use.test) { 56 executable("hci_tests") { 57 sources = [ 58 "hci_packets_test.cc", 59 ] 60 61 include_dirs = [ "//bt/system/gd" ] 62 63 deps = [ 64 "//bt/system/main:bluetooth-static", 65 ] 66 67 configs += [ 68 "//bt/system:target_defaults", 69 "//bt/system:external_gtest_main", 70 ] 71 72 libs = [ 73 "pthread", 74 "rt", 75 "dl", 76 ] 77 78 ldflags = [ 79 "-lpthread" 80 ] 81 } 82} 83