Merge "Add support for java streaming proto" am: 22e973c539 am: a224d53694 am: c1ce0ed41c am: 6cc658af6b

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1874416

Change-Id: I1f26754b6a544975fa53f418c7b96f6ffb0cf408
This commit is contained in:
Joe Onorato
2021-11-01 01:09:15 +00:00
committed by Automerger Merge Worker

View File

@@ -102,6 +102,9 @@ func protoFlags(ctx android.ModuleContext, j *CommonProperties, p *android.Proto
if String(p.Proto.Plugin) == "" { if String(p.Proto.Plugin) == "" {
var typeToPlugin string var typeToPlugin string
switch String(p.Proto.Type) { switch String(p.Proto.Type) {
case "stream":
flags.proto.OutTypeFlag = "--javastream_out"
typeToPlugin = "javastream"
case "micro": case "micro":
flags.proto.OutTypeFlag = "--javamicro_out" flags.proto.OutTypeFlag = "--javamicro_out"
typeToPlugin = "javamicro" typeToPlugin = "javamicro"