• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "external_crosvm_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-BSD
10    default_applicable_licenses: ["external_crosvm_license"],
11}
12
13rust_library {
14    name: "librutabaga_gfx",
15    defaults: ["crosvm_inner_defaults"],
16    host_supported: true,
17    crate_name: "rutabaga_gfx",
18    cargo_env_compat: true,
19    cargo_pkg_version: "0.1.1-alpha.1",
20    srcs: ["src/lib.rs"],
21    edition: "2021",
22    features: [
23        "virgl_renderer",
24        "virgl_renderer_next",
25    ],
26    rustlibs: [
27        "libcfg_if",
28        "libdata_model",
29        "liblibc",
30        "liblog_rust",
31        "libnix",
32        "libserde",
33        "libthiserror",
34        "libzerocopy",
35    ],
36    proc_macros: ["libremain"],
37    target: {
38        host: {
39            features: ["gfxstream"],
40            shared_libs: [
41                "libgfxstream_backend",
42                "libvirglrenderer",
43            ],
44        },
45        android: {
46            shared_libs: [
47                "libcutils",
48                "libdrm",
49            ],
50            static_libs: [
51                "libepoxy",
52                "libgbm",
53                "libvirglrenderer",
54            ],
55        },
56    },
57}
58
59rust_test {
60    name: "rutabaga_gfx_test_src_lib",
61    defaults: ["crosvm_inner_defaults"],
62    host_supported: true,
63    crate_name: "rutabaga_gfx",
64    cargo_env_compat: true,
65    cargo_pkg_version: "0.1.1-alpha.1",
66    srcs: ["src/lib.rs"],
67    test_suites: ["general-tests"],
68    auto_gen_config: true,
69    test_options: {
70        unit_test: true,
71    },
72    edition: "2021",
73    features: [
74        "virgl_renderer",
75        "virgl_renderer_next",
76    ],
77    rustlibs: [
78        "libcfg_if",
79        "libdata_model",
80        "liblibc",
81        "liblog_rust",
82        "libnix",
83        "libserde",
84        "libthiserror",
85        "libzerocopy",
86    ],
87    proc_macros: ["libremain"],
88    target: {
89        host: {
90            features: ["gfxstream"],
91            shared_libs: [
92                "libgfxstream_backend",
93                "libvirglrenderer",
94            ],
95        },
96        android: {
97            shared_libs: [
98                "libcutils",
99                "libdrm",
100            ],
101            static_libs: [
102                "libepoxy",
103                "libgbm",
104                "libvirglrenderer",
105            ],
106        },
107    },
108}
109