| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool FillSources(); | 51 bool FillSources(); |
| 52 bool FillPublic(); | 52 bool FillPublic(); |
| 53 bool FillInputs(); | 53 bool FillInputs(); |
| 54 bool FillConfigs(); | 54 bool FillConfigs(); |
| 55 bool FillOutputs(bool allow_substitutions); | 55 bool FillOutputs(bool allow_substitutions); |
| 56 bool FillCheckIncludes(); |
| 56 | 57 |
| 57 // Rrturns true if the given pattern will expand to a file in the output | 58 // Rrturns true if the given pattern will expand to a file in the output |
| 58 // directory. If not, returns false and sets the error, blaming the given | 59 // directory. If not, returns false and sets the error, blaming the given |
| 59 // Value. | 60 // Value. |
| 60 bool EnsureSubstitutionIsInOutputDir( | 61 bool EnsureSubstitutionIsInOutputDir( |
| 61 const SubstitutionPattern& pattern, | 62 const SubstitutionPattern& pattern, |
| 62 const Value& original_value); | 63 const Value& original_value); |
| 63 | 64 |
| 64 Target* target_; | 65 Target* target_; |
| 65 Scope* scope_; | 66 Scope* scope_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 bool FillGenericConfigs(const char* var_name, | 78 bool FillGenericConfigs(const char* var_name, |
| 78 UniqueVector<LabelConfigPair>* dest); | 79 UniqueVector<LabelConfigPair>* dest); |
| 79 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest); | 80 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest); |
| 80 | 81 |
| 81 bool FillForwardDependentConfigs(); | 82 bool FillForwardDependentConfigs(); |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); | 84 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 #endif // TOOLS_GN_TARGET_GENERATOR_H_ | 87 #endif // TOOLS_GN_TARGET_GENERATOR_H_ |
| OLD | NEW |