diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-29 08:14:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-29 08:14:27 +0200 |
commit | 2a9d673f298b623db061ee85d397563d644c8268 (patch) | |
tree | 7fa40a9d364f710e3aa7438e273287f14eace725 /build/rule | |
parent | fd689eb883655dcb29e505b041cd02fac01f0bac (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/rule | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |