[roll] Roll fuchsia [roll] Roll protobuf-gn [build] Propagate "testonly" to fix errors about it not being used

This fixes a failure in rolling Perfetto into Fuchsia that was
introduced by this commit:
https://github.com/google/perfetto/commit/a7ebe465869d887219c31a80b59d8d5f9d79868a
https://fuchsia.googlesource.com/third_party/github.com/google/perfetto/+/a7ebe465869d887219c31a80b59d8d5f9d79868a

That commit changes a target to use "testonly = true".

That commit fixes Perfetto's version of the "proto_library" GN
template to propagate the "testonly" parameter properly.  However,
Fuchsia has a different version that doesn't propagate the parameter
in all cases, so GN gives an error about "testonly" being unused when
"generate_cc || generate_python || generate_with_plugin" is false.

Fix that error by propagating "testonly" for the other cases.

This follows the advice here, "Always forward testonly":
https://fuchsia.dev/fuchsia-src/development/build/build_system/best_practices_templates#always-forward-testonly

Tested by rerunning one of the roll CLs that failed before
(https://fuchsia-review.googlesource.com/c/fuchsia/+/1475996), with
this CL added as a dependency.

Original-Bug: 477380489
Test: see above
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/protobuf-gn/+/1481816
Original-Revision: 59ee5160dd55944a69c0408f51d05d108039ebe0

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1482702
Original-Revision: 40ae12c7b545367d858ce9995b269c8803672032
GitOrigin-RevId: 794b9aaf27a3d597582de655e68984ae563dfc72
Change-Id: Id8af1ecf1af04eed4c1f643d99dfc7a522cee72c
1 file changed
tree: ba1af44efc8e23c5e3ab52ca92821ab79c1f16bd
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.