From 2da6777d14a1cf600891cdeee6202d692eae48f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Aug 2017 13:29:54 +0200 Subject: Implement support for chroot'ed install (aka DESTDIR) For example: b config.install.root=/usr config.install.chroot=/tmp/install The difference between doing just config.install.root=/tmp/install/usr is that everything is installed "as if" into /usr. So, for example, pkg-config files will contain -I/usr/include, -L/usr/lib, etc. --- build2/install/rule.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/install/rule.hxx') diff --git a/build2/install/rule.hxx b/build2/install/rule.hxx index 26f568b..642ab96 100644 --- a/build2/install/rule.hxx +++ b/build2/install/rule.hxx @@ -79,7 +79,8 @@ namespace build2 // Install a symlink: base/link -> target. // static void - install_l (const install_dir& base, + install_l (const scope& rs, + const install_dir& base, const path& target, const path& link, bool verbose); @@ -93,7 +94,8 @@ namespace build2 // exist). // static bool - uninstall_f (const install_dir& base, + uninstall_f (const scope& rs, + const install_dir& base, const file* t, const path& name, bool verbose); -- cgit v1.1