package { default_applicable_licenses: ["Android-Apache-2.0"], } rust_ffi_static { name: "librialto", crate_name: "rialto", srcs: ["src/main.rs"], edition: "2021", defaults: ["vmbase_ffi_defaults"], rustlibs: [ "libaarch64_paging", "libbuddy_system_allocator", "liblog_rust_nostd", "libvmbase", ], apex_available: ["com.android.virt"], } cc_binary { name: "rialto_elf", stem: "rialto", defaults: ["vmbase_elf_defaults"], srcs: [ "idmap.S", ], static_libs: [ "librialto", "libvmbase_entry", ], linker_scripts: [ "image.ld", ":vmbase_sections", ], apex_available: ["com.android.virt"], } raw_binary { name: "rialto", src: ":rialto_elf", enabled: false, target: { android_arm64: { enabled: true, }, }, } rust_test { name: "rialto_test", crate_name: "rialto_test", srcs: ["tests/test.rs"], prefer_rlib: true, edition: "2021", rustlibs: [ "android.system.virtualizationservice-rust", "libandroid_logger", "libanyhow", "liblibc", "liblog_rust", "libnix", "libvmclient", ], data: [ ":rialto", ], test_suites: ["general-tests"], enabled: false, target: { android_arm64: { enabled: true, }, }, }