Linux: update protoc wrapper to allow building with system protobuf.

Now when using system protobuf the wrapper copies all relevant
.proto files to a temporary directory and removes parts not supported
by system protobuf.

No rewriting is done when using bundled protobuf (default).

BUG=157155

Review URL: https://codereview.chromium.org/11418310

Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0837d0c2ed18e58cffa2d2cb57d6864201a11354
1 file changed
tree: 6d78e27426f786c3bca73098cc556117780961b5
  1. protoc_wrapper.py