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(const base::CommandLine& cmdline); | 122 bool 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 Builder builder_; | 131 Builder builder_; |
132 | 132 |
(...skipping 29 matching lines...) Expand all Loading... |
162 // 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 |
163 // line when we issue errors about them. | 163 // line when we issue errors about them. |
164 std::unique_ptr<InputFile> args_input_file_; | 164 std::unique_ptr<InputFile> args_input_file_; |
165 std::vector<Token> args_tokens_; | 165 std::vector<Token> args_tokens_; |
166 std::unique_ptr<ParseNode> args_root_; | 166 std::unique_ptr<ParseNode> args_root_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(Setup); | 168 DISALLOW_COPY_AND_ASSIGN(Setup); |
169 }; | 169 }; |
170 | 170 |
171 #endif // TOOLS_GN_SETUP_H_ | 171 #endif // TOOLS_GN_SETUP_H_ |
OLD | NEW |