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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 }; | 48 }; |
49 | 49 |
50 enum DepsIterationType { | 50 enum DepsIterationType { |
51 DEPS_ALL, // Iterates through all public, private, and data deps. | 51 DEPS_ALL, // Iterates through all public, private, and data deps. |
52 DEPS_LINKED, // Iterates through all non-data dependencies. | 52 DEPS_LINKED, // Iterates through all non-data dependencies. |
53 }; | 53 }; |
54 | 54 |
55 typedef std::vector<SourceFile> FileList; | 55 typedef std::vector<SourceFile> FileList; |
56 typedef std::vector<std::string> StringVector; | 56 typedef std::vector<std::string> StringVector; |
57 | 57 |
58 Target(const Settings* settings, const Label& label); | 58 Target(const Settings* settings, |
| 59 const Label& label, |
| 60 const InputFileSet& input_files); |
59 ~Target() override; | 61 ~Target() override; |
60 | 62 |
61 // Returns a string naming the output type. | 63 // Returns a string naming the output type. |
62 static const char* GetStringForOutputType(OutputType type); | 64 static const char* GetStringForOutputType(OutputType type); |
63 | 65 |
64 // Item overrides. | 66 // Item overrides. |
65 Target* AsTarget() override; | 67 Target* AsTarget() override; |
66 const Target* AsTarget() const override; | 68 const Target* AsTarget() const override; |
67 bool OnResolved(Err* err) override; | 69 bool OnResolved(Err* err) override; |
68 | 70 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 OutputFile link_output_file_; | 395 OutputFile link_output_file_; |
394 OutputFile dependency_output_file_; | 396 OutputFile dependency_output_file_; |
395 std::vector<OutputFile> runtime_outputs_; | 397 std::vector<OutputFile> runtime_outputs_; |
396 | 398 |
397 DISALLOW_COPY_AND_ASSIGN(Target); | 399 DISALLOW_COPY_AND_ASSIGN(Target); |
398 }; | 400 }; |
399 | 401 |
400 extern const char kExecution_Help[]; | 402 extern const char kExecution_Help[]; |
401 | 403 |
402 #endif // TOOLS_GN_TARGET_H_ | 404 #endif // TOOLS_GN_TARGET_H_ |
OLD | NEW |