Fix strict GN include checks and update the pinned GN version
Perfetto currently pins GN 2574 (127dd2a6d582). Newer GN enables check_includes_strict by default for targets with public headers. This exposes dependencies that our build files do not declare correctly.
With the generated-header build-order fixes applied, GN 2615 (2e3ba8239556) still reports 14,738 include errors across 1,990 files. The errors include public headers that include private dependencies and targets that rely on another target's public_deps to include a header.
Work needed:
- Add direct dependencies where targets rely on transitive includes.
- Use public_deps for dependencies exposed by public headers and keep implementation dependencies in deps.
- Get gn check passing with strict checks, then update the pinned GN in tools/install-build-deps.
- Verify a clean build and the relevant tests with the new GN version.
The Debian build-order fix addresses the missing generated headers. This issue tracks the remaining include cleanup and GN update.
GN changes: https://gn.googlesource.com/gn/+/526295467b https://gn.googlesource.com/gn/+/9fe99e2621
Debian build failure: https://buildd.debian.org/status/fetch.php?pkg=perfetto&arch=i386&ver=59.1-1&stamp=1794323950&file=log