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