diff options
Diffstat (limited to 'build2/version/rule.hxx')
-rw-r--r-- | build2/version/rule.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build2/version/rule.hxx b/build2/version/rule.hxx index 9172ba3..bf8d05f 100644 --- a/build2/version/rule.hxx +++ b/build2/version/rule.hxx @@ -9,6 +9,7 @@ #include <build2/utility.hxx> #include <build2/rule.hxx> +#include <build2/install/rule.hxx> namespace build2 { @@ -47,6 +48,20 @@ namespace build2 static target_state perform_update (action, const target&); }; + + // Pre-process manifest before installation to patch in the version. + // + class manifest_install_rule: public install::file_rule + { + public: + manifest_install_rule () {} + + virtual bool + match (action, target&, const string&) const override; + + virtual auto_rmfile + install_pre (const file&, const install_dir&) const override; + }; } } |