• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
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_test {
14    name: "arch_test_src_lib",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "arch",
18    cargo_env_compat: true,
19    cargo_pkg_version: "0.1.0",
20    srcs: ["src/lib.rs"],
21    test_suites: ["general-tests"],
22    auto_gen_config: true,
23    test_options: {
24        unit_test: true,
25    },
26    edition: "2021",
27    rustlibs: [
28        "libacpi_tables",
29        "libanyhow",
30        "libbase_rust",
31        "libdevices",
32        "libhypervisor",
33        "libkernel_cmdline",
34        "liblibc",
35        "libminijail_rust",
36        "libpower_monitor",
37        "libresources",
38        "libsync_rust",
39        "libthiserror",
40        "libvm_control",
41        "libvm_memory",
42    ],
43    proc_macros: ["libremain"],
44    target: {
45        host_linux: {
46            features: [
47                "gdb",
48            ],
49            rustlibs: [
50                "libgdbstub_arch",
51            ],
52        },
53    },
54
55}
56
57rust_library {
58    name: "libarch",
59    defaults: ["crosvm_defaults"],
60    host_supported: true,
61    crate_name: "arch",
62    cargo_env_compat: true,
63    cargo_pkg_version: "0.1.0",
64    srcs: ["src/lib.rs"],
65    edition: "2021",
66    rustlibs: [
67        "libacpi_tables",
68        "libanyhow",
69        "libbase_rust",
70        "libdevices",
71        "libhypervisor",
72        "libkernel_cmdline",
73        "liblibc",
74        "libminijail_rust",
75        "libpower_monitor",
76        "libresources",
77        "libsync_rust",
78        "libthiserror",
79        "libvm_control",
80        "libvm_memory",
81    ],
82    proc_macros: ["libremain"],
83    target: {
84        host_linux: {
85            features: [
86                "gdb",
87            ],
88            rustlibs: [
89                "libgdbstub_arch",
90            ],
91        },
92    },
93
94}
95