xref: /aosp_15_r20/external/crosvm/aarch64/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: "libaarch64",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "aarch64",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "gdb",
26        "gdbstub",
27        "gdbstub_arch",
28    ],
29    rustlibs: [
30        "libanyhow",
31        "libarch",
32        "libbase_rust",
33        "libcros_fdt",
34        "libdevices",
35        "libgdbstub",
36        "libgdbstub_arch",
37        "libhypervisor",
38        "libjail",
39        "libkernel_cmdline",
40        "libkernel_loader",
41        "liblibc",
42        "libminijail_rust",
43        "librand",
44        "libresources",
45        "libswap",
46        "libsync_rust",
47        "libthiserror",
48        "libvm_control",
49        "libvm_memory",
50    ],
51    proc_macros: ["libremain"],
52    visibility: ["//vendor:__subpackages__"],
53    target: {
54        // It is necessary to disable this specifically as well as the arch below, because
55        // crosvm_defaults enables it and the more specific target apparently takes precedence over
56        // the less specific arch.
57        linux_glibc_x86_64: {
58            enabled: false,
59        },
60        linux_musl_x86_64: {
61            enabled: false,
62        },
63    },
64    arch: {
65        x86_64: {
66            enabled: false,
67        },
68    },
69
70}
71