Teach gen_fuzzer_owners.py about GN groups.
In gen_fuzzer_owners.py, GetSourcesFromDeps() receives a list of dependencies based on the fuzzer_tests in the GN build configuration. Existing configurations are fairly simple, with source_sets as direct dependencies. Introducing a GN group into a fuzzer_test will break gen_fuzzer_owners.py. This CL augments GetSourcesFromDeps() to look through the list of dependencies for groups and replace the groups with their direct dependencies. Since groups can depend on other groups, traverse the dependencies graph until all groups have been replaced. Change-Id: Ib0e15a18c7916af6790f41b1c752ab18bda970d9 Reviewed-on: https://chromium-review.googlesource.com/1077071Reviewed-by:Max Moroz <mmoroz@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#564989}
Showing
Please register or sign in to comment