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", |
| 8 | edition: "2021", |
| 9 | srcs: ["src/main.rs"], |
| 10 | // Only build on targets which crosvm builds on. |
| 11 | enabled: false, |
| 12 | target: { |
| 13 | android64: { |
| 14 | compile_multilib: "64", |
| 15 | enabled: true, |
| 16 | }, |
| 17 | linux_bionic_arm64: { |
| 18 | enabled: true, |
| 19 | }, |
| 20 | }, |
| 21 | prefer_rlib: true, |
| 22 | rustlibs: [ |
| 23 | "android.system.virtualizationservice_internal-rust", |
| 24 | "libandroid_logger", |
Jiyong Park | 2227eaa | 2023-08-04 11:59:18 +0900 | [diff] [blame] | 25 | "libanyhow", |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 26 | "libbinder_rs", |
Jiyong Park | 2227eaa | 2023-08-04 11:59:18 +0900 | [diff] [blame] | 27 | "liblazy_static", |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 28 | "liblog_rust", |
| 29 | "libnix", |
Seungjae Yoo | db2d9cb | 2023-08-14 09:11:29 +0900 | [diff] [blame^] | 30 | "librustutils", |
| 31 | "libzerocopy", |
Inseob Kim | bdca047 | 2023-07-28 19:20:56 +0900 | [diff] [blame] | 32 | ], |
| 33 | apex_available: ["com.android.virt"], |
| 34 | } |