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("BluetoothSecurityChannelSources") { 17 sources = [ "channel/security_manager_channel.cc" ] 18 configs += [ 19 "//bt/system/gd:gd_defaults", 20 "//bt/system/log:log_defaults", 21 ] 22 deps = [ "//bt/system/gd:gd_default_deps" ] 23} 24 25source_set("BluetoothSecurityPairingSources") { 26 sources = [ "pairing/classic_pairing_handler.cc" ] 27 configs += [ 28 "//bt/system/gd:gd_defaults", 29 "//bt/system/log:log_defaults", 30 ] 31 deps = [ "//bt/system/gd:gd_default_deps" ] 32} 33 34source_set("BluetoothSecurityRecordSources") { 35 sources = [ "record/security_record_storage.cc" ] 36 configs += [ 37 "//bt/system/gd:gd_defaults", 38 "//bt/system/log:log_defaults", 39 ] 40 deps = [ "//bt/system/gd:gd_default_deps" ] 41} 42 43source_set("BluetoothSecuritySources") { 44 sources = [ 45 "ecc/multprecision.cc", 46 "ecc/p_256_ecc_pp.cc", 47 "ecdh_keys.cc", 48 "facade_configuration_api.cc", 49 "internal/security_manager_impl.cc", 50 "l2cap_security_module_interface.cc", 51 "pairing_handler_le.cc", 52 "pairing_handler_le_legacy.cc", 53 "pairing_handler_le_secure_connections.cc", 54 "security_manager.cc", 55 "security_module.cc", 56 ] 57 58 deps = [ 59 ":BluetoothSecurityChannelSources", 60 ":BluetoothSecurityPairingSources", 61 ":BluetoothSecurityRecordSources", 62 "//bt/sysprop:libcom.android.sysprop.bluetooth", 63 "//bt/system/gd:gd_default_deps", 64 ] 65 66 configs += [ 67 "//bt/system/gd:gd_defaults", 68 "//bt/system/log:log_defaults", 69 ] 70} 71