1// Copyright 2023, 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_defaults { 20 name: "libservice_vm_fake_chain_defaults", 21 compile_multilib: "first", 22 crate_name: "service_vm_fake_chain", 23 defaults: ["avf_build_flags_rust"], 24 srcs: ["src/lib.rs"], 25 visibility: [ 26 "//packages/modules/Virtualization/guest/rialto:__subpackages__", 27 ], 28 prefer_rlib: true, 29 rustlibs: [ 30 "libcstr", 31 ], 32} 33 34rust_library { 35 name: "libservice_vm_fake_chain", 36 defaults: ["libservice_vm_fake_chain_defaults"], 37 features: [ 38 "std", 39 ], 40 rustlibs: [ 41 "libciborium", 42 "libcoset", 43 "libdiced_open_dice", 44 "liblog_rust", 45 "libmicrodroid_kernel_hashes", 46 ], 47} 48 49rust_library_rlib { 50 name: "libservice_vm_fake_chain_nostd", 51 defaults: ["libservice_vm_fake_chain_defaults"], 52 rustlibs: [ 53 "libciborium_nostd", 54 "libcoset_nostd", 55 "libdiced_open_dice_nostd", 56 "liblog_rust_nostd", 57 ], 58 59} 60