blob: 7735aac787ab776e5ae133c9e96c72116ca5f84e [file] [log] [blame]
Alice Wang4ac9c8b2023-12-05 16:23:14 +00001// 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 {
Aditya Choudhary53696172024-02-05 15:46:19 +000016 default_team: "trendy_team_virtualization",
Alice Wang4ac9c8b2023-12-05 16:23:14 +000017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20rust_defaults {
21 name: "libservice_vm_fake_chain_defaults",
22 crate_name: "service_vm_fake_chain",
23 defaults: ["avf_build_flags_rust"],
24 srcs: ["src/lib.rs"],
25 visibility: [
26 "//packages/modules/Virtualization/rialto:__subpackages__",
27 ],
Alice Wang4e093102023-12-13 09:16:29 +000028 prefer_rlib: true,
Alice Wang4ac9c8b2023-12-05 16:23:14 +000029 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",
Alice Wang4e093102023-12-13 09:16:29 +000045 "libmicrodroid_kernel_hashes",
Alice Wang4ac9c8b2023-12-05 16:23:14 +000046 ],
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}