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

Unified Diff: tools/gn/toolchain.h

Issue 350743004: Allow dependencies of toolchains in GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/ninja_target_writer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/toolchain.h
diff --git a/tools/gn/toolchain.h b/tools/gn/toolchain.h
index eba396d9e27a76aa2dd97cf948f826569e00912c..45a14cc8086c7c9664b411284edb8b014c542259 100644
--- a/tools/gn/toolchain.h
+++ b/tools/gn/toolchain.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/strings/string_piece.h"
#include "tools/gn/item.h"
+#include "tools/gn/label_ptr.h"
#include "tools/gn/scope.h"
#include "tools/gn/value.h"
@@ -84,6 +85,10 @@ class Toolchain : public Item {
const Tool& GetTool(ToolType type) const;
void SetTool(ToolType type, const Tool& t);
+ // Targets that must be resolved before compiling any targets.
+ const LabelTargetVector& deps() const { return deps_; }
+ LabelTargetVector& deps() { return deps_; }
+
// Specifies build argument overrides that will be set on the base scope. It
// will be as if these arguments were passed in on the command line. This
// allows a toolchain to override the OS type of the default toolchain or
@@ -94,6 +99,7 @@ class Toolchain : public Item {
private:
Tool tools_[TYPE_NUMTYPES];
+ LabelTargetVector deps_;
Scope::KeyValueMap args_;
};
« no previous file with comments | « tools/gn/ninja_target_writer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698