aboutsummaryrefslogtreecommitdiff
path: root/build/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-29 08:14:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-29 08:14:27 +0200
commit2a9d673f298b623db061ee85d397563d644c8268 (patch)
tree7fa40a9d364f710e3aa7438e273287f14eace725 /build/rule
parentfd689eb883655dcb29e505b041cd02fac01f0bac (diff)
New configure meta-operation implementation
Now we search and match (but do not execute) a rule for every operation supported by the project.
Diffstat (limited to 'build/rule')
-rw-r--r--build/rule14
1 files changed, 14 insertions, 0 deletions
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