Support deps for actions in GN.
Previously GN did not write out any ninja code for deps and datadeps. This patch adds that and also documentation for how deps work for actions.
[email protected]
Review URL: https://codereview.chromium.org/265703008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267945 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tools/gn/ninja_target_writer.h b/tools/gn/ninja_target_writer.h
index 813c4bc..51e3ba16 100644
--- a/tools/gn/ninja_target_writer.h
+++ b/tools/gn/ninja_target_writer.h
@@ -33,8 +33,10 @@
// returns the string to be appended to source rules that encodes the
// order-only dependencies for the current target. This will include the "|"
// character so can just be appended to the source rules. If there are no
- // implicit dependencies, returns the empty string.
- std::string WriteInputDepsStampAndGetDep() const;
+ // implicit dependencies and no extra target dependencies passed in, returns
+ // the empty string.
+ std::string WriteInputDepsStampAndGetDep(
+ const std::vector<const Target*>& extra_hard_deps) const;
// Returns the FileTemplate constructed from the outputs variable. This is
// like FileTemplate::GetForTargetOutputs except this additionally trims the