1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5rust_defaults { 6 name: "vm.defaults", 7 crate_name: "vm", 8 defaults: ["avf_build_flags_rust"], 9 srcs: ["src/main.rs"], 10 edition: "2021", 11 prefer_rlib: true, 12 rustlibs: [ 13 "android.system.virtualizationservice-rust", 14 "libanyhow", 15 "libavf_features", 16 "libbinder_rs", 17 "libclap", 18 "libenv_logger", 19 "libglob", 20 "libhypervisor_props", 21 "liblibc", 22 "liblog_rust", 23 "libmicrodroid_payload_config", 24 "librand", 25 "libserde_json", 26 "libserde", 27 "libvmconfig", 28 "libvmclient", 29 "libzip", 30 ], 31} 32 33rust_binary { 34 name: "vm", 35 defaults: ["vm.defaults"], 36 apex_available: [ 37 "com.android.virt", 38 ], 39} 40 41rust_test { 42 name: "vm.test", 43 defaults: ["vm.defaults"], 44 test_suites: ["general-tests"], 45 compile_multilib: "first", 46} 47 48sh_binary_host { 49 name: "vm_shell", 50 src: "vm_shell.sh", 51} 52