From 18568ff0ff3dce89d694b494c5dfc9a32e63c9e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Jun 2015 17:25:10 +0200 Subject: Part two of dependency injection with auto-generation support --- build/algorithm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build/algorithm') diff --git a/build/algorithm b/build/algorithm index 59021f5..ad53b95 100644 --- a/build/algorithm +++ b/build/algorithm @@ -66,7 +66,7 @@ namespace build // in the same or a subdirectory of dir. // void - search_and_match (action, target&, const dir_path& dir); + search_and_match (action, target&, const dir_path&); // Unless already available, match, and, if necessary, execute // (not yet implemented) the group in order to obtain its members @@ -90,6 +90,15 @@ namespace build target_state execute (action, target&); + // A special version of the above that should be used for "direct" + // and "now" execution, that is, side-stepping the normal target- + // prerequisite relationship (so no dependents count is decremented) + // and execution order (so this function will never return postponed + // target state). + // + target_state + execute_direct (action, target&); + // The default prerequisite execute implementation. It calls execute() // on each non-ignored (non-NULL) prerequisite target in a loop. If this // target is a member of a group, then it first does this to the group's -- cgit v1.1