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

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

Issue 1131683003: tools/gn: Fix the includes of target_generator.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/group_target_generator.cc ('k') | no next file » | 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_TARGET_GENERATOR_H_ 5 #ifndef TOOLS_GN_TARGET_GENERATOR_H_
6 #define TOOLS_GN_TARGET_GENERATOR_H_ 6 #define TOOLS_GN_TARGET_GENERATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "tools/gn/label_ptr.h"
13 #include "tools/gn/source_dir.h" 13 #include "tools/gn/unique_vector.h"
14 #include "tools/gn/target.h"
15 14
16 class BuildSettings; 15 class BuildSettings;
17 class Err; 16 class Err;
18 class FunctionCallNode; 17 class FunctionCallNode;
19 class Location;
20 class Scope; 18 class Scope;
19 class SubstitutionPattern;
21 class Value; 20 class Value;
22 21
23 // Fills the variables in a Target object from a Scope (the result of a script 22 // Fills the variables in a Target object from a Scope (the result of a script
24 // execution). Target-type-specific derivations of this class will be used 23 // execution). Target-type-specific derivations of this class will be used
25 // for each different type of function call. This class implements the common 24 // for each different type of function call. This class implements the common
26 // behavior. 25 // behavior.
27 class TargetGenerator { 26 class TargetGenerator {
28 public: 27 public:
29 TargetGenerator(Target* target, 28 TargetGenerator(Target* target,
30 Scope* scope, 29 Scope* scope,
(...skipping 20 matching lines...) Expand all
51 bool FillSources(); 50 bool FillSources();
52 bool FillPublic(); 51 bool FillPublic();
53 bool FillInputs(); 52 bool FillInputs();
54 bool FillConfigs(); 53 bool FillConfigs();
55 bool FillOutputs(bool allow_substitutions); 54 bool FillOutputs(bool allow_substitutions);
56 bool FillCheckIncludes(); 55 bool FillCheckIncludes();
57 56
58 // Rrturns true if the given pattern will expand to a file in the output 57 // Rrturns true if the given pattern will expand to a file in the output
59 // directory. If not, returns false and sets the error, blaming the given 58 // directory. If not, returns false and sets the error, blaming the given
60 // Value. 59 // Value.
61 bool EnsureSubstitutionIsInOutputDir( 60 bool EnsureSubstitutionIsInOutputDir(const SubstitutionPattern& pattern,
62 const SubstitutionPattern& pattern, 61 const Value& original_value);
63 const Value& original_value);
64 62
65 Target* target_; 63 Target* target_;
66 Scope* scope_; 64 Scope* scope_;
67 const FunctionCallNode* function_call_; 65 const FunctionCallNode* function_call_;
68 Err* err_; 66 Err* err_;
69 67
70 private: 68 private:
71 bool FillDependentConfigs(); // Includes all types of dependent configs. 69 bool FillDependentConfigs(); // Includes all types of dependent configs.
72 bool FillData(); 70 bool FillData();
73 bool FillDependencies(); // Includes data dependencies. 71 bool FillDependencies(); // Includes data dependencies.
74 bool FillTestonly(); 72 bool FillTestonly();
75 73
76 // Reads configs/deps from the given var name, and uses the given setting on 74 // Reads configs/deps from the given var name, and uses the given setting on
77 // the target to save them. 75 // the target to save them.
78 bool FillGenericConfigs(const char* var_name, 76 bool FillGenericConfigs(const char* var_name,
79 UniqueVector<LabelConfigPair>* dest); 77 UniqueVector<LabelConfigPair>* dest);
80 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest); 78 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest);
81 79
82 bool FillForwardDependentConfigs(); 80 bool FillForwardDependentConfigs();
83 81
84 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); 82 DISALLOW_COPY_AND_ASSIGN(TargetGenerator);
85 }; 83 };
86 84
87 #endif // TOOLS_GN_TARGET_GENERATOR_H_ 85 #endif // TOOLS_GN_TARGET_GENERATOR_H_
OLDNEW
« no previous file with comments | « tools/gn/group_target_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698