• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    default_applicable_licenses: ["external_crosvm_license"],
13}
14
15rust_library {
16    name: "librutabaga_gfx",
17    defaults: ["crosvm_defaults"],
18    host_supported: true,
19    crate_name: "rutabaga_gfx",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.3",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "gfxstream",
26        "virgl_renderer",
27    ],
28    rustlibs: [
29        "libcfg_if",
30        "liblibc",
31        "liblog_rust",
32        "libnix",
33        "libserde",
34        "libserde_json",
35        "libthiserror",
36        "libzerocopy",
37    ],
38    proc_macros: ["libremain"],
39    static_libs: [
40        "libepoxy",
41        "libgfxstream_backend",
42        "libvirglrenderer",
43    ],
44    shared_libs: [
45        "libc++",
46        "libbase",
47    ],
48    apex_available: ["com.android.virt"],
49    cfgs: [
50        "gfxstream_unstable",
51    ],
52    target: {
53        android: {
54            shared_libs: [
55                "libnativewindow",
56                "libcutils",
57                "liblog",
58            ],
59        },
60        host: {
61            features: ["vulkano"],
62            rustlibs: [
63                "libvulkano",
64            ],
65        },
66    },
67}
68
69rust_test {
70    name: "rutabaga_gfx_test_src_lib",
71    defaults: ["crosvm_defaults"],
72    host_supported: true,
73    crate_name: "rutabaga_gfx",
74    cargo_env_compat: true,
75    cargo_pkg_version: "0.1.3",
76    crate_root: "src/lib.rs",
77    test_suites: ["general-tests"],
78    auto_gen_config: true,
79    test_options: {
80        unit_test: true,
81    },
82    edition: "2021",
83    features: [
84        "gfxstream",
85        "virgl_renderer",
86    ],
87    rustlibs: [
88        "libcfg_if",
89        "liblibc",
90        "liblog_rust",
91        "libnix",
92        "libserde",
93        "libserde_json",
94        "libtempfile",
95        "libthiserror",
96        "libzerocopy",
97    ],
98    proc_macros: ["libremain"],
99    shared_libs: [
100        "libepoxy",
101        "libgfxstream_backend",
102        "libvirglrenderer",
103    ],
104}
105
106// Manually written variant of librutabaga_gfx.
107// See https://r.android.com/2965726
108rust_library {
109    name: "librutabaga_gfx_gfxstream",
110    host_supported: true,
111    vendor_available: true,
112    crate_name: "rutabaga_gfx",
113    cargo_env_compat: true,
114    cargo_pkg_version: "0.1.2",
115    srcs: ["src/lib.rs"],
116    edition: "2021",
117    rustlibs: [
118        "libcfg_if",
119        "liblibc",
120        "liblog_rust",
121        "libnix",
122        "libserde",
123        "libserde_json",
124        "libthiserror",
125        "libzerocopy",
126    ],
127    proc_macros: ["libremain"],
128    target: {
129        host: {
130            cfgs: [
131                "fence_passing_option1",
132                "gfxstream_unstable",
133            ],
134            features: [
135                "gfxstream",
136                "vulkano",
137            ],
138            shared_libs: [
139                "libgfxstream_backend",
140            ],
141            compile_multilib: "64",
142            rustlibs: [
143                "libvulkano",
144            ],
145        },
146        android: {
147            cfgs: [
148                "fence_passing_option1",
149                "gfxstream_unstable",
150            ],
151        },
152    },
153    apex_available: ["com.android.virt"],
154}
155