Alice Wang | 4ac9c8b | 2023-12-05 16:23:14 +0000 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | rust_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 | ], |
Alice Wang | 4e09310 | 2023-12-13 09:16:29 +0000 | [diff] [blame] | 27 | prefer_rlib: true, |
Alice Wang | 4ac9c8b | 2023-12-05 16:23:14 +0000 | [diff] [blame] | 28 | rustlibs: [ |
| 29 | "libcstr", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | rust_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", |
Alice Wang | 4e09310 | 2023-12-13 09:16:29 +0000 | [diff] [blame] | 44 | "libmicrodroid_kernel_hashes", |
Alice Wang | 4ac9c8b | 2023-12-05 16:23:14 +0000 | [diff] [blame] | 45 | ], |
| 46 | } |
| 47 | |
| 48 | rust_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 | } |