package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "external_crosvm_license" // to get the below license kinds: // SPDX-license-identifier-BSD default_applicable_licenses: ["external_crosvm_license"], } cc_library_headers { name: "virtgpu_kumquat_ffi_headers", host_supported: true, vendor_available: true, export_include_dirs: ["src/include"], } // The following shared library is used by gfxstream guest libraries (for // example, libgfxstream_vulkan.so) for end2end testing (b:354706346) via // Kumquat: // // https://crosvm.dev/book/appendix/rutabaga_gfx.html#kumquat-media-server // // Since traditionally guest-side libraries link against it, // libvirtgpu_kumquat_ffi and it's main dependency (librutabaga_gfx_gfxstream) // support a wider degree of ABIs than crosvm itself does. This simplifies the // guest gfxstream build. rust_ffi_shared { name: "libvirtgpu_kumquat_ffi", crate_name: "virtgpu_kumquat_ffi", host_supported: true, vendor_available: true, srcs: ["src/lib.rs"], rustlibs: [ "librutabaga_gfx_gfxstream", "liblibc", "liblog_rust", "libnix", "libthiserror", "libzerocopy", ], target: { host: { compile_multilib: "64", }, }, }