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/setup.h

Issue 2581193003: GN: Add optional default_args variable to .gn. (Closed)
Patch Set: Address comment. Created 3 years, 11 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/args.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/setup.h
diff --git a/tools/gn/setup.h b/tools/gn/setup.h
index 45335bf5b0e66e5fa9ca0167383e0b507ac5ec5a..d9a77d063a3765f605e23431d78b73d72cb0794b 100644
--- a/tools/gn/setup.h
+++ b/tools/gn/setup.h
@@ -150,6 +150,10 @@ class Setup {
std::vector<Token> dotfile_tokens_;
std::unique_ptr<ParseNode> dotfile_root_;
+ // Default overrides, specified in the dotfile.
+ // Owned by the Value (if it exists) in the dotfile_scope_.
+ const Scope* default_args_;
+
// Set to true when we should populate the build arguments from the command
// line or build argument file. See setter above.
bool fill_arguments_;
« no previous file with comments | « tools/gn/args.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698