Make the gn copy() tool honor dependencies.
commit44128e3c9ce524ae93343fcef7c875c32783e8e3
authordpranke <dpranke@chromium.org>
Fri, 31 Oct 2014 23:01:29 +0000 (31 16:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 31 Oct 2014 23:01:46 +0000 (31 23:01 +0000)
treeec5ef8cb7b6809e445dada0bd8d41dc7fe24672d
parent1c79f864bd63b801f822c3ee0ae0d3fcb65b8e4d
Make the gn copy() tool honor dependencies.

Previously it didn't, and perhaps there was no need for
it to, but it seems like NaCl has a need. Specifically,
NaCl has two targets A and B with both run fine on their
own, but A can delete the output of B, and so needs to run
before B.

R=brettw@chromium.org
BUG=428576

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

Cr-Commit-Position: refs/heads/master@{#302342}
tools/gn/ninja_copy_target_writer.cc
tools/gn/ninja_copy_target_writer_unittest.cc