blob: dc314ced182318cfdffee0bdd5042a4e6688a5d7 [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 Wang2be64f32022-10-13 14:37:35 +000017 "librpcbinder_rs",
Alice Wangfb46ee12022-09-30 13:08:52 +000018 ],
Andrew Sculle4b02852022-10-06 18:53:56 +000019 apex_available: [
20 "com.android.compos",
21 ],
Alice Wangfb46ee12022-09-30 13:08:52 +000022}
Alice Wangbd569a02022-10-06 15:23:24 +000023
24rust_bindgen {
25 name: "libvm_payload_bindgen",
26 wrapper_src: "include/vm_payload.h",
27 crate_name: "vm_payload_bindgen",
28 source_stem: "bindings",
29 apex_available: ["com.android.compos"],
30 visibility: ["//packages/modules/Virtualization/compos"],
31 shared_libs: [
32 "libvm_payload",
33 ],
34}
Alan Stokes52d3c722022-10-04 17:27:13 +010035
36cc_library_headers {
37 name: "vm_payload_headers",
38 export_include_dirs: ["include"],
39}