1// Copyright (C) 2024 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_binary { 20 name: "android.hardware.bluetooth-service.cuttlefish", 21 relative_install_path: "hw", 22 vendor: true, 23 prefer_rlib: true, 24 rustlibs: [ 25 "android.hardware.bluetooth-V1-rust", 26 "libandroid_logger", 27 "libanyhow", 28 "libargh", 29 "libbinder_rs", 30 "libbinder_tokio_rs", 31 "libbytes", 32 "liblibc", 33 "liblog_rust", 34 "libnix", 35 "libpdl_runtime", 36 "libthiserror", 37 "libtokio", 38 ], 39 proc_macros: [ 40 "libasync_trait", 41 ], 42 features: ["rt"], 43 srcs: [ 44 "src/main.rs", 45 ], 46} 47 48prebuilt_etc { 49 name: "android.hardware.bluetooth-service.cuttlefish.xml", 50 src: "bluetooth-service.cuttlefish.xml", 51 sub_dir: "vintf", 52 installable: false, 53} 54