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("BluetoothStackManagerSources") {
18  sources = [
19    "entry.cc",
20    "stack.cc",
21  ]
22
23  include_dirs = [
24    "//bt/system",
25    "//bt/system/btif/include",
26    "//bt/system/gd",
27    "//bt/system/stack/include",
28    "//bt/system/types",
29  ]
30
31  deps = [
32    "//bt/system/gd/common:BluetoothCommonSources",
33    "//bt/system/gd/hci:BluetoothHciSources",
34    "//bt/system/gd/lpp:BluetoothLppOffloadSources",
35    "//bt/system/gd/os:BluetoothOsSources_linux_generic",
36    "//bt/system/gd/packet:BluetoothPacketSources",
37    "//bt/system/gd/rust/topshim:libbluetooth_topshim",
38    "//bt/system/osi",
39    "//bt/system/pdl:BluetoothGeneratedPackets_h",
40    "//bt/system/stack",
41    "//bt/system/types",
42  ]
43
44  configs += [
45    "//bt/system:target_defaults",
46    "//bt/system/log:log_defaults",
47  ]
48}
49source_set("LibBluetoothShimSources") {
50  sources = [
51    "acl.cc",
52    "acl_api.cc",
53    "acl_interface.cc",
54    "btm_api.cc",
55    "config.cc",
56    "distance_measurement_manager.cc",
57    "dumpsys.cc",
58    "hci_layer.cc",
59    "le_advertising_manager.cc",
60    "le_scanning_manager.cc",
61    "metric_id_api.cc",
62    "metrics_api.cc",
63    "shim.cc",
64    "utils.cc",
65  ]
66
67  include_dirs = [
68    "//bt/system",
69    "//bt/system/btif/include",
70    "//bt/system/gd",
71    "//bt/system/stack/include",
72    "//bt/system/types",
73  ]
74
75  deps = [
76    "//bt/sysprop:libcom.android.sysprop.bluetooth",
77    "//bt/system/gd/common:BluetoothCommonSources",
78    "//bt/system/gd/hci:BluetoothHciSources",
79    "//bt/system/gd/lpp:BluetoothLppOffloadSources",
80    "//bt/system/gd/os:BluetoothOsSources_linux_generic",
81    "//bt/system/gd/packet:BluetoothPacketSources",
82    "//bt/system/gd/rust/topshim:libbluetooth_topshim",
83    "//bt/system/osi",
84    "//bt/system/pdl:BluetoothGeneratedPackets_h",
85    "//bt/system/stack",
86    "//bt/system/types",
87  ]
88
89  configs += [
90    "//bt/system:target_defaults",
91    "//bt/system/log:log_defaults",
92  ]
93}
94