| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 // Read from the .gn file, these are the targets to check. If the .gn file | 77 // Read from the .gn file, these are the targets to check. If the .gn file |
| 78 // does not specify anything, this will be null. If the .gn file specifies | 78 // does not specify anything, this will be null. If the .gn file specifies |
| 79 // the empty list, this will be non-null but empty. | 79 // the empty list, this will be non-null but empty. |
| 80 const std::vector<LabelPattern>* check_patterns() const { | 80 const std::vector<LabelPattern>* check_patterns() const { |
| 81 return check_patterns_.get(); | 81 return check_patterns_.get(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 BuildSettings& build_settings() { return build_settings_; } | 84 BuildSettings& build_settings() { return build_settings_; } |
| 85 Builder* builder() { return builder_.get(); } | 85 Builder& builder() { return builder_; } |
| 86 LoaderImpl* loader() { return loader_.get(); } | 86 LoaderImpl* loader() { return loader_.get(); } |
| 87 | 87 |
| 88 // Name of the file in the root build directory that contains the build | 88 // Name of the file in the root build directory that contains the build |
| 89 // arguements. | 89 // arguements. |
| 90 static const char kBuildArgFileName[]; | 90 static const char kBuildArgFileName[]; |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 // Performs the two sets of operations to run the generation before and after | 93 // Performs the two sets of operations to run the generation before and after |
| 94 // the message loop is run. | 94 // the message loop is run. |
| 95 void RunPreMessageLoop(); | 95 void RunPreMessageLoop(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 121 // it to just "python". | 121 // it to just "python". |
| 122 void FillPythonPath(const base::CommandLine& cmdline); | 122 void FillPythonPath(const base::CommandLine& cmdline); |
| 123 | 123 |
| 124 // Run config file. | 124 // Run config file. |
| 125 bool RunConfigFile(); | 125 bool RunConfigFile(); |
| 126 | 126 |
| 127 bool FillOtherConfig(const base::CommandLine& cmdline); | 127 bool FillOtherConfig(const base::CommandLine& cmdline); |
| 128 | 128 |
| 129 BuildSettings build_settings_; | 129 BuildSettings build_settings_; |
| 130 scoped_refptr<LoaderImpl> loader_; | 130 scoped_refptr<LoaderImpl> loader_; |
| 131 scoped_refptr<Builder> builder_; | 131 Builder builder_; |
| 132 | 132 |
| 133 SourceFile root_build_file_; | 133 SourceFile root_build_file_; |
| 134 | 134 |
| 135 bool check_public_headers_; | 135 bool check_public_headers_; |
| 136 | 136 |
| 137 // See getter for info. | 137 // See getter for info. |
| 138 std::unique_ptr<std::vector<LabelPattern>> check_patterns_; | 138 std::unique_ptr<std::vector<LabelPattern>> check_patterns_; |
| 139 | 139 |
| 140 Scheduler scheduler_; | 140 Scheduler scheduler_; |
| 141 | 141 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 158 // this around for the entire run so that Values can blame to the command | 158 // this around for the entire run so that Values can blame to the command |
| 159 // line when we issue errors about them. | 159 // line when we issue errors about them. |
| 160 std::unique_ptr<InputFile> args_input_file_; | 160 std::unique_ptr<InputFile> args_input_file_; |
| 161 std::vector<Token> args_tokens_; | 161 std::vector<Token> args_tokens_; |
| 162 std::unique_ptr<ParseNode> args_root_; | 162 std::unique_ptr<ParseNode> args_root_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(Setup); | 164 DISALLOW_COPY_AND_ASSIGN(Setup); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 #endif // TOOLS_GN_SETUP_H_ | 167 #endif // TOOLS_GN_SETUP_H_ |
| OLD | NEW |