• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --run --device --tests --global_defaults=crosvm_defaults --add_workspace.
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: "libvhost",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "vhost",
18    cargo_env_compat: true,
19    cargo_pkg_version: "0.1.0",
20    srcs: ["src/lib.rs"],
21    edition: "2021",
22    rustlibs: [
23        "libassertions",
24        "libbase_rust",
25        "liblibc",
26        "libnet_util",
27        "libthiserror",
28        "libvirtio_sys",
29        "libvm_memory",
30    ],
31    proc_macros: ["libremain"],
32}
33
34rust_test {
35    name: "vhost_test_src_lib",
36    defaults: ["crosvm_defaults"],
37    host_supported: true,
38    crate_name: "vhost",
39    cargo_env_compat: true,
40    cargo_pkg_version: "0.1.0",
41    srcs: ["src/lib.rs"],
42    test_suites: ["general-tests"],
43    auto_gen_config: true,
44    test_options: {
45        unit_test: true,
46    },
47    edition: "2021",
48    rustlibs: [
49        "libassertions",
50        "libbase_rust",
51        "liblibc",
52        "libnet_util",
53        "libthiserror",
54        "libvirtio_sys",
55        "libvm_memory",
56    ],
57    proc_macros: ["libremain"],
58}
59