From 534ca7619a62a74bce8e4b30931aaf99f9c3beb6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 16 Aug 2020 16:21:35 +0200 Subject: Add support for post-configure and pre-disfigure hooks --- libbuild2/config/module.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libbuild2/config/module.hxx') 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 #include +#include + 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_; + small_vector disfigure_pre_; + // Cached (during init) config.config.persist value, if defined. // const vector>* persist = nullptr; -- cgit v1.1