Alice Wang | 0b9e110 | 2023-02-02 09:57:06 +0000 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | rust_defaults { |
| 6 | name: "libdiced_open_dice_defaults", |
| 7 | crate_name: "diced_open_dice", |
| 8 | srcs: ["src/lib.rs"], |
| 9 | static_libs: [ |
| 10 | "libopen_dice_cbor", |
| 11 | ], |
| 12 | vendor_available: true, |
| 13 | apex_available: [ |
| 14 | "//apex_available:platform", |
| 15 | "com.android.virt", |
| 16 | ], |
| 17 | } |
| 18 | |
| 19 | rust_library_rlib { |
| 20 | name: "libdiced_open_dice_nostd", |
| 21 | defaults: ["libdiced_open_dice_defaults"], |
| 22 | rustlibs: [ |
| 23 | "libopen_dice_cbor_bindgen_nostd", |
| 24 | ], |
| 25 | } |
| 26 | |
| 27 | rust_library_rlib { |
| 28 | name: "libdiced_open_dice", |
| 29 | defaults: ["libdiced_open_dice_defaults"], |
| 30 | rustlibs: [ |
| 31 | "libopen_dice_cbor_bindgen", |
| 32 | ], |
| 33 | features: [ |
| 34 | "std", |
| 35 | ], |
| 36 | } |