xref: /aosp_15_r20/external/crosvm/rutabaga_gfx/kumquat/gpu_client/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_crosvm_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-BSD
7    default_applicable_licenses: ["external_crosvm_license"],
8}
9
10cc_library_headers {
11    name: "virtgpu_kumquat_ffi_headers",
12    host_supported: true,
13    vendor_available: true,
14    export_include_dirs: ["src/include"],
15}
16
17// The following shared library is used by gfxstream guest libraries (for
18// example, libgfxstream_vulkan.so) for end2end testing (b:354706346) via
19// Kumquat:
20//
21// https://crosvm.dev/book/appendix/rutabaga_gfx.html#kumquat-media-server
22//
23// Since traditionally guest-side libraries link against it,
24// libvirtgpu_kumquat_ffi and it's main dependency (librutabaga_gfx_gfxstream)
25// support a wider degree of ABIs than crosvm itself does.  This simplifies the
26// guest gfxstream build.
27rust_ffi_shared {
28    name: "libvirtgpu_kumquat_ffi",
29    crate_name: "virtgpu_kumquat_ffi",
30    host_supported: true,
31    vendor_available: true,
32    srcs: ["src/lib.rs"],
33    rustlibs: [
34        "librutabaga_gfx_gfxstream",
35        "liblibc",
36        "liblog_rust",
37        "libnix",
38        "libthiserror",
39        "libzerocopy",
40    ],
41    target: {
42        host: {
43            compile_multilib: "64",
44        },
45    },
46}
47