From 682836daacdd3dc486187c9d60479b372895a470 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 29 Jul 2017 10:32:36 +0200 Subject: Implement "see through" installation semantics for utility libraries --- build2/install/rule.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/install/rule.hxx') diff --git a/build2/install/rule.hxx b/build2/install/rule.hxx index 76259c9..ad0d8ec 100644 --- a/build2/install/rule.hxx +++ b/build2/install/rule.hxx @@ -19,6 +19,8 @@ namespace build2 class alias_rule: public rule { public: + static const alias_rule instance; + alias_rule () {} virtual match_result @@ -26,6 +28,12 @@ namespace build2 virtual recipe apply (action, target&) const override; + + // Return NULL if this prerequisite should be ignored and pointer to its + // target otherwise. The default implementation accepts all prerequsites. + // + virtual const target* + filter (action, const target&, prerequisite_member) const; }; struct install_dir; @@ -33,6 +41,8 @@ namespace build2 class file_rule: public rule { public: + static const file_rule instance; + file_rule () {} virtual match_result -- cgit v1.1