Lines Matching refs:flags
25 func genProto(ctx android.ModuleContext, protoFile android.Path, flags builderFlags) (cc, header an…
29 if flags.protoC {
33 if flags.proto.CanonicalPathFromRoot {
42 protoDeps := flags.proto.Deps
43 if flags.protoOptionsFile {
49 outDir := flags.proto.Dir
55 android.ProtoRule(rule, protoFile, flags.proto, protoDeps, outDir, depFile, outputs)
116 func protoFlags(ctx ModuleContext, flags Flags, p *android.ProtoProperties) Flags {
117 flags.Local.CFlags = append(flags.Local.CFlags, "-DGOOGLE_PROTOBUF_NO_RTTI")
119 flags.proto = android.GetProtoFlags(ctx, p)
120 if flags.proto.CanonicalPathFromRoot {
121 flags.Local.CommonFlags = append(flags.Local.CommonFlags, "-I"+flags.proto.SubDir.String())
123 flags.Local.CommonFlags = append(flags.Local.CommonFlags, "-I"+flags.proto.Dir.String())
130 flags.protoC = true
131 flags.protoOptionsFile = true
132 flags.proto.OutTypeFlag = "--nanopb_out"
134 flags.proto.OutParams = append(flags.proto.OutParams, "-T")
137 flags.proto.OutTypeFlag = "--cpp_out"
139 flags.proto.OutTypeFlag = "--cpp_out"
140 flags.proto.OutParams = append(flags.proto.OutParams, "lite")
145 flags.proto.OutTypeFlag = "--cpp_out"
153 flags.proto.Deps = append(flags.proto.Deps, path)
154 flags.proto.Flags = append(flags.proto.Flags, "--plugin="+path.String())
158 return flags