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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 protected: | 45 protected: |
46 // Derived classes implement this to do type-specific generation. | 46 // Derived classes implement this to do type-specific generation. |
47 virtual void DoRun() = 0; | 47 virtual void DoRun() = 0; |
48 | 48 |
49 const BuildSettings* GetBuildSettings() const; | 49 const BuildSettings* GetBuildSettings() const; |
50 | 50 |
51 void FillSources(); | 51 void FillSources(); |
52 void FillSourcePrereqs(); | 52 void FillSourcePrereqs(); |
53 void FillConfigs(); | 53 void FillConfigs(); |
54 void FillExternal(); | |
55 void FillOutputs(); | 54 void FillOutputs(); |
56 | 55 |
57 Target* target_; | 56 Target* target_; |
58 Scope* scope_; | 57 Scope* scope_; |
59 const FunctionCallNode* function_call_; | 58 const FunctionCallNode* function_call_; |
60 Err* err_; | 59 Err* err_; |
61 | 60 |
62 private: | 61 private: |
63 void FillDependentConfigs(); // Includes all types of dependent configs. | 62 void FillDependentConfigs(); // Includes all types of dependent configs. |
64 void FillData(); | 63 void FillData(); |
65 void FillDependencies(); // Includes data dependencies. | 64 void FillDependencies(); // Includes data dependencies. |
66 void FillGypFile(); | |
67 void FillHardDep(); | 65 void FillHardDep(); |
68 | 66 |
69 // Reads configs/deps from the given var name, and uses the given setting on | 67 // Reads configs/deps from the given var name, and uses the given setting on |
70 // the target to save them. | 68 // the target to save them. |
71 void FillGenericConfigs(const char* var_name, LabelConfigVector* dest); | 69 void FillGenericConfigs(const char* var_name, LabelConfigVector* dest); |
72 void FillGenericDeps(const char* var_name, LabelTargetVector* dest); | 70 void FillGenericDeps(const char* var_name, LabelTargetVector* dest); |
73 | 71 |
74 void FillForwardDependentConfigs(); | 72 void FillForwardDependentConfigs(); |
75 | 73 |
76 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); | 74 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); |
77 }; | 75 }; |
78 | 76 |
79 #endif // TOOLS_GN_TARGET_GENERATOR_H_ | 77 #endif // TOOLS_GN_TARGET_GENERATOR_H_ |
OLD | NEW |