xref: /aosp_15_r20/external/crosvm/arch/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_test {
16    name: "arch_test_src_lib",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "arch",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    test_suites: ["general-tests"],
24    auto_gen_config: true,
25    test_options: {
26        unit_test: true,
27    },
28    edition: "2021",
29    features: [
30        "gdb",
31        "gdbstub",
32        "gdbstub_arch",
33    ],
34    rustlibs: [
35        "libacpi_tables",
36        "libanyhow",
37        "libbase_rust",
38        "libcfg_if",
39        "libcros_fdt",
40        "libcros_tracing",
41        "libdevices",
42        "libgdbstub",
43        "libgdbstub_arch",
44        "libhypervisor",
45        "libjail",
46        "libkernel_cmdline",
47        "liblibc",
48        "libmetrics",
49        "libminijail_rust",
50        "libpower_monitor",
51        "libresources",
52        "libserde",
53        "libserde_json",
54        "libserde_keyvalue",
55        "libswap",
56        "libsync_rust",
57        "libtempfile",
58        "libthiserror",
59        "libuuid",
60        "libvm_control",
61        "libvm_memory",
62    ],
63    proc_macros: ["libremain"],
64}
65
66rust_library {
67    name: "libarch",
68    defaults: ["crosvm_inner_defaults"],
69    host_supported: true,
70    crate_name: "arch",
71    cargo_env_compat: true,
72    cargo_pkg_version: "0.1.0",
73    crate_root: "src/lib.rs",
74    edition: "2021",
75    features: [
76        "gdb",
77        "gdbstub",
78        "gdbstub_arch",
79    ],
80    rustlibs: [
81        "libacpi_tables",
82        "libanyhow",
83        "libbase_rust",
84        "libcfg_if",
85        "libcros_fdt",
86        "libcros_tracing",
87        "libdevices",
88        "libgdbstub",
89        "libgdbstub_arch",
90        "libhypervisor",
91        "libjail",
92        "libkernel_cmdline",
93        "liblibc",
94        "libmetrics",
95        "libminijail_rust",
96        "libpower_monitor",
97        "libresources",
98        "libserde",
99        "libserde_json",
100        "libserde_keyvalue",
101        "libswap",
102        "libsync_rust",
103        "libthiserror",
104        "libuuid",
105        "libvm_control",
106        "libvm_memory",
107    ],
108    proc_macros: ["libremain"],
109}
110