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("LibBluetoothShimSources") {
18  sources = [
19    "acl.cc",
20    "acl_api.cc",
21    "acl_legacy_interface.cc",
22    "activity_attribution.cc",
23    "btm.cc",
24    "btm_api.cc",
25    "config.cc",
26    "controller.cc",
27    "dumpsys.cc",
28    "entry.cc",
29    "hci_layer.cc",
30    "l2c_api.cc",
31    "le_advertising_manager.cc",
32    "le_scanning_manager.cc",
33    "link_policy.cc",
34    "metric_id_api.cc",
35    "metrics_api.cc",
36    "shim.cc",
37    "stack.cc",
38  ]
39
40  include_dirs = [
41    "//bt",
42    "//bt/btif/include",
43    "//bt/gd",
44    "//bt/gd/rust/shim",
45    "//bt/internal_include",
46    "//bt/stack/include",
47    "//bt/types",
48  ]
49
50  deps = [
51    "//bt/gd:BluetoothGeneratedDumpsysDataSchema_h",
52    "//bt/gd:BluetoothGeneratedPackets_h",
53    "//bt/gd/common:BluetoothCommonSources",
54    "//bt/gd/dumpsys/bundler:BluetoothGeneratedBundlerSchema_h_bfbs",
55    "//bt/gd/hci:BluetoothHciSources",
56    "//bt/gd/os:BluetoothOsSources_linux_generic",
57    "//bt/gd/packet:BluetoothPacketSources",
58    "//bt/gd/rust/shim:libbluetooth_rust_interop",
59    "//bt/gd/rust/topshim:libbluetooth_topshim",
60    "//bt/osi",
61    "//bt/stack",
62    "//bt/types",
63  ]
64
65  configs += [ "//bt:target_defaults" ]
66}
67