DescriptionAdd support for --runtime-deps-list-file flag to MB.
This allows us to compute what files are needed at runtime
to run each of the specified targets while we are also
generating the .ninja files to build the targets; since GN
has integrated support for this, we don't need to build
.isolate.gen.json or .isolate files at compile time like
we do for GYP.
As far as the implementation goes, while
--runtime-deps-list-file takes a list of GN labels (like
//base:base_unittests), we actually only have a list of ninja
build targets (like 'base_unittests'). So, we need to add a
mapping of ninja target -> GN label somewhere.
I think the best place to do this is in //testing/buildbot ,
and there I've updated the manage.py presubmit checks to
make sure that we have mappings for all of the targets
listed in the *.json config files. We can't easily check
that the mapping is right, but at least we can verify
that it does exist.
R=phajdan.jr@chromium.org, maruel@chromium.org
BUG=480053
Committed: https://crrev.com/74559b593fa49d493b07fce25a2fbf809c041b7f
Cr-Commit-Position: refs/heads/master@{#333802}
Patch Set 1 #Patch Set 2 : rework approach to use ninja_to_gn.pyl #Patch Set 3 : s/test_targets_list/swarming_targets #
Total comments: 13
Patch Set 4 : update w/ review feedback, fix lint errors #Patch Set 5 : merge to HEAD, add nacl_helper_nonsfi_unittests to fix presubmit failure #
Total comments: 1
Messages
Total messages: 24 (10 generated)
|