Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: tools/gn/target.h

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/substitution_writer_unittest.cc ('k') | tools/gn/target.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « tools/gn/substitution_writer_unittest.cc ('k') | tools/gn/target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698