• 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: "kvm_sys_test_tests_basic",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "basic",
18    cargo_env_compat: true,
19    srcs: ["tests/basic.rs"],
20    test_suites: ["general-tests"],
21    auto_gen_config: true,
22    test_options: {
23        unit_test: false,
24    },
25    edition: "2021",
26    rustlibs: [
27        "libbase_rust",
28        "libdata_model",
29        "libkvm_sys",
30        "liblibc",
31    ],
32}
33
34rust_library {
35    name: "libkvm_sys",
36    defaults: ["crosvm_defaults"],
37    host_supported: true,
38    crate_name: "kvm_sys",
39    cargo_env_compat: true,
40    srcs: ["src/lib.rs"],
41    edition: "2021",
42    rustlibs: [
43        "libbase_rust",
44        "libdata_model",
45        "liblibc",
46    ],
47}
48