xref: /aosp_15_r20/external/crosvm/protos/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_library {
16    name: "libprotos",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "protos",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "composite-disk",
26        "registered_events",
27    ],
28    rustlibs: [
29        "libcdisk_spec_proto",
30        "libprotobuf",
31        "libregistered_events_proto",
32    ],
33}
34
35rust_protobuf {
36    name: "libcdisk_spec_proto",
37    crate_name: "cdisk_spec_proto",
38    protos: ["src/cdisk_spec.proto"],
39    source_stem: "cdisk_spec",
40    host_supported: true,
41    apex_available: [
42        "com.android.virt",
43    ],
44}
45
46rust_protobuf {
47    name: "libregistered_events_proto",
48    crate_name: "registered_events_proto",
49    protos: ["src/registered_events.proto"],
50    source_stem: "registered_events",
51    host_supported: true,
52    apex_available: [
53        "com.android.virt",
54    ],
55}
56
57rust_protobuf {
58    name: "libcrosvm_plugin_proto",
59    crate_name: "crosvm_plugin_proto",
60    protos: ["src/plugin.proto"],
61    source_stem: "plugin",
62    host_supported: true,
63}
64