1// Copyright 2024 The Pigweed Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may not 4// use this file except in compliance with the License. You may obtain a copy of 5// the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12// License for the specific language governing permissions and limitations under 13// the License. 14 15package { 16 default_applicable_licenses: ["external_pigweed_license"], 17} 18 19cc_library_static { 20 name: "pw_bluetooth_proxy", 21 cpp_std: "c++20", 22 vendor_available: true, 23 host_supported: true, 24 srcs: [ 25 "acl_data_channel.cc", 26 "basic_l2cap_channel.cc", 27 "gatt_notify_channel.cc", 28 "h4_storage.cc", 29 "l2cap_aclu_signaling_channel.cc", 30 "l2cap_channel_manager.cc", 31 "l2cap_coc.cc", 32 "l2cap_leu_signaling_channel.cc", 33 "l2cap_read_channel.cc", 34 "l2cap_signaling_channel.cc", 35 "l2cap_write_channel.cc", 36 "proxy_host.cc", 37 "rfcomm_channel.cc", 38 "rfcomm_fcs.cc", 39 ], 40 export_include_dirs: [ 41 "public", 42 ], 43 defaults: [ 44 "pw_android_common_backends", 45 ], 46 static_libs: [ 47 "pw_containers", 48 "pw_function", 49 "pw_result", 50 "pw_span", 51 "pw_status", 52 ], 53 export_static_lib_headers: [ 54 "pw_containers", 55 "pw_function", 56 "pw_result", 57 "pw_span", 58 "pw_status", 59 ], 60 header_libs: [ 61 "emboss_runtime_headers", 62 "fuchsia_sdk_lib_stdcompat", 63 "pw_bluetooth_emboss_util_include_dirs", 64 ], 65 generated_headers: [ 66 "pw_bluetooth_generate_emboss_att", 67 "pw_bluetooth_generate_emboss_hci_common", 68 "pw_bluetooth_generate_emboss_hci_data", 69 "pw_bluetooth_generate_emboss_hci_events", 70 "pw_bluetooth_generate_emboss_hci_h4", 71 "pw_bluetooth_generate_emboss_l2cap_frames", 72 "pw_bluetooth_generate_emboss_rfcomm_frames", 73 ], 74 export_generated_headers: [ 75 "pw_bluetooth_generate_emboss_att", 76 "pw_bluetooth_generate_emboss_hci_common", 77 "pw_bluetooth_generate_emboss_hci_data", 78 "pw_bluetooth_generate_emboss_hci_events", 79 "pw_bluetooth_generate_emboss_hci_h4", 80 "pw_bluetooth_generate_emboss_l2cap_frames", 81 "pw_bluetooth_generate_emboss_rfcomm_frames", 82 ], 83} 84