aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-17 16:42:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-17 16:42:38 +0200
commit774bfb559ecaef2aac1dcb7a0414bc6895a9b9d5 (patch)
treeef218a78b2122c6bdc1c13f376d1bcf83fe23e84 /build2/algorithm
parent9ae6fd626ed2ca0b7eff64bda68ca84463e66b84 (diff)
Initial take on DLL support for MinGW toolchain
Diffstat (limited to 'build2/algorithm')
-rw-r--r--build2/algorithm12
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/algorithm b/build2/algorithm
index 19b3971..d7dddba 100644
--- a/build2/algorithm
+++ b/build2/algorithm
@@ -220,6 +220,18 @@ namespace build2
//
target_state
perform_clean_depdb (action, target&);
+
+ // Helper for custom perform(clean) implementations that cleans extra files
+ // specified as a list of extensions. The extension string can be NULL, in
+ // which case it is ignored. Otherwise, the first character can be '+', in
+ // which case the extension is added (without the plus) to the existing
+ // extension (if any). In all other cases, the old extension is replaced
+ // with the new one. For example:
+ //
+ // clean_extra (a, t, {"+.d", ".lib"});
+ //
+ target_state
+ clean_extra (action, file&, initializer_list<const char*> extra_ext);
}
#include <build2/algorithm.ixx>