Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | rust_binary { |
| 6 | name: "vfio_handler", |
| 7 | crate_name: "vfio_handler", |
Nikita Ioffe | da1b273 | 2023-09-04 13:46:56 +0100 | [diff] [blame] | 8 | defaults: ["avf_build_flags_rust"], |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 9 | 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 Park | 2227eaa | 2023-08-04 11:59:18 +0900 | [diff] [blame] | 26 | "libanyhow", |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 27 | "libbinder_rs", |
| 28 | "liblog_rust", |
| 29 | "libnix", |
Seungjae Yoo | db2d9cb | 2023-08-14 09:11:29 +0900 | [diff] [blame] | 30 | "librustutils", |
Andrew Walbran | 47d316e | 2024-11-28 18:41:09 +0000 | [diff] [blame] | 31 | "libzerocopy", |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 32 | ], |
| 33 | apex_available: ["com.android.virt"], |
| 34 | } |