commit | bd747daff95ee3d805e33e6911a1270205d1aa82 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Tue Jul 27 17:31:22 2021 +0200 |
committer | David 'Digit' Turner <digit@google.com> | Wed Jul 28 03:09:58 2021 +0200 |
tree | ca419a445d9c18a7a5e35c1f332acc760677ebcd | |
parent | d7f07ade6e13efb10eb9c242bf8ff01c3ba05a13 [diff] |
[build] Support gRPC golang bindings in proto_library(). This CL adds a new parameter named 'generate_go_grpc' to the 'proto_library()' template, which is enabled to indicate that a gRPC go stub, instead of a regular one, should be generated by the template call. This will call 'protoc-gen-go-grpc' instead of 'protoc-gen-go' and will add a suffix of '_grpb.pb.go', instead of '.pb.go' to the generated source file. Bug: 72810 Change-Id: I0ae9595ce0ade7611764c1bec294fdcdb8faa9b2
This repository contains GN build system support for Protocol Buffers. It's in its own repository because it needs to be shared by Fuchsia and Cobalt.
This repo should be checked out such that:
//build/secondary/third_party/protobuf
.//third_party/protobuf
.//.gn
contains secondary_source = "//build/secondary/"
See the GN documentation on secondary_source.