Add 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 Review URL: https://codereview.chromium.org/1169923008 Cr-Commit-Position: refs/heads/master@{#333802}
Showing
Please register or sign in to comment