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

Unified Diff: tools/gn/file_template.h

Issue 80463004: GN generator for GYP actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « tools/gn/BUILD.gn ('k') | tools/gn/file_template.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/file_template.h
diff --git a/tools/gn/file_template.h b/tools/gn/file_template.h
index 8fddad26ef768177f414031755bdb5f2195fe797..d66b3e3c4b6e961fc4f6d53c0e549de83296610b 100644
--- a/tools/gn/file_template.h
+++ b/tools/gn/file_template.h
@@ -14,6 +14,7 @@
struct EscapeOptions;
class ParseNode;
+class Target;
extern const char kSourceExpansion_Help[];
@@ -62,6 +63,10 @@ class FileTemplate {
FileTemplate(const std::vector<std::string>& t);
~FileTemplate();
+ // Returns an output template representing the given target's script
+ // outputs.
+ static FileTemplate GetForTargetOutputs(const Target* target);
+
// Returns true if the given substitution type is used by this template.
bool IsTypeUsed(Subrange::Type type) const;
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/file_template.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698