Clone this repo:


  1. ab80606 [licenses] Add applicable_licenses to proto_library.gni by Yaar Schnitman · 4 months ago main
  2. d686249 [cobal][protoc_wrapper] Explicitly use python3.11 by Anivia Li · 6 months ago
  3. dc3e5f6 Merge "[protobuf] Add a protoc target in all toolchains" into main by Ian McKellar · 9 months ago
  4. d6d4a77 [protobuf] Add a protoc target in all toolchains by Ian McKellar · 9 months ago
  5. ca669f7 [protobuf] Supress deprecated-declaration warning on Mac by Eric Seidel · 10 months ago

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.