1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5cc_defaults {
6    name: "microdroid_metadata_default",
7    defaults: ["avf_build_flags_cc"],
8    host_supported: true,
9    srcs: [
10        "metadata.proto",
11        "metadata.cc",
12    ],
13    shared_libs: [
14        "libbase",
15        "liblog",
16    ],
17    export_include_dirs: ["include"],
18}
19
20cc_library_static {
21    name: "lib_microdroid_metadata_proto",
22    proto: {
23        export_proto_headers: true,
24        type: "full",
25    },
26    defaults: ["microdroid_metadata_default"],
27}
28
29rust_protobuf {
30    name: "libmicrodroid_metadata_proto_rust",
31    crate_name: "microdroid_metadata",
32    protos: ["metadata.proto"],
33    source_stem: "microdroid_metadata",
34    host_supported: true,
35    apex_available: [
36        "com.android.virt",
37    ],
38}
39
40java_library_host {
41    name: "microdroid_payload_metadata",
42    srcs: [
43        "src/**/*.java",
44        "metadata.proto",
45    ],
46    proto: {
47        type: "lite",
48    },
49}
50