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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Fills the root directory into the settings. Returns true on success. | 112 // Fills the root directory into the settings. Returns true on success. |
113 bool FillSourceDir(const base::CommandLine& cmdline); | 113 bool FillSourceDir(const base::CommandLine& cmdline); |
114 | 114 |
115 // Fills the build directory given the value the user has specified. | 115 // Fills the build directory given the value the user has specified. |
116 // Must happen after FillSourceDir so we can resolve source-relative | 116 // Must happen after FillSourceDir so we can resolve source-relative |
117 // paths. If require_exists is false, it will fail if the dir doesn't exist. | 117 // paths. If require_exists is false, it will fail if the dir doesn't exist. |
118 bool FillBuildDir(const std::string& build_dir, bool require_exists); | 118 bool FillBuildDir(const std::string& build_dir, bool require_exists); |
119 | 119 |
120 // Fills the python path portion of the command line. On failure, sets | 120 // Fills the python path portion of the command line. On failure, sets |
121 // it to just "python". | 121 // it to just "python". |
122 void FillPythonPath(); | 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 scoped_refptr<Builder> builder_; |
132 | 132 |
(...skipping 25 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 |