Check for inputs not generated by deps

Adds a check in GN that looks for generated input files on a target that were
not generated by a dependency of the current target. In order to depend on the
output of a previous target, that target must be in your deps.

This adds checking output files to "gn refs" to help in debugging these issues.

Relaxes a wider range of checking when doing introspection commands like
"desc", "refs", and "ls" so they can be run to debug such issues.

Adds an additional test helper for setting up test targets that saves some code. Use this in the target unittests.

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

Cr-Original-Commit-Position: refs/heads/master@{#332925}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 56affab3b067e55d692281864d98a78a96aa21cc
21 files changed
tree: 79302477c75003eae6693345ed58f27f0b927172
  1. tools/