Allow .o files for GN generated inputs.

GN checks inputs and sources for files that are in the build directory, and
requires those files be generated by a dependency of the target.

Previously, only the final outputs of a target were considered. But NaCl wants
to compile some CRT code and take one of the intermediate object files as
inputs to a subsequent action. The current code was not aware of the generated
object files.

This patch will check for generated object files when the normal checks for
generated inputs fails.

BUG=579629

Review URL: https://codereview.chromium.org/1607423002

Cr-Original-Commit-Position: refs/heads/master@{#370539}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 65e89854f57ac34a51e4c60ac663ce21110e6944
5 files changed
tree: 12459cd668a07245b03a5582847587af4dba8664
  1. tools/