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

Unified Diff: tools/gn/action_values.h

Issue 537013002: Add outputs to GN's header checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/gn/action_values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/action_values.h
diff --git a/tools/gn/action_values.h b/tools/gn/action_values.h
index fcb6acab24da0380dcd55888613f08feb623675c..3b546f29dd1b3ba70d4cfc45c1c04b4a3d5221e6 100644
--- a/tools/gn/action_values.h
+++ b/tools/gn/action_values.h
@@ -12,6 +12,8 @@
#include "tools/gn/source_file.h"
#include "tools/gn/substitution_list.h"
+class Target;
+
// Holds the values (outputs, args, script name, etc.) for either an action or
// an action_foreach target.
class ActionValues {
@@ -32,6 +34,10 @@ class ActionValues {
SubstitutionList& outputs() { return outputs_; }
const SubstitutionList& outputs() const { return outputs_; }
+ // Expands the outputs() above to the final SourceFile list.
+ void GetOutputsAsSourceFiles(const Target* target,
+ std::vector<SourceFile>* result) const;
+
// Depfile generated by the script.
const SubstitutionPattern& depfile() const { return depfile_; }
bool has_depfile() const { return !depfile_.ranges().empty(); }
« no previous file with comments | « no previous file | tools/gn/action_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698