OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TOOLS_GN_SETUP_H_ | 5 #ifndef TOOLS_GN_SETUP_H_ |
6 #define TOOLS_GN_SETUP_H_ | 6 #define TOOLS_GN_SETUP_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // dot file. | 143 // dot file. |
144 Settings dotfile_settings_; | 144 Settings dotfile_settings_; |
145 Scope dotfile_scope_; | 145 Scope dotfile_scope_; |
146 | 146 |
147 // State for invoking the dotfile. | 147 // State for invoking the dotfile. |
148 base::FilePath dotfile_name_; | 148 base::FilePath dotfile_name_; |
149 std::unique_ptr<InputFile> dotfile_input_file_; | 149 std::unique_ptr<InputFile> dotfile_input_file_; |
150 std::vector<Token> dotfile_tokens_; | 150 std::vector<Token> dotfile_tokens_; |
151 std::unique_ptr<ParseNode> dotfile_root_; | 151 std::unique_ptr<ParseNode> dotfile_root_; |
152 | 152 |
| 153 // Default overrides, specified in the dotfile. |
| 154 // Owned by the Value (if it exists) in the dotfile_scope_. |
| 155 const Scope* default_args_; |
| 156 |
153 // Set to true when we should populate the build arguments from the command | 157 // Set to true when we should populate the build arguments from the command |
154 // line or build argument file. See setter above. | 158 // line or build argument file. See setter above. |
155 bool fill_arguments_; | 159 bool fill_arguments_; |
156 | 160 |
157 // State for invoking the command line args. We specifically want to keep | 161 // State for invoking the command line args. We specifically want to keep |
158 // this around for the entire run so that Values can blame to the command | 162 // this around for the entire run so that Values can blame to the command |
159 // line when we issue errors about them. | 163 // line when we issue errors about them. |
160 std::unique_ptr<InputFile> args_input_file_; | 164 std::unique_ptr<InputFile> args_input_file_; |
161 std::vector<Token> args_tokens_; | 165 std::vector<Token> args_tokens_; |
162 std::unique_ptr<ParseNode> args_root_; | 166 std::unique_ptr<ParseNode> args_root_; |
163 | 167 |
164 DISALLOW_COPY_AND_ASSIGN(Setup); | 168 DISALLOW_COPY_AND_ASSIGN(Setup); |
165 }; | 169 }; |
166 | 170 |
167 #endif // TOOLS_GN_SETUP_H_ | 171 #endif // TOOLS_GN_SETUP_H_ |
OLD | NEW |