1// Copyright 2025, The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://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, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19rust_proc_macro { 20 name: "libbluetooth_offload_hci_derive", 21 crate_name: "bluetooth_offload_hci_derive", 22 crate_root: "derive/lib.rs", 23 edition: "2021", 24 rustlibs: [ 25 "libproc_macro2", 26 "libquote", 27 "libsyn", 28 ], 29} 30 31rust_defaults { 32 name: "bluetooth_offload_hci_defaults", 33 crate_root: "lib.rs", 34 crate_name: "bluetooth_offload_hci", 35 edition: "2021", 36 proc_macros: [ 37 "libbluetooth_offload_hci_derive", 38 ], 39 visibility: [ 40 "//packages/modules/Bluetooth/offload:__subpackages__", 41 ], 42} 43 44rust_library { 45 name: "libbluetooth_offload_hci", 46 defaults: ["bluetooth_offload_hci_defaults"], 47 vendor_available: true, 48} 49 50rust_test { 51 name: "libbluetooth_offload_hci_test", 52 host_supported: true, 53 target: { 54 android: { 55 test_config_template: ":BluetoothRustTestConfigTemplate", 56 test_suites: [ 57 "general-tests", 58 "mts-bt", 59 ], 60 }, 61 }, 62 compile_multilib: "both", 63 multilib: { 64 lib32: { 65 suffix: "32", 66 }, 67 lib64: { 68 suffix: "64", 69 }, 70 }, 71 defaults: ["bluetooth_offload_hci_defaults"], 72} 73