Alice Wang | de6bee5 | 2023-11-10 09:58:40 +0000 | [diff] [blame] | 1 | package { |
Alice Wang | de6bee5 | 2023-11-10 09:58:40 +0000 | [diff] [blame] | 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | rust_defaults { |
| 6 | name: "libclient_vm_csr_defaults", |
| 7 | crate_name: "client_vm_csr", |
| 8 | srcs: ["src/lib.rs"], |
| 9 | rustlibs: [ |
| 10 | "libanyhow", |
Alice Wang | ff38111 | 2024-05-22 12:14:39 +0000 | [diff] [blame] | 11 | "libcbor_util", |
Alice Wang | de6bee5 | 2023-11-10 09:58:40 +0000 | [diff] [blame] | 12 | "libcoset", |
| 13 | "libdiced_open_dice", |
| 14 | "libopenssl", |
| 15 | "libservice_vm_comm", |
| 16 | "libzeroize", |
| 17 | ], |
| 18 | } |
| 19 | |
| 20 | rust_library { |
| 21 | name: "libclient_vm_csr", |
| 22 | defaults: ["libclient_vm_csr_defaults"], |
| 23 | prefer_rlib: true, |
| 24 | apex_available: [ |
| 25 | "com.android.virt", |
| 26 | ], |
| 27 | } |
| 28 | |
| 29 | rust_test { |
| 30 | name: "libclient_vm_csr.test", |
| 31 | defaults: ["libclient_vm_csr_defaults"], |
| 32 | test_suites: ["general-tests"], |
| 33 | rustlibs: [ |
| 34 | "libciborium", |
| 35 | "libdiced_sample_inputs", |
| 36 | "libhwtrust", |
| 37 | ], |
| 38 | } |