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

Unified Diff: tools/gn/item.cc

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/item.cc
diff --git a/tools/gn/item.cc b/tools/gn/item.cc
index b0efd64ac0121e9f08e95e3b8736d981070d013f..4fb65d181f876e13c4016f89b8ed4c5e6de45b37 100644
--- a/tools/gn/item.cc
+++ b/tools/gn/item.cc
@@ -20,6 +20,12 @@ Config* Item::AsConfig() {
const Config* Item::AsConfig() const {
return nullptr;
}
+Pool* Item::AsPool() {
+ return nullptr;
+}
+const Pool* Item::AsPool() const {
+ return nullptr;
+}
Target* Item::AsTarget() {
return nullptr;
}
@@ -40,6 +46,8 @@ std::string Item::GetItemTypeName() const {
return "target";
if (AsToolchain())
return "toolchain";
+ if (AsPool())
+ return "pool";
NOTREACHED();
return "this thing that I have no idea what it is";
}
« tools/gn/functions.cc ('K') | « tools/gn/item.h ('k') | tools/gn/ninja_build_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698