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_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 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 Target* target_; | 61 Target* target_; |
62 Scope* scope_; | 62 Scope* scope_; |
63 const Token& function_token_; | 63 const Token& function_token_; |
64 Err* err_; | 64 Err* err_; |
65 | 65 |
66 private: | 66 private: |
67 void FillDependentConfigs(); // Includes all types of dependent configs. | 67 void FillDependentConfigs(); // Includes all types of dependent configs. |
68 void FillData(); | 68 void FillData(); |
69 void FillDependencies(); // Includes data dependencies. | 69 void FillDependencies(); // Includes data dependencies. |
| 70 void FillGypFile(); |
70 void FillHardDep(); | 71 void FillHardDep(); |
71 | 72 |
72 // Reads configs/deps from the given var name, and uses the given setting on | 73 // Reads configs/deps from the given var name, and uses the given setting on |
73 // the target to save them. | 74 // the target to save them. |
74 void FillGenericConfigs(const char* var_name, | 75 void FillGenericConfigs(const char* var_name, |
75 std::vector<const Config*>& (Target::*accessor)()); | 76 std::vector<const Config*>& (Target::*accessor)()); |
76 void FillGenericDeps(const char* var_name, | 77 void FillGenericDeps(const char* var_name, |
77 std::vector<const Target*>& (Target::*accessor)()); | 78 std::vector<const Target*>& (Target::*accessor)()); |
78 | 79 |
79 void FillForwardDependentConfigs(); | 80 void FillForwardDependentConfigs(); |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); | 82 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); |
82 }; | 83 }; |
83 | 84 |
84 #endif // TOOLS_GN_TARGET_GENERATOR_H_ | 85 #endif // TOOLS_GN_TARGET_GENERATOR_H_ |
OLD | NEW |