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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // Checks precompiled headers from configs and makes sure the resulting | 327 // Checks precompiled headers from configs and makes sure the resulting |
328 // values are in config_values_. | 328 // values are in config_values_. |
329 bool ResolvePrecompiledHeaders(Err* err); | 329 bool ResolvePrecompiledHeaders(Err* err); |
330 | 330 |
331 // Validates the given thing when a target is resolved. | 331 // Validates the given thing when a target is resolved. |
332 bool CheckVisibility(Err* err) const; | 332 bool CheckVisibility(Err* err) const; |
333 bool CheckTestonly(Err* err) const; | 333 bool CheckTestonly(Err* err) const; |
334 bool CheckAssertNoDeps(Err* err) const; | 334 bool CheckAssertNoDeps(Err* err) const; |
335 void CheckSourcesGenerated() const; | 335 void CheckSourcesGenerated() const; |
336 void CheckSourceGenerated(const SourceFile& source) const; | 336 void CheckSourceGenerated(const SourceFile& source) const; |
| 337 bool CheckPrecompiledHeaders(Err* err) const; |
337 | 338 |
338 OutputType output_type_; | 339 OutputType output_type_; |
339 std::string output_name_; | 340 std::string output_name_; |
340 bool output_prefix_override_; | 341 bool output_prefix_override_; |
341 SourceDir output_dir_; | 342 SourceDir output_dir_; |
342 std::string output_extension_; | 343 std::string output_extension_; |
343 bool output_extension_set_; | 344 bool output_extension_set_; |
344 | 345 |
345 FileList sources_; | 346 FileList sources_; |
346 bool all_headers_public_; | 347 bool all_headers_public_; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // Output files. Empty until the target is resolved. | 394 // Output files. Empty until the target is resolved. |
394 std::vector<OutputFile> computed_outputs_; | 395 std::vector<OutputFile> computed_outputs_; |
395 OutputFile link_output_file_; | 396 OutputFile link_output_file_; |
396 OutputFile dependency_output_file_; | 397 OutputFile dependency_output_file_; |
397 std::vector<OutputFile> runtime_outputs_; | 398 std::vector<OutputFile> runtime_outputs_; |
398 | 399 |
399 DISALLOW_COPY_AND_ASSIGN(Target); | 400 DISALLOW_COPY_AND_ASSIGN(Target); |
400 }; | 401 }; |
401 | 402 |
402 #endif // TOOLS_GN_TARGET_H_ | 403 #endif // TOOLS_GN_TARGET_H_ |
OLD | NEW |