2021-05-27 15:05:14 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2021-06-01 09:00:04 +00:00
|
|
|
rust_defaults {
|
|
|
|
name: "microdroid_manager_defaults",
|
2021-05-27 15:05:14 +00:00
|
|
|
crate_name: "microdroid_manager",
|
|
|
|
srcs: ["src/main.rs"],
|
2022-08-31 12:41:28 +00:00
|
|
|
edition: "2021",
|
2021-05-27 15:05:14 +00:00
|
|
|
prefer_rlib: true,
|
|
|
|
rustlibs: [
|
2022-01-21 14:41:34 +00:00
|
|
|
"android.hardware.security.dice-V1-rust",
|
2022-01-21 14:36:55 +00:00
|
|
|
"android.security.dice-rust",
|
2021-08-19 04:17:40 +00:00
|
|
|
"android.system.virtualizationservice-rust",
|
|
|
|
"android.system.virtualmachineservice-rust",
|
2021-05-27 15:05:14 +00:00
|
|
|
"libanyhow",
|
2022-04-25 18:13:21 +00:00
|
|
|
"libapexutil_rust",
|
2021-08-06 05:08:16 +00:00
|
|
|
"libapkverify",
|
2021-08-19 04:17:40 +00:00
|
|
|
"libbinder_rs",
|
2021-08-27 17:32:17 +00:00
|
|
|
"libbyteorder",
|
2022-01-21 14:41:34 +00:00
|
|
|
"libdiced_utils",
|
2021-12-01 10:49:00 +00:00
|
|
|
"libglob",
|
2021-08-27 17:32:17 +00:00
|
|
|
"libidsig",
|
2021-12-01 10:49:00 +00:00
|
|
|
"libitertools",
|
2021-06-25 04:06:25 +00:00
|
|
|
"libkernlog",
|
2022-05-24 19:32:47 +00:00
|
|
|
"libkeystore2_crypto_rust",
|
2021-07-02 12:38:21 +00:00
|
|
|
"liblibc",
|
2021-05-27 15:05:14 +00:00
|
|
|
"liblog_rust",
|
2021-06-25 03:02:33 +00:00
|
|
|
"libmicrodroid_metadata",
|
2021-06-10 07:27:38 +00:00
|
|
|
"libmicrodroid_payload_config",
|
2021-08-20 11:50:47 +00:00
|
|
|
"libnix",
|
2021-12-06 12:18:38 +00:00
|
|
|
"libonce_cell",
|
2022-05-24 19:32:47 +00:00
|
|
|
"libopenssl",
|
2021-05-27 15:05:14 +00:00
|
|
|
"libprotobuf",
|
2022-08-08 15:33:34 +00:00
|
|
|
"librpcbinder_rs",
|
2021-07-29 22:53:53 +00:00
|
|
|
"librustutils",
|
2022-06-21 02:30:22 +00:00
|
|
|
"libscopeguard",
|
2021-05-27 15:05:14 +00:00
|
|
|
"libserde",
|
2021-09-07 16:42:54 +00:00
|
|
|
"libserde_cbor",
|
2021-06-25 04:06:25 +00:00
|
|
|
"libserde_json",
|
2021-11-23 06:26:20 +00:00
|
|
|
"libthiserror",
|
2021-08-27 17:32:17 +00:00
|
|
|
"libuuid",
|
2021-07-09 09:17:44 +00:00
|
|
|
"libvsock",
|
2021-08-27 17:32:17 +00:00
|
|
|
"librand",
|
2021-05-27 15:05:14 +00:00
|
|
|
],
|
2021-08-19 04:17:40 +00:00
|
|
|
shared_libs: [
|
|
|
|
"libbinder_rpc_unstable",
|
|
|
|
],
|
2021-05-27 15:05:14 +00:00
|
|
|
init_rc: ["microdroid_manager.rc"],
|
2021-08-27 17:32:17 +00:00
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2021-05-27 15:05:14 +00:00
|
|
|
}
|
2021-06-01 09:00:04 +00:00
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "microdroid_manager",
|
|
|
|
defaults: ["microdroid_manager_defaults"],
|
2021-07-29 08:21:20 +00:00
|
|
|
bootstrap: true,
|
2021-06-01 09:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "microdroid_manager_test",
|
|
|
|
defaults: ["microdroid_manager_defaults"],
|
2022-02-04 02:49:31 +00:00
|
|
|
test_suites: ["general-tests"],
|
2021-06-01 09:00:04 +00:00
|
|
|
rustlibs: [
|
|
|
|
"libtempfile",
|
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|