xref: /aosp_15_r20/external/crosvm/crosvm_control/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_ffi_shared {
16    name: "libcrosvm_control_shared",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "crosvm_control",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    rustlibs: [
25        "libballoon_control",
26        "libbase_rust",
27        "liblibc",
28        "libswap",
29        "libvm_control",
30    ],
31    // The build.rs file compiles the generated C header just as a test, which
32    // tricks cargo_embargo into thinking there is a library dependency that
33    // doesn't actually exist.
34    //
35    // static_libs: ["libcrosvm_control_test"],
36}
37
38rust_ffi_static {
39    name: "libcrosvm_control_static",
40    defaults: ["crosvm_inner_defaults"],
41    host_supported: true,
42    crate_name: "crosvm_control",
43    cargo_env_compat: true,
44    cargo_pkg_version: "0.1.0",
45    crate_root: "src/lib.rs",
46    edition: "2021",
47    rustlibs: [
48        "libballoon_control",
49        "libbase_rust",
50        "liblibc",
51        "libswap",
52        "libvm_control",
53    ],
54    // The build.rs file compiles the generated C header just as a test, which
55    // tricks cargo_embargo into thinking there is a library dependency that
56    // doesn't actually exist.
57    //
58    // static_libs: ["libcrosvm_control_test"],
59    visibility: ["//packages/modules/Virtualization/android/virtmgr"],
60}
61