package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

blueprint_go_binary {
    name: "extract_apks",
    srcs: ["main.go"],
    deps: [
        "android-archive-zip",
        "golang-protobuf-proto",
        "golang-protobuf-encoding-prototext",
        "soong-cmd-extract_apks-proto",
    ],
    testSrcs: ["main_test.go"],
}

bootstrap_go_package {
    name: "soong-cmd-extract_apks-proto",
    pkgPath: "android/soong/cmd/extract_apks/bundle_proto",
    deps: [
        "golang-protobuf-reflect-protoreflect",
        "golang-protobuf-runtime-protoimpl",
    ],
    srcs: [
        "bundle_proto/commands.pb.go",
        "bundle_proto/config.pb.go",
        "bundle_proto/targeting.pb.go",
    ],
}
