[protobuf] Add a protoc target in all toolchains

I need to be able to refer to the host toolchain target's protoc target
from any toolchain without having to spell $host_toolchain. This is to
allow some mixing of Fuchsia & Pigweed build systems.

This just creates a target in non-host toolchains that forwards to the
host toolchain.

Change-Id: Ib28496777f0f62d013dac95d3c14901b2f009e06
2 files changed
tree: 7a6635d4028d96a78d7d0f56dd4390b0c16c1314
  1. AUTHORS
  2. BUILD.gn
  3. BUILD.input.gn
  4. CONTRIBUTING.md
  5. gen.py
  6. LICENSE
  7. OWNERS
  8. PATENTS
  9. proto_library.gni
  10. protoc_wrapper.py
  11. 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.