Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: tools/gn/setup.h

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/settings.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_; } 85 Builder& builder() { return builder_; }
86 LoaderImpl* loader() { return loader_.get(); } 86 LoaderImpl* loader() { return loader_.get(); }
87 87
88 const InputFile* dotfile_input_file() const {
89 return dotfile_input_file_.get();
90 }
91
88 // Name of the file in the root build directory that contains the build 92 // Name of the file in the root build directory that contains the build
89 // arguements. 93 // arguements.
90 static const char kBuildArgFileName[]; 94 static const char kBuildArgFileName[];
91 95
92 private: 96 private:
93 // Performs the two sets of operations to run the generation before and after 97 // Performs the two sets of operations to run the generation before and after
94 // the message loop is run. 98 // the message loop is run.
95 void RunPreMessageLoop(); 99 void RunPreMessageLoop();
96 bool RunPostMessageLoop(); 100 bool RunPostMessageLoop();
97 101
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // this around for the entire run so that Values can blame to the command 166 // this around for the entire run so that Values can blame to the command
163 // line when we issue errors about them. 167 // line when we issue errors about them.
164 std::unique_ptr<InputFile> args_input_file_; 168 std::unique_ptr<InputFile> args_input_file_;
165 std::vector<Token> args_tokens_; 169 std::vector<Token> args_tokens_;
166 std::unique_ptr<ParseNode> args_root_; 170 std::unique_ptr<ParseNode> args_root_;
167 171
168 DISALLOW_COPY_AND_ASSIGN(Setup); 172 DISALLOW_COPY_AND_ASSIGN(Setup);
169 }; 173 };
170 174
171 #endif // TOOLS_GN_SETUP_H_ 175 #endif // TOOLS_GN_SETUP_H_
OLDNEW
« no previous file with comments | « tools/gn/settings.cc ('k') | tools/gn/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698