platform_build_soong/cmd/extract_apks/Android.bp
Dan Willemsen 4591b6496d Upgrade to golang protobuf api v2
Major operations:
 * Fix the go_package entries to be consistent, as the new tool
   complains when it doesn't have a '/'.
 * Regenerate with the new protoc-gen-go tool.
 * github.com/golang/protobuf -> google.golang.org/protobuf
 * proto.[Un]MarshalText -> prototext.[Un]Marshal

Change-Id: Ie1147bd2457fafb66ba555461b3bf14f0561a25d
2021-07-23 11:12:05 -07:00

29 lines
719 B
Text

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",
],
}