blob: 925928ee02c2a372728d1f2896156bd54ceff3c7 [file] [log] [blame]
Alice Wangfb46ee12022-09-30 13:08:52 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Alice Wang609299c2022-10-07 11:39:50 +00005rust_ffi_shared {
Alice Wangfb46ee12022-09-30 13:08:52 +00006 name: "libvm_payload",
7 crate_name: "vm_payload",
8 srcs: ["src/*.rs"],
9 include_dirs: ["include"],
10 prefer_rlib: true,
11 rustlibs: [
Alice Wang59a9e562022-10-04 15:24:10 +000012 "android.system.virtualization.payload-rust",
Alice Wangfb46ee12022-09-30 13:08:52 +000013 "libandroid_logger",
14 "libanyhow",
15 "libbinder_rs",
16 "liblog_rust",
Alice Wangfb46ee12022-09-30 13:08:52 +000017 ],
Andrew Sculle4b02852022-10-06 18:53:56 +000018 apex_available: [
19 "com.android.compos",
20 ],
Alice Wangfb46ee12022-09-30 13:08:52 +000021}
Alice Wangbd569a02022-10-06 15:23:24 +000022
23rust_bindgen {
24 name: "libvm_payload_bindgen",
25 wrapper_src: "include/vm_payload.h",
26 crate_name: "vm_payload_bindgen",
27 source_stem: "bindings",
28 apex_available: ["com.android.compos"],
29 visibility: ["//packages/modules/Virtualization/compos"],
30 shared_libs: [
31 "libvm_payload",
32 ],
33}
Alan Stokes52d3c722022-10-04 17:27:13 +010034
35cc_library_headers {
36 name: "vm_payload_headers",
37 export_include_dirs: ["include"],
38}