From 8b9701d2ad76a9a571c445b318557261a4922758 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 4 Apr 2023 14:10:27 +0200 Subject: Remove global override restriction from config.install.filter --- libbuild2/install/utility.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libbuild2/install/utility.hxx') diff --git a/libbuild2/install/utility.hxx b/libbuild2/install/utility.hxx index 2ba7b18..dca8eb4 100644 --- a/libbuild2/install/utility.hxx +++ b/libbuild2/install/utility.hxx @@ -9,6 +9,7 @@ #include #include +#include // entry_type #include @@ -107,6 +108,18 @@ namespace build2 const dir_path* d (cast_null (rs["install.chroot"])); return d != nullptr ? *d / p.leaf (p.root_directory ()) : p; } + + // Installation filtering (config.install.filter). + // + // If entry type is a directory, then leaf must be empty. + // + using filters = vector>; + + LIBBUILD2_SYMEXPORT bool + filter_entry (const scope& rs, + const dir_path& base, + const path& leaf, + entry_type); } } -- cgit v1.1