Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89467c31 authored by Wenshan Fu's avatar Wenshan Fu
Browse files

aconfig: create java libraries for aconfig proto

Host side test infra needs the library to consume the dumped flags info
generated by aconfig.

Test: m libaconfig_java_proto_lite libaconfig_java_proto_full
Bug: 289906970
Change-Id: I9891cb8445b90f7269e0c679ceaae6bc102bbb0c
parent 235662f1
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -2,6 +2,28 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

// proto libraries for consumers of `aconfig dump --format=protobuf` output

java_library {
    name: "libaconfig_java_proto_lite",
    host_supported: true,
    srcs: ["protos/aconfig.proto"],
    static_libs: ["libprotobuf-java-lite"],
    proto: {
        type: "lite",
    },
    sdk_version: "current",
}

java_library_host {
    name: "libaconfig_java_proto_full",
    srcs: ["protos/aconfig.proto"],
    static_libs: ["libprotobuf-java-full"],
    proto: {
        type: "full",
    },
}

// host binary: aconfig

rust_protobuf_host {