blob: 3635cf1c3f135b0814c51c19b27efb8fe799de5a [file] [log] [blame]
Inseob Kimbdca0472023-07-28 19:20:56 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_binary {
6 name: "vfio_handler",
7 crate_name: "vfio_handler",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01008 defaults: ["avf_build_flags_rust"],
Inseob Kimbdca0472023-07-28 19:20:56 +09009 edition: "2021",
10 srcs: ["src/main.rs"],
11 // Only build on targets which crosvm builds on.
12 enabled: false,
13 target: {
14 android64: {
15 compile_multilib: "64",
16 enabled: true,
17 },
18 linux_bionic_arm64: {
19 enabled: true,
20 },
21 },
22 prefer_rlib: true,
23 rustlibs: [
24 "android.system.virtualizationservice_internal-rust",
25 "libandroid_logger",
Jiyong Park2227eaa2023-08-04 11:59:18 +090026 "libanyhow",
Inseob Kimbdca0472023-07-28 19:20:56 +090027 "libbinder_rs",
28 "liblog_rust",
29 "libnix",
Seungjae Yoodb2d9cb2023-08-14 09:11:29 +090030 "librustutils",
Andrew Walbran47d316e2024-11-28 18:41:09 +000031 "libzerocopy",
Inseob Kimbdca0472023-07-28 19:20:56 +090032 ],
33 apex_available: ["com.android.virt"],
34}