[protobuf] Emit depfile for proto imports

Updates protoc_wrapper.py to support emitting depfiles for proto
imports and updates proto_library.gni to enable that functionality.

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