blob: cca36395f539a8de59927bb3245b3a29acd795fc [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",
Alice Wang6bbb6da2022-10-26 12:44:06 +000016 "liblazy_static",
Alice Wangfb46ee12022-09-30 13:08:52 +000017 "liblog_rust",
Alice Wang2be64f32022-10-13 14:37:35 +000018 "librpcbinder_rs",
Alice Wangfb46ee12022-09-30 13:08:52 +000019 ],
Andrew Sculle4b02852022-10-06 18:53:56 +000020 apex_available: [
21 "com.android.compos",
22 ],
Alice Wang8d7e1072022-11-02 17:42:52 +000023 sanitize: {
24 address: false,
25 },
Alice Wangfb46ee12022-09-30 13:08:52 +000026}
Alice Wangbd569a02022-10-06 15:23:24 +000027
28rust_bindgen {
29 name: "libvm_payload_bindgen",
30 wrapper_src: "include/vm_payload.h",
31 crate_name: "vm_payload_bindgen",
32 source_stem: "bindings",
33 apex_available: ["com.android.compos"],
34 visibility: ["//packages/modules/Virtualization/compos"],
35 shared_libs: [
36 "libvm_payload",
37 ],
38}
Alan Stokes52d3c722022-10-04 17:27:13 +010039
40cc_library_headers {
41 name: "vm_payload_headers",
42 export_include_dirs: ["include"],
43}