2022-09-30 13:08:52 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2022-10-07 11:39:50 +00:00
|
|
|
rust_ffi_shared {
|
2022-09-30 13:08:52 +00:00
|
|
|
name: "libvm_payload",
|
|
|
|
crate_name: "vm_payload",
|
|
|
|
srcs: ["src/*.rs"],
|
|
|
|
include_dirs: ["include"],
|
|
|
|
prefer_rlib: true,
|
|
|
|
rustlibs: [
|
2022-10-04 15:24:10 +00:00
|
|
|
"android.system.virtualization.payload-rust",
|
2022-09-30 13:08:52 +00:00
|
|
|
"libandroid_logger",
|
|
|
|
"libanyhow",
|
|
|
|
"libbinder_rs",
|
2022-10-26 12:44:06 +00:00
|
|
|
"liblazy_static",
|
2022-09-30 13:08:52 +00:00
|
|
|
"liblog_rust",
|
2022-10-13 14:37:35 +00:00
|
|
|
"librpcbinder_rs",
|
2022-09-30 13:08:52 +00:00
|
|
|
],
|
2022-10-06 18:53:56 +00:00
|
|
|
apex_available: [
|
|
|
|
"com.android.compos",
|
|
|
|
],
|
2022-11-03 08:19:02 +00:00
|
|
|
// The sanitize section below fixes the fuzzer build in b/256166339.
|
|
|
|
// TODO(b/250854486): Remove the sanitize section once the bug is fixed.
|
2022-11-02 17:42:52 +00:00
|
|
|
sanitize: {
|
|
|
|
address: false,
|
|
|
|
},
|
2022-09-30 13:08:52 +00:00
|
|
|
}
|
2022-10-06 15:23:24 +00:00
|
|
|
|
|
|
|
rust_bindgen {
|
|
|
|
name: "libvm_payload_bindgen",
|
|
|
|
wrapper_src: "include/vm_payload.h",
|
|
|
|
crate_name: "vm_payload_bindgen",
|
|
|
|
source_stem: "bindings",
|
|
|
|
apex_available: ["com.android.compos"],
|
|
|
|
visibility: ["//packages/modules/Virtualization/compos"],
|
|
|
|
shared_libs: [
|
|
|
|
"libvm_payload",
|
|
|
|
],
|
|
|
|
}
|
2022-10-04 16:27:13 +00:00
|
|
|
|
|
|
|
cc_library_headers {
|
|
|
|
name: "vm_payload_headers",
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
}
|