diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-29 10:32:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-29 10:32:36 +0200 |
commit | 682836daacdd3dc486187c9d60479b372895a470 (patch) | |
tree | a042ab0e46052436b08355f43fd54d9055ce9b82 /build2/install/rule.hxx | |
parent | 2b922df93fcea9e3fad8e24b39c7fe579085d3ac (diff) |
Implement "see through" installation semantics for utility libraries
Diffstat (limited to 'build2/install/rule.hxx')
-rw-r--r-- | build2/install/rule.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 |