Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Issue 693443002: Make the gn copy() tool honor dependencies. (Closed)

Created:
6 years, 1 month ago by Dirk Pranke
Modified:
6 years, 1 month ago
Reviewers:
cjhopman, brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/44128e3c9ce524ae93343fcef7c875c32783e8e3 Cr-Commit-Position: refs/heads/master@{#302342}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comments, test #

Total comments: 2

Patch Set 3 : fix formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M tools/gn/ninja_copy_target_writer.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M tools/gn/ninja_copy_target_writer_unittest.cc View 1 2 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 17 (2 generated)
Dirk Pranke
https://codereview.chromium.org/693443002/diff/1/tools/gn/ninja_copy_target_writer.cc File tools/gn/ninja_copy_target_writer.cc (right): https://codereview.chromium.org/693443002/diff/1/tools/gn/ninja_copy_target_writer.cc#newcode75 tools/gn/ninja_copy_target_writer.cc:75: WriteInputDepsStampAndGetDep(std::vector<const Target*>()); I just stole this from ninja_binary_target_writer; it's ...
6 years, 1 month ago (2014-10-30 02:22:19 UTC) #1
cjhopman
I'd be careful doing this. The inputs to a copy step are almost required to ...
6 years, 1 month ago (2014-10-30 16:52:54 UTC) #3
cjhopman
As for the "almost required": there is a very hacky way around the requirement that ...
6 years, 1 month ago (2014-10-30 16:54:02 UTC) #4
Nick Bray (chromium)
On 2014/10/30 16:54:02, cjhopman wrote: > As for the "almost required": there is a very ...
6 years, 1 month ago (2014-10-30 17:18:00 UTC) #5
cjhopman
On 2014/10/30 17:18:00, Nick Bray (chromium) wrote: > On 2014/10/30 16:54:02, cjhopman wrote: > > ...
6 years, 1 month ago (2014-10-30 17:19:43 UTC) #6
Dirk Pranke
This isn't about the inputs to the copy; I agree with concerns there. This is ...
6 years, 1 month ago (2014-10-30 17:26:47 UTC) #7
brettw
I think we should do this. It's not much different than allowing deps for scripts, ...
6 years, 1 month ago (2014-10-30 17:32:49 UTC) #8
Dirk Pranke
On 2014/10/30 17:32:49, brettw wrote: > I think we should do this. It's not much ...
6 years, 1 month ago (2014-10-30 19:05:40 UTC) #9
cjhopman
On 2014/10/30 19:05:40, Dirk Pranke wrote: > On 2014/10/30 17:32:49, brettw wrote: > > I ...
6 years, 1 month ago (2014-10-30 20:21:01 UTC) #10
Dirk Pranke
Tests and comment added, and description improved. I've filed crbug.com/428979 to add copy to the ...
6 years, 1 month ago (2014-10-30 21:25:42 UTC) #11
brettw
lgtm https://codereview.chromium.org/693443002/diff/20001/tools/gn/ninja_copy_target_writer.cc File tools/gn/ninja_copy_target_writer.cc (left): https://codereview.chromium.org/693443002/diff/20001/tools/gn/ninja_copy_target_writer.cc#oldcode83 tools/gn/ninja_copy_target_writer.cc:83: // output: copy input | foo.stamp Seems like ...
6 years, 1 month ago (2014-10-31 19:56:57 UTC) #12
Dirk Pranke
https://codereview.chromium.org/693443002/diff/20001/tools/gn/ninja_copy_target_writer.cc File tools/gn/ninja_copy_target_writer.cc (left): https://codereview.chromium.org/693443002/diff/20001/tools/gn/ninja_copy_target_writer.cc#oldcode83 tools/gn/ninja_copy_target_writer.cc:83: // output: copy input | foo.stamp On 2014/10/31 19:56:57, ...
6 years, 1 month ago (2014-10-31 20:02:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693443002/40001
6 years, 1 month ago (2014-10-31 22:13:43 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-31 23:01:37 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 23:02:14 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/44128e3c9ce524ae93343fcef7c875c32783e8e3
Cr-Commit-Position: refs/heads/master@{#302342}

Powered by Google App Engine
This is Rietveld 408576698