Default to compiling lite protos
Soong was incorrectly defaulting to compiling for full protos but using the lite runtime. Switch to compiling lite protos by default. Fixes: 119714316 Test: m checkbuild Change-Id: I0832b854f01f2acb10682e68ce7cc68753ca9dda
This commit is contained in:
@@ -108,10 +108,10 @@ func protoFlags(ctx android.ModuleContext, j *CompilerProperties, p *android.Pro
|
|||||||
case "nano":
|
case "nano":
|
||||||
flags.proto.OutTypeFlag = "--javanano_out"
|
flags.proto.OutTypeFlag = "--javanano_out"
|
||||||
typeToPlugin = "javanano"
|
typeToPlugin = "javanano"
|
||||||
case "lite":
|
case "lite", "":
|
||||||
flags.proto.OutTypeFlag = "--java_out"
|
flags.proto.OutTypeFlag = "--java_out"
|
||||||
flags.proto.OutParams = append(flags.proto.OutParams, "lite")
|
flags.proto.OutParams = append(flags.proto.OutParams, "lite")
|
||||||
case "full", "":
|
case "full":
|
||||||
flags.proto.OutTypeFlag = "--java_out"
|
flags.proto.OutTypeFlag = "--java_out"
|
||||||
default:
|
default:
|
||||||
ctx.PropertyErrorf("proto.type", "unknown proto type %q",
|
ctx.PropertyErrorf("proto.type", "unknown proto type %q",
|
||||||
|
Reference in New Issue
Block a user