| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Whether this static_library target should have code linked in. | 121 // Whether this static_library target should have code linked in. |
| 122 bool complete_static_lib() const { return complete_static_lib_; } | 122 bool complete_static_lib() const { return complete_static_lib_; } |
| 123 void set_complete_static_lib(bool complete) { | 123 void set_complete_static_lib(bool complete) { |
| 124 DCHECK_EQ(STATIC_LIBRARY, output_type_); | 124 DCHECK_EQ(STATIC_LIBRARY, output_type_); |
| 125 complete_static_lib_ = complete; | 125 complete_static_lib_ = complete; |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool testonly() const { return testonly_; } | 128 bool testonly() const { return testonly_; } |
| 129 void set_testonly(bool value) { testonly_ = value; } | 129 void set_testonly(bool value) { testonly_ = value; } |
| 130 | 130 |
| 131 OutputFile write_runtime_deps_output() const { |
| 132 return write_runtime_deps_output_; |
| 133 } |
| 134 void set_write_runtime_deps_output(const OutputFile& value) { |
| 135 write_runtime_deps_output_ = value; |
| 136 } |
| 137 |
| 131 // Compile-time extra dependencies. | 138 // Compile-time extra dependencies. |
| 132 const FileList& inputs() const { return inputs_; } | 139 const FileList& inputs() const { return inputs_; } |
| 133 FileList& inputs() { return inputs_; } | 140 FileList& inputs() { return inputs_; } |
| 134 | 141 |
| 135 // Runtime dependencies. These are "file-like things" that can either be | 142 // Runtime dependencies. These are "file-like things" that can either be |
| 136 // directories or files. They do not need to exist, these are just passed as | 143 // directories or files. They do not need to exist, these are just passed as |
| 137 // runtime dependencies to external test systems as necessary. | 144 // runtime dependencies to external test systems as necessary. |
| 138 const std::vector<std::string>& data() const { return data_; } | 145 const std::vector<std::string>& data() const { return data_; } |
| 139 std::vector<std::string>& data() { return data_; } | 146 std::vector<std::string>& data() { return data_; } |
| 140 | 147 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 322 |
| 316 FileList sources_; | 323 FileList sources_; |
| 317 bool all_headers_public_; | 324 bool all_headers_public_; |
| 318 FileList public_headers_; | 325 FileList public_headers_; |
| 319 bool check_includes_; | 326 bool check_includes_; |
| 320 bool complete_static_lib_; | 327 bool complete_static_lib_; |
| 321 bool testonly_; | 328 bool testonly_; |
| 322 FileList inputs_; | 329 FileList inputs_; |
| 323 std::vector<std::string> data_; | 330 std::vector<std::string> data_; |
| 324 BundleData bundle_data_; | 331 BundleData bundle_data_; |
| 332 OutputFile write_runtime_deps_output_; |
| 325 | 333 |
| 326 LabelTargetVector private_deps_; | 334 LabelTargetVector private_deps_; |
| 327 LabelTargetVector public_deps_; | 335 LabelTargetVector public_deps_; |
| 328 LabelTargetVector data_deps_; | 336 LabelTargetVector data_deps_; |
| 329 | 337 |
| 330 // See getters for more info. | 338 // See getters for more info. |
| 331 UniqueVector<LabelConfigPair> configs_; | 339 UniqueVector<LabelConfigPair> configs_; |
| 332 UniqueVector<LabelConfigPair> all_dependent_configs_; | 340 UniqueVector<LabelConfigPair> all_dependent_configs_; |
| 333 UniqueVector<LabelConfigPair> public_configs_; | 341 UniqueVector<LabelConfigPair> public_configs_; |
| 334 | 342 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 363 // Output files. Empty until the target is resolved. | 371 // Output files. Empty until the target is resolved. |
| 364 std::vector<OutputFile> computed_outputs_; | 372 std::vector<OutputFile> computed_outputs_; |
| 365 OutputFile link_output_file_; | 373 OutputFile link_output_file_; |
| 366 OutputFile dependency_output_file_; | 374 OutputFile dependency_output_file_; |
| 367 OutputFile runtime_link_output_file_; | 375 OutputFile runtime_link_output_file_; |
| 368 | 376 |
| 369 DISALLOW_COPY_AND_ASSIGN(Target); | 377 DISALLOW_COPY_AND_ASSIGN(Target); |
| 370 }; | 378 }; |
| 371 | 379 |
| 372 #endif // TOOLS_GN_TARGET_H_ | 380 #endif // TOOLS_GN_TARGET_H_ |
| OLD | NEW |