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

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

Issue 1342183003: Allow GN configs to have sub-configs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/BUILD.gn ('k') | tools/gn/builder.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_BUILDER_H_ 5 #ifndef TOOLS_GN_BUILDER_H_
6 #define TOOLS_GN_BUILDER_H_ 6 #define TOOLS_GN_BUILDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // If there are any undefined references, returns false and sets the error. 52 // If there are any undefined references, returns false and sets the error.
53 bool CheckForBadItems(Err* err) const; 53 bool CheckForBadItems(Err* err) const;
54 54
55 private: 55 private:
56 friend class base::RefCountedThreadSafe<Builder>; 56 friend class base::RefCountedThreadSafe<Builder>;
57 57
58 virtual ~Builder(); 58 virtual ~Builder();
59 59
60 bool TargetDefined(BuilderRecord* record, Err* err); 60 bool TargetDefined(BuilderRecord* record, Err* err);
61 bool ConfigDefined(BuilderRecord* record, Err* err);
61 bool ToolchainDefined(BuilderRecord* record, Err* err); 62 bool ToolchainDefined(BuilderRecord* record, Err* err);
62 63
63 // Returns the record associated with the given label. This function checks 64 // Returns the record associated with the given label. This function checks
64 // that if we already have references for it, the type matches. If no record 65 // that if we already have references for it, the type matches. If no record
65 // exists yet, a new one will be created. 66 // exists yet, a new one will be created.
66 // 67 //
67 // If any of the conditions fail, the return value will be null and the error 68 // If any of the conditions fail, the return value will be null and the error
68 // will be set. request_from is used as the source of the error. 69 // will be set. request_from is used as the source of the error.
69 BuilderRecord* GetOrCreateRecordOfType(const Label& label, 70 BuilderRecord* GetOrCreateRecordOfType(const Label& label,
70 const ParseNode* request_from, 71 const ParseNode* request_from,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Owning pointers. 133 // Owning pointers.
133 typedef base::hash_map<Label, BuilderRecord*> RecordMap; 134 typedef base::hash_map<Label, BuilderRecord*> RecordMap;
134 RecordMap records_; 135 RecordMap records_;
135 136
136 ResolvedCallback resolved_callback_; 137 ResolvedCallback resolved_callback_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(Builder); 139 DISALLOW_COPY_AND_ASSIGN(Builder);
139 }; 140 };
140 141
141 #endif // TOOLS_GN_BUILDER_H_ 142 #endif // TOOLS_GN_BUILDER_H_
OLDNEW
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698