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

Unified Diff: tools/gn/build_settings.h

Issue 2514333005: Add support for customizing GN's args text. (Closed)
Patch Set: update docs Created 3 years, 10 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 | « build/sample_arg_file.gn ('k') | tools/gn/build_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/build_settings.h
diff --git a/tools/gn/build_settings.h b/tools/gn/build_settings.h
index 0b986cd6aeab677c3aecd7078421199e55abba72..3f9f45b9882acb0f470e871fa1fafea5a63c8821 100644
--- a/tools/gn/build_settings.h
+++ b/tools/gn/build_settings.h
@@ -52,6 +52,14 @@ class BuildSettings {
const SourceFile& build_config_file() const { return build_config_file_; }
void set_build_config_file(const SourceFile& f) { build_config_file_ = f; }
+ // Path to a file containing the default text to use when running `gn args`.
+ const SourceFile& arg_file_template_path() const {
+ return arg_file_template_path_;
+ }
+ void set_arg_file_template_path(const SourceFile& f) {
+ arg_file_template_path_ = f;
+ }
+
// The build directory is the root of all output files. The default toolchain
// files go into here, and non-default toolchains will have separate
// toolchain-specific root directories inside this.
@@ -102,6 +110,7 @@ class BuildSettings {
base::FilePath python_path_;
SourceFile build_config_file_;
+ SourceFile arg_file_template_path_;
SourceDir build_dir_;
Args build_args_;
« no previous file with comments | « build/sample_arg_file.gn ('k') | tools/gn/build_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698