Support protobuf v3.8.0.

I picked this version because:
* v3.7.0 removed the js_embed binary. In order to make it work in GN,
  we had modified its source code. So this would have prevented us from
  un-forking protobuf.
* v3.8.0 fixes some clang warnings that were in header files that were
  transitively included by users of C++ generated protobuf code. I
  was finding it difficult to elegantly supress these warnings, so best
  to just skip to the version that doesn't trigger them.

Bug: 59636
Change-Id: I9b7a19070580f9b4fef311b3b837359e11d55900
1 file changed
tree: 5ea1c713897fa92ef90bc3a4c7d0dedc88ad9604
  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.