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

Unified Diff: tools/gn/copy_target_generator.cc

Issue 429423002: Refactor GN source expansions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/command_help.cc ('k') | tools/gn/escape.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/copy_target_generator.cc
diff --git a/tools/gn/copy_target_generator.cc b/tools/gn/copy_target_generator.cc
index edd6f145ce7417d01b5589a8390873ba0dc723ba..544ef5f20fe40c9ea4ca6b47f605a3db24b8ccca 100644
--- a/tools/gn/copy_target_generator.cc
+++ b/tools/gn/copy_target_generator.cc
@@ -26,7 +26,7 @@ void CopyTargetGenerator::DoRun() {
FillSources();
if (err_->has_error())
return;
- FillOutputs();
+ FillOutputs(true);
if (err_->has_error())
return;
@@ -35,7 +35,7 @@ void CopyTargetGenerator::DoRun() {
"You have to specify at least one file to copy in the \"sources\".");
return;
}
- if (target_->action_values().outputs().size() != 1) {
+ if (target_->action_values().outputs().list().size() != 1) {
*err_ = Err(function_call_, "Copy command must have exactly one output.",
"You must specify exactly one value in the \"outputs\" array for the "
"destination of the copy\n(see \"gn help copy\"). If there are "
« no previous file with comments | « tools/gn/command_help.cc ('k') | tools/gn/escape.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698