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 += [ "//bt/gd:gd_defaults" ]
19  deps = [ "//bt/gd:gd_default_deps" ]
20}
21
22source_set("BluetoothSecurityPairingSources") {
23  sources = [ "pairing/classic_pairing_handler.cc" ]
24  configs += [ "//bt/gd:gd_defaults" ]
25  deps = [ "//bt/gd:gd_default_deps" ]
26}
27
28source_set("BluetoothSecurityRecordSources") {
29  sources = [ "record/security_record_storage.cc" ]
30  configs += [ "//bt/gd:gd_defaults" ]
31  deps = [ "//bt/gd:gd_default_deps" ]
32}
33
34source_set("BluetoothSecuritySources") {
35  sources = [
36    "ecc/multprecision.cc",
37    "ecc/p_256_ecc_pp.cc",
38    "ecdh_keys.cc",
39    "facade_configuration_api.cc",
40    "internal/security_manager_impl.cc",
41    "l2cap_security_module_interface.cc",
42    "pairing_handler_le.cc",
43    "pairing_handler_le_legacy.cc",
44    "pairing_handler_le_secure_connections.cc",
45    "security_manager.cc",
46    "security_module.cc",
47  ]
48
49  deps = [
50    ":BluetoothSecurityChannelSources",
51    ":BluetoothSecurityPairingSources",
52    ":BluetoothSecurityRecordSources",
53    "//bt/gd:gd_default_deps",
54  ]
55
56  configs += [ "//bt/gd:gd_defaults" ]
57}
58