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