Add exclude_imports flag to proto_library

CL https://r.android.com/1502932 introduced a new Protobuf binary descriptor to be compiled into Perfetto's trace processor (linked into Chromium). It previously was compiled with option --include_imports, unnecessarily increasing its size.

This CL adds a flag that is going to be used in order to minimize that descriptor.

Bug: 1166299
Change-Id: If71387a04f035e4c1ef9d2ee60f252e2289925dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2632759
Commit-Queue: Andrew Shulaev <ddrone@google.com>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848074}
GitOrigin-RevId: 7eedff6e05262e512e7befed1f6c174d26c2e866
1 file changed
tree: e0ca256db70cab1d7492db64d860d0ee8714686c
  1. protoc_convert.py
  2. protoc_wrapper.py
  3. protoc_wrapper_test.py