DescriptionUpdate MB to use `gn analyze`.
Now that GN supports a form of `analyze` directly, this patch
updates //tools/mb to use it rather than working awkwardly through
`gn refs`. The MB implementation now is mostly responsible for
mapping ninja targets to labels, calling GN, and then mapping returned
labels back to ninja targets. Eventually we should update the
recipes to just pass labels around instead.
One significant change is that now we need entries in gn_isolate_map.pyl
for every target listed in 'additional_compile_targets' and
'isolated_scripts' as well as in 'gtest_tests', because we have to remap
everything to the GN labels, not just tests for swarming.
We should switch everything to using GN labels directly, but that'll require
follow-on CLs.
R=brettw@chromium.org
BUG=555273
Committed: https://crrev.com/9aba8b21177df3ed3e897d5c500d845fbf5523e6
Cr-Commit-Position: refs/heads/master@{#419315}
Patch Set 1 #Patch Set 2 : remove analyze exclusions for testing purposes #Patch Set 3 : allow additional_compile_targets that aren't in gn_isolate_map.pyl #Patch Set 4 : add default logic for handling _run targets, handle //chrome #Patch Set 5 : add better debugging #Patch Set 6 : more debugging #Patch Set 7 : add mapping for remaining targets #
Total comments: 3
Patch Set 8 : change a couple of source files for testing purposes #Patch Set 9 : back out test-related changes #
Messages
Total messages: 26 (13 generated)
|