diff options
Diffstat (limited to 'libbuild2/config/module.hxx')
-rw-r--r-- | libbuild2/config/module.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libbuild2/config/module.hxx b/libbuild2/config/module.hxx index 5cb4faa..96220ac 100644 --- a/libbuild2/config/module.hxx +++ b/libbuild2/config/module.hxx @@ -15,6 +15,8 @@ #include <libbuild2/module.hxx> #include <libbuild2/variable.hxx> +#include <libbuild2/config/utility.hxx> + namespace build2 { namespace config @@ -94,6 +96,17 @@ namespace build2 i->second.find (var) != i->second.end (); } + // Configure/disfigure hooks. + // + static bool + configure_post (scope&, configure_post_hook*); + + static bool + disfigure_pre (scope&, disfigure_pre_hook*); + + small_vector<configure_post_hook*, 1> configure_post_; + small_vector<disfigure_pre_hook*, 1> disfigure_pre_; + // Cached (during init) config.config.persist value, if defined. // const vector<pair<string, string>>* persist = nullptr; |