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

Unified Diff: tools/gn/copy_target_generator.cc

Issue 56433003: GN threading refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/copy_target_generator.h ('k') | tools/gn/function_set_default_toolchain.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 f02d4a7f750e40c49626747282acb7c1db12273e..b1b907642880c9697ec260e77ca8c2d32df6bfdd 100644
--- a/tools/gn/copy_target_generator.cc
+++ b/tools/gn/copy_target_generator.cc
@@ -6,14 +6,15 @@
#include "tools/gn/build_settings.h"
#include "tools/gn/filesystem_utils.h"
+#include "tools/gn/parse_tree.h"
#include "tools/gn/scope.h"
#include "tools/gn/value.h"
CopyTargetGenerator::CopyTargetGenerator(Target* target,
Scope* scope,
- const Token& function_token,
+ const FunctionCallNode* function_call,
Err* err)
- : TargetGenerator(target, scope, function_token, err) {
+ : TargetGenerator(target, scope, function_call, err) {
}
CopyTargetGenerator::~CopyTargetGenerator() {
@@ -33,18 +34,16 @@ void CopyTargetGenerator::DoRun() {
return;
if (target_->sources().empty()) {
- *err_ = Err(function_token_, "Empty sources for copy command.",
+ *err_ = Err(function_call_, "Empty sources for copy command.",
"You have to specify at least one file to copy in the \"sources\".");
return;
}
if (target_->script_values().outputs().size() != 1) {
- *err_ = Err(function_token_, "Copy command must have exactly one output.",
+ *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 "
"multiple sources to copy, use source expansion\n(see \"gn help "
"source_expansion\").");
return;
}
-
- SetToolchainDependency();
}
« no previous file with comments | « tools/gn/copy_target_generator.h ('k') | tools/gn/function_set_default_toolchain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698