Add generate_descriptor for compatibility with Chrome proto_library.

Chrome's proto_library rule, which is used by Perfetto, allows
targets to specify arbitrary locations for the generated protobuf
descriptor files.

With this change, |generate_descriptor| is now handled properly by Fuchsia's
proto_library rule.

Bug: 85561
Change-Id: Iae3ef3eee67e84ff9636b6dd7c3125d525f4abac
1 file changed
tree: 3a9340e442d9a585beca9fb7e0702189f099abbc
  1. AUTHORS
  2. BUILD.gn
  3. CONTRIBUTING.md
  4. LICENSE
  5. OWNERS
  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.