From ab93dccd5806de95b9123ec6c2272847ca0ae592 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Apr 2020 10:32:21 +0200 Subject: Add inject() for injecting additional dependencies during match --- libbuild2/algorithm.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbuild2/algorithm.hxx') diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx index d15810c..28b76c4 100644 --- a/libbuild2/algorithm.hxx +++ b/libbuild2/algorithm.hxx @@ -423,6 +423,13 @@ namespace build2 const target* resolve_group (action, const target&); + // Inject a target as a "prerequisite target" (note: not a prerequisite) of + // another target. Specifically, first match the prerequisite target and + // then add it to the back of the dependent target's prerequisite_targets. + // + void + inject (action, target&, const target& prereq); + // Inject dependency on the target's directory fsdir{}, unless it is in the // src tree or is outside of any project (say, for example, an installation // directory). If the parent argument is true, then inject the parent -- cgit v1.1