aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-19 18:51:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-19 18:51:51 +0200
commite5664cb06e54d50e42e7722d5eaafd3cae2313b0 (patch)
tree5ad53d207607d011d9f2c1999dad1af3aa42f879 /build2/algorithm.hxx
parent2d9c7b8c018f161cb22e1bccb207c46e1eac8497 (diff)
Add support for explicit fsdir{} specification
Diffstat (limited to 'build2/algorithm.hxx')
-rw-r--r--build2/algorithm.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/algorithm.hxx b/build2/algorithm.hxx
index fc5e02a..5b52069 100644
--- a/build2/algorithm.hxx
+++ b/build2/algorithm.hxx
@@ -239,6 +239,11 @@ namespace build2
// the injected target or NULL. Normally this function is called from the
// rule's apply() function.
//
+ // As an extension, this function will also search for an existing fsdir{}
+ // prerequisite for the directory and if one exists, return that (even if
+ // the target is in src tree). This can be used, for example, to place
+ // output into an otherwise non-existent directory.
+ //
const fsdir*
inject_fsdir (action, target&, bool parent = true);