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

Unified Diff: tools/gn/tool.h

Issue 2006923004: Add support for user defined "pool" to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: tools/gn/tool.h
diff --git a/tools/gn/tool.h b/tools/gn/tool.h
index f6727ed6d16761ad58569e969def2ef92bcd4add..96ff7c020d37d3771d5138463c5856ed7f731bad 100644
--- a/tools/gn/tool.h
+++ b/tools/gn/tool.h
@@ -9,9 +9,13 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "tools/gn/label.h"
+#include "tools/gn/label_ptr.h"
#include "tools/gn/substitution_list.h"
#include "tools/gn/substitution_pattern.h"
+class Pool;
+
class Tool {
public:
enum DepsFormat {
@@ -173,6 +177,9 @@ class Tool {
rspfile_content_ = content;
}
+ const LabelPtrPair<Pool>& pool() const { return pool_; }
+ void set_pool(const LabelPtrPair<Pool>& pool) { pool_ = pool; }
+
// Other functions ----------------------------------------------------------
// Called when the toolchain is saving this tool, after everything is filled
@@ -191,6 +198,8 @@ class Tool {
return substitution_bits_;
}
+ bool OnResolved(Err* err);
+
private:
SubstitutionPattern command_;
std::string default_output_extension_;
@@ -209,6 +218,7 @@ class Tool {
bool restat_;
SubstitutionPattern rspfile_;
SubstitutionPattern rspfile_content_;
+ LabelPtrPair<Pool> pool_;
bool complete_;
« tools/gn/functions.cc ('K') | « tools/gn/pool.cc ('k') | tools/gn/toolchain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698