From 2a9d673f298b623db061ee85d397563d644c8268 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 29 Aug 2015 08:14:27 +0200 Subject: New configure meta-operation implementation Now we search and match (but do not execute) a rule for every operation supported by the project. --- build/rule | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build/rule') diff --git a/build/rule b/build/rule index 5339b40..af1bcc8 100644 --- a/build/rule +++ b/build/rule @@ -116,6 +116,20 @@ namespace build static fsdir_rule instance; }; + + // Fallback rule that always matches and does nothing. + // + class fallback_rule: public build::rule + { + public: + virtual match_result + match (action, target& t, const std::string&) const {return t;} + + virtual recipe + apply (action, target&, const match_result&) const {return noop_recipe;} + + static fallback_rule instance; + }; } #endif // BUILD_RULE -- cgit v1.1