Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Jooyung Han | f48ceb4 | 2021-06-01 18:00:04 +0900 | [diff] [blame] | 5 | rust_defaults { |
| 6 | name: "microdroid_manager_defaults", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 7 | crate_name: "microdroid_manager", |
| 8 | srcs: ["src/main.rs"], |
| 9 | edition: "2018", |
| 10 | prefer_rlib: true, |
| 11 | rustlibs: [ |
Andrew Scull | b2f4447 | 2022-01-21 14:41:34 +0000 | [diff] [blame] | 12 | "android.hardware.security.dice-V1-rust", |
Andrew Scull | c96b72e | 2022-01-21 14:36:55 +0000 | [diff] [blame] | 13 | "android.security.dice-rust", |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 14 | "android.system.virtualizationservice-rust", |
| 15 | "android.system.virtualmachineservice-rust", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 16 | "libanyhow", |
Andrew Scull | 1163879 | 2022-04-25 18:13:21 +0000 | [diff] [blame] | 17 | "libapexutil_rust", |
Jooyung Han | 19c1d6c | 2021-08-06 14:08:16 +0900 | [diff] [blame] | 18 | "libapkverify", |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 19 | "libbinder_rpc_unstable_bindgen", |
| 20 | "libbinder_rs", |
Jiyong Park | 21ce2c5 | 2021-08-28 02:32:17 +0900 | [diff] [blame] | 21 | "libbyteorder", |
Andrew Scull | b2f4447 | 2022-01-21 14:41:34 +0000 | [diff] [blame] | 22 | "libdiced_utils", |
Inseob Kim | 197748b | 2021-12-01 19:49:00 +0900 | [diff] [blame] | 23 | "libglob", |
Jiyong Park | 21ce2c5 | 2021-08-28 02:32:17 +0900 | [diff] [blame] | 24 | "libidsig", |
Inseob Kim | 197748b | 2021-12-01 19:49:00 +0900 | [diff] [blame] | 25 | "libitertools", |
Jiyong Park | 79b8801 | 2021-06-25 13:06:25 +0900 | [diff] [blame] | 26 | "libkernlog", |
Andrew Scull | a0d1b1a | 2022-05-24 19:32:47 +0000 | [diff] [blame] | 27 | "libkeystore2_crypto_rust", |
Andrew Scull | 6f3e5fe | 2021-07-02 12:38:21 +0000 | [diff] [blame] | 28 | "liblibc", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 29 | "liblog_rust", |
Jooyung Han | f1e0086 | 2021-06-25 12:02:33 +0900 | [diff] [blame] | 30 | "libmicrodroid_metadata", |
Jooyung Han | 634e2d7 | 2021-06-10 16:27:38 +0900 | [diff] [blame] | 31 | "libmicrodroid_payload_config", |
Inseob Kim | 7f61fe7 | 2021-08-20 20:50:47 +0900 | [diff] [blame] | 32 | "libnix", |
Jiyong Park | 9f72ea6 | 2021-12-06 21:18:38 +0900 | [diff] [blame] | 33 | "libonce_cell", |
Andrew Scull | a0d1b1a | 2022-05-24 19:32:47 +0000 | [diff] [blame] | 34 | "libopenssl", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 35 | "libprotobuf", |
Joel Galenson | 482704c | 2021-07-29 15:53:53 -0700 | [diff] [blame] | 36 | "librustutils", |
Inseob Kim | 437f105 | 2022-06-21 11:30:22 +0900 | [diff] [blame^] | 37 | "libscopeguard", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 38 | "libserde", |
Jiyong Park | f7dea25 | 2021-09-08 01:42:54 +0900 | [diff] [blame] | 39 | "libserde_cbor", |
Jiyong Park | 79b8801 | 2021-06-25 13:06:25 +0900 | [diff] [blame] | 40 | "libserde_json", |
Jooyung Han | dd0a173 | 2021-11-23 15:26:20 +0900 | [diff] [blame] | 41 | "libthiserror", |
Jiyong Park | 21ce2c5 | 2021-08-28 02:32:17 +0900 | [diff] [blame] | 42 | "libuuid", |
Jiyong Park | 8611a6c | 2021-07-09 18:17:44 +0900 | [diff] [blame] | 43 | "libvsock", |
Jiyong Park | 21ce2c5 | 2021-08-28 02:32:17 +0900 | [diff] [blame] | 44 | "librand", |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 45 | ], |
Inseob Kim | 1b95f2e | 2021-08-19 13:17:40 +0900 | [diff] [blame] | 46 | shared_libs: [ |
| 47 | "libbinder_rpc_unstable", |
| 48 | ], |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 49 | init_rc: ["microdroid_manager.rc"], |
Jiyong Park | 21ce2c5 | 2021-08-28 02:32:17 +0900 | [diff] [blame] | 50 | multilib: { |
| 51 | lib32: { |
| 52 | enabled: false, |
| 53 | }, |
| 54 | }, |
Jooyung Han | 347d9f2 | 2021-05-28 00:05:14 +0900 | [diff] [blame] | 55 | } |
Jooyung Han | f48ceb4 | 2021-06-01 18:00:04 +0900 | [diff] [blame] | 56 | |
| 57 | rust_binary { |
| 58 | name: "microdroid_manager", |
| 59 | defaults: ["microdroid_manager_defaults"], |
Jooyung Han | e706c9f | 2021-07-29 17:21:20 +0900 | [diff] [blame] | 60 | bootstrap: true, |
Jooyung Han | f48ceb4 | 2021-06-01 18:00:04 +0900 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | rust_test { |
| 64 | name: "microdroid_manager_test", |
| 65 | defaults: ["microdroid_manager_defaults"], |
Jiyong Park | 5c71cac | 2022-02-04 11:49:31 +0900 | [diff] [blame] | 66 | test_suites: ["general-tests"], |
Jooyung Han | f48ceb4 | 2021-06-01 18:00:04 +0900 | [diff] [blame] | 67 | rustlibs: [ |
| 68 | "libtempfile", |
| 69 | ], |
| 70 | multilib: { |
| 71 | lib32: { |
| 72 | enabled: false, |
| 73 | }, |
| 74 | }, |
| 75 | } |