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"],
|
|
|
|
edition: "2018",
|
|
|
|
prefer_rlib: true,
|
|
|
|
rustlibs: [
|
2021-06-16 01:32:02 +00:00
|
|
|
"libenv_logger",
|
2021-05-27 15:05:14 +00:00
|
|
|
"libanyhow",
|
2021-06-10 07:27:38 +00:00
|
|
|
"libkeystore2_system_property-rust",
|
2021-05-27 15:05:14 +00:00
|
|
|
"liblog_rust",
|
2021-06-08 08:10:21 +00:00
|
|
|
"libmicrodroid_metadata_proto_rust",
|
2021-06-10 07:27:38 +00:00
|
|
|
"libmicrodroid_payload_config",
|
2021-05-27 15:05:14 +00:00
|
|
|
"libprotobuf",
|
|
|
|
"libserde_json",
|
|
|
|
"libserde",
|
|
|
|
],
|
|
|
|
init_rc: ["microdroid_manager.rc"],
|
|
|
|
}
|
2021-06-01 09:00:04 +00:00
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "microdroid_manager",
|
|
|
|
defaults: ["microdroid_manager_defaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "microdroid_manager_test",
|
|
|
|
defaults: ["microdroid_manager_defaults"],
|
|
|
|
test_suites: ["device-tests"],
|
|
|
|
rustlibs: [
|
|
|
|
"libtempfile",
|
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|