Allow directories for GN data lists.

Allow the members of the "data" variable in GN targets to be either files or directories. This means storing them as strings rather than SourceFile objects, and rebasing as necessary. The documentation is updated accordingly.

Added a move constructor for OutputFile. While move constructors are discouraged, OutputFile is just a wrapper around a std::string for type checking, and I think this is in the spirit of things.

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

Cr-Original-Commit-Position: refs/heads/master@{#332712}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e903c0f86b126b25fedaa0439230da1576aeb476
8 files changed
tree: da91763ea55d2b240fce172c49d75cee70fa2b58
  1. tools/