| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 bool check_for_bad_items_; | 145 bool check_for_bad_items_; |
| 146 bool check_for_unused_overrides_; | 146 bool check_for_unused_overrides_; |
| 147 bool check_public_headers_; | 147 bool check_public_headers_; |
| 148 | 148 |
| 149 // See getter for info. | 149 // See getter for info. |
| 150 scoped_ptr<std::vector<LabelPattern>> check_patterns_; | 150 scoped_ptr<std::vector<LabelPattern>> check_patterns_; |
| 151 | 151 |
| 152 Scheduler scheduler_; | 152 Scheduler scheduler_; |
| 153 | 153 |
| 154 // These empty settings and toolchain are used to interpret the command line | 154 // These settings and toolchain are used to interpret the command line and |
| 155 // and dot file. | 155 // dot file. |
| 156 BuildSettings empty_build_settings_; | 156 Settings dotfile_settings_; |
| 157 Settings empty_settings_; | |
| 158 Scope dotfile_scope_; | 157 Scope dotfile_scope_; |
| 159 | 158 |
| 160 // State for invoking the dotfile. | 159 // State for invoking the dotfile. |
| 161 base::FilePath dotfile_name_; | 160 base::FilePath dotfile_name_; |
| 162 scoped_ptr<InputFile> dotfile_input_file_; | 161 scoped_ptr<InputFile> dotfile_input_file_; |
| 163 std::vector<Token> dotfile_tokens_; | 162 std::vector<Token> dotfile_tokens_; |
| 164 scoped_ptr<ParseNode> dotfile_root_; | 163 scoped_ptr<ParseNode> dotfile_root_; |
| 165 | 164 |
| 166 // Set to true when we should populate the build arguments from the command | 165 // Set to true when we should populate the build arguments from the command |
| 167 // line or build argument file. See setter above. | 166 // line or build argument file. See setter above. |
| 168 bool fill_arguments_; | 167 bool fill_arguments_; |
| 169 | 168 |
| 170 // State for invoking the command line args. We specifically want to keep | 169 // State for invoking the command line args. We specifically want to keep |
| 171 // this around for the entire run so that Values can blame to the command | 170 // this around for the entire run so that Values can blame to the command |
| 172 // line when we issue errors about them. | 171 // line when we issue errors about them. |
| 173 scoped_ptr<InputFile> args_input_file_; | 172 scoped_ptr<InputFile> args_input_file_; |
| 174 std::vector<Token> args_tokens_; | 173 std::vector<Token> args_tokens_; |
| 175 scoped_ptr<ParseNode> args_root_; | 174 scoped_ptr<ParseNode> args_root_; |
| 176 | 175 |
| 177 DISALLOW_COPY_AND_ASSIGN(Setup); | 176 DISALLOW_COPY_AND_ASSIGN(Setup); |
| 178 }; | 177 }; |
| 179 | 178 |
| 180 #endif // TOOLS_GN_SETUP_H_ | 179 #endif // TOOLS_GN_SETUP_H_ |
| OLD | NEW |