[protobuf] Always generate using v2

Turns out we can't build two different protoc-gen-go binaries in the
same checkout, so the only way to atomically move everything over to v2
is by changing the template.

Change-Id: I78f153399a84a0b249360a33bcce52f6a688a191
1 file changed
tree: ff1bccca955d3f5da9d27d3b2540093359c83b1b
  1. test/
  2. AUTHORS
  3. BUILD.gn
  4. CONTRIBUTING.md
  5. LICENSE
  6. PATENTS
  7. proto_library.gni
  8. protoc_wrapper.py
  9. README.md
README.md

Protocol Buffers GN Build Support

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:

  • It is in //build/secondary/third_party/protobuf.
  • Protobuf is in //third_party/protobuf.
  • //.gn contains secondary_source = "//build/secondary/"

See the GN documentation on secondary_source.