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; |