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

Unified Diff: tools/gn/tool.h

Issue 1887533003: Add an output_dir override to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const Created 4 years, 8 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/target.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/tool.h
diff --git a/tools/gn/tool.h b/tools/gn/tool.h
index 9360ce66ef646381b07d7a904902349cedfcf58d..f6727ed6d16761ad58569e969def2ef92bcd4add 100644
--- a/tools/gn/tool.h
+++ b/tools/gn/tool.h
@@ -52,6 +52,14 @@ class Tool {
default_output_extension_ = ext;
}
+ const SubstitutionPattern& default_output_dir() const {
+ return default_output_dir_;
+ }
+ void set_default_output_dir(const SubstitutionPattern& dir) {
+ DCHECK(!complete_);
+ default_output_dir_ = dir;
+ }
+
// Dependency file (if supported).
const SubstitutionPattern& depfile() const {
return depfile_;
@@ -186,6 +194,7 @@ class Tool {
private:
SubstitutionPattern command_;
std::string default_output_extension_;
+ SubstitutionPattern default_output_dir_;
SubstitutionPattern depfile_;
DepsFormat depsformat_;
PrecompiledHeaderType precompiled_header_type_;
« no previous file with comments | « tools/gn/target.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698