• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
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_library {
14    name: "libvm_control",
15    defaults: ["crosvm_inner_defaults"],
16    host_supported: true,
17    crate_name: "vm_control",
18    cargo_env_compat: true,
19    cargo_pkg_version: "0.1.0",
20    srcs: ["src/lib.rs"],
21    edition: "2021",
22    features: [
23        "balloon",
24        "gdb",
25        "gdbstub",
26        "gdbstub_arch",
27    ],
28    rustlibs: [
29        "libanyhow",
30        "libballoon_control",
31        "libbase_rust",
32        "libcfg_if",
33        "libdata_model",
34        "libgdbstub",
35        "libgdbstub_arch",
36        "libhypervisor",
37        "liblibc",
38        "libresources",
39        "librutabaga_gfx",
40        "libserde",
41        "libserde_json",
42        "libserde_keyvalue",
43        "libsync_rust",
44        "libthiserror",
45        "libvm_memory",
46    ],
47    proc_macros: ["libremain"],
48    visibility: ["//packages/modules/Virtualization/virtualizationmanager"],
49    target: {
50        host_linux: {
51            features: [
52                "gpu",
53            ],
54        },
55    },
56
57}
58
59rust_test {
60    name: "vm_control_test_src_lib",
61    defaults: ["crosvm_inner_defaults"],
62    host_supported: true,
63    crate_name: "vm_control",
64    cargo_env_compat: true,
65    cargo_pkg_version: "0.1.0",
66    srcs: ["src/lib.rs"],
67    test_suites: ["general-tests"],
68    auto_gen_config: true,
69    test_options: {
70        unit_test: true,
71    },
72    edition: "2021",
73    features: [
74        "balloon",
75        "gdb",
76        "gdbstub",
77        "gdbstub_arch",
78    ],
79    rustlibs: [
80        "libanyhow",
81        "libballoon_control",
82        "libbase_rust",
83        "libcfg_if",
84        "libdata_model",
85        "libgdbstub",
86        "libgdbstub_arch",
87        "libhypervisor",
88        "liblibc",
89        "libresources",
90        "librutabaga_gfx",
91        "libserde",
92        "libserde_json",
93        "libserde_keyvalue",
94        "libsync_rust",
95        "libthiserror",
96        "libvm_memory",
97    ],
98    proc_macros: ["libremain"],
99    target: {
100        host_linux: {
101            features: [
102                "gpu",
103            ],
104        },
105    },
106
107}
108