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

Unified Diff: tools/gn/toolchain.cc

Issue 2926013002: Support explicit pools in actions (Closed)
Patch Set: Remove console altogether Created 3 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/toolchain.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/toolchain.cc
diff --git a/tools/gn/toolchain.cc b/tools/gn/toolchain.cc
index 70c6ce06f109bdcef256cd34b7372447f4431c95..28e0d9a2ea125273ac02e9f525104e5225f2c12e 100644
--- a/tools/gn/toolchain.cc
+++ b/tools/gn/toolchain.cc
@@ -26,6 +26,7 @@ const char* Toolchain::kToolStamp = "stamp";
const char* Toolchain::kToolCopy = "copy";
const char* Toolchain::kToolCopyBundleData = "copy_bundle_data";
const char* Toolchain::kToolCompileXCAssets = "compile_xcassets";
+const char* Toolchain::kToolAction = "action";
Toolchain::Toolchain(const Settings* settings, const Label& label)
: Item(settings, label),
@@ -59,6 +60,7 @@ Toolchain::ToolType Toolchain::ToolNameToType(const base::StringPiece& str) {
if (str == kToolCopy) return TYPE_COPY;
if (str == kToolCopyBundleData) return TYPE_COPY_BUNDLE_DATA;
if (str == kToolCompileXCAssets) return TYPE_COMPILE_XCASSETS;
+ if (str == kToolAction) return TYPE_ACTION;
return TYPE_NONE;
}
@@ -79,6 +81,7 @@ std::string Toolchain::ToolTypeToName(ToolType type) {
case TYPE_COPY: return kToolCopy;
case TYPE_COPY_BUNDLE_DATA: return kToolCopyBundleData;
case TYPE_COMPILE_XCASSETS: return kToolCompileXCAssets;
+ case TYPE_ACTION: return kToolAction;
default:
NOTREACHED();
return std::string();
« no previous file with comments | « tools/gn/toolchain.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698