| 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_H_ | 5 #ifndef TOOLS_GN_TARGET_H_ |
| 6 #define TOOLS_GN_TARGET_H_ | 6 #define TOOLS_GN_TARGET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // the public headers list should be empty. | 73 // the public headers list should be empty. |
| 74 bool all_headers_public() const { return all_headers_public_; } | 74 bool all_headers_public() const { return all_headers_public_; } |
| 75 void set_all_headers_public(bool p) { all_headers_public_ = p; } | 75 void set_all_headers_public(bool p) { all_headers_public_ = p; } |
| 76 | 76 |
| 77 // When all_headers_public is false, this is the list of public headers. It | 77 // When all_headers_public is false, this is the list of public headers. It |
| 78 // could be empty which would mean no headers are public. | 78 // could be empty which would mean no headers are public. |
| 79 const FileList& public_headers() const { return public_headers_; } | 79 const FileList& public_headers() const { return public_headers_; } |
| 80 FileList& public_headers() { return public_headers_; } | 80 FileList& public_headers() { return public_headers_; } |
| 81 | 81 |
| 82 // Compile-time extra dependencies. | 82 // Compile-time extra dependencies. |
| 83 const FileList& source_prereqs() const { return source_prereqs_; } | 83 const FileList& inputs() const { return inputs_; } |
| 84 FileList& source_prereqs() { return source_prereqs_; } | 84 FileList& inputs() { return inputs_; } |
| 85 | 85 |
| 86 // Runtime dependencies. | 86 // Runtime dependencies. |
| 87 const FileList& data() const { return data_; } | 87 const FileList& data() const { return data_; } |
| 88 FileList& data() { return data_; } | 88 FileList& data() { return data_; } |
| 89 | 89 |
| 90 // Returns true if targets depending on this one should have an order | 90 // Returns true if targets depending on this one should have an order |
| 91 // dependency. | 91 // dependency. |
| 92 bool hard_dep() const { | 92 bool hard_dep() const { |
| 93 return output_type_ == ACTION || | 93 return output_type_ == ACTION || |
| 94 output_type_ == ACTION_FOREACH || | 94 output_type_ == ACTION_FOREACH || |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void PullForwardedDependentConfigs(); | 164 void PullForwardedDependentConfigs(); |
| 165 void PullRecursiveHardDeps(); | 165 void PullRecursiveHardDeps(); |
| 166 | 166 |
| 167 OutputType output_type_; | 167 OutputType output_type_; |
| 168 std::string output_name_; | 168 std::string output_name_; |
| 169 std::string output_extension_; | 169 std::string output_extension_; |
| 170 | 170 |
| 171 FileList sources_; | 171 FileList sources_; |
| 172 bool all_headers_public_; | 172 bool all_headers_public_; |
| 173 FileList public_headers_; | 173 FileList public_headers_; |
| 174 FileList source_prereqs_; | 174 FileList inputs_; |
| 175 FileList data_; | 175 FileList data_; |
| 176 | 176 |
| 177 bool hard_dep_; | 177 bool hard_dep_; |
| 178 | 178 |
| 179 // Note that if there are any groups in the deps, once the target is resolved | 179 // Note that if there are any groups in the deps, once the target is resolved |
| 180 // these vectors will list *both* the groups as well as the groups' deps. | 180 // these vectors will list *both* the groups as well as the groups' deps. |
| 181 // | 181 // |
| 182 // This is because, in general, groups should be "transparent" ways to add | 182 // This is because, in general, groups should be "transparent" ways to add |
| 183 // groups of dependencies, so adding the groups deps make this happen with | 183 // groups of dependencies, so adding the groups deps make this happen with |
| 184 // no additional complexity when iterating over a target's deps. | 184 // no additional complexity when iterating over a target's deps. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 213 // target is marked resolved. This will not include the current target. | 213 // target is marked resolved. This will not include the current target. |
| 214 std::set<const Target*> recursive_hard_deps_; | 214 std::set<const Target*> recursive_hard_deps_; |
| 215 | 215 |
| 216 ConfigValues config_values_; // Used for all binary targets. | 216 ConfigValues config_values_; // Used for all binary targets. |
| 217 ActionValues action_values_; // Used for action[_foreach] targets. | 217 ActionValues action_values_; // Used for action[_foreach] targets. |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(Target); | 219 DISALLOW_COPY_AND_ASSIGN(Target); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 #endif // TOOLS_GN_TARGET_H_ | 222 #endif // TOOLS_GN_TARGET_H_ |
| OLD | NEW |