xref: /aosp_15_r20/external/crosvm/resources/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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: "libresources",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "resources",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    rustlibs: [
25        "libbase_rust",
26        "liblibc",
27        "libserde",
28        "libthiserror",
29    ],
30    proc_macros: ["libremain"],
31}
32
33rust_test {
34    name: "resources_test_src_lib",
35    defaults: ["crosvm_inner_defaults"],
36    host_supported: true,
37    crate_name: "resources",
38    cargo_env_compat: true,
39    cargo_pkg_version: "0.1.0",
40    crate_root: "src/lib.rs",
41    test_suites: ["general-tests"],
42    auto_gen_config: true,
43    test_options: {
44        unit_test: true,
45    },
46    edition: "2021",
47    rustlibs: [
48        "libbase_rust",
49        "liblibc",
50        "libserde",
51        "libthiserror",
52    ],
53    proc_macros: ["libremain"],
54}
55